supervisely 6.73.273__py3-none-any.whl → 6.73.274__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of supervisely might be problematic. Click here for more details.

@@ -4500,9 +4500,11 @@ async def _download_project_async(
4500
4500
  )
4501
4501
  small_images = []
4502
4502
  large_images = []
4503
+ dataset_images = []
4503
4504
  async for image_batch in all_images:
4504
4505
  for image in image_batch:
4505
4506
  if images_ids is None or image.id in images_ids:
4507
+ dataset_images.append(image)
4506
4508
  if image.size < switch_size:
4507
4509
  small_images.append(image)
4508
4510
  else:
@@ -4529,13 +4531,12 @@ async def _download_project_async(
4529
4531
  try:
4530
4532
  existing = dataset_fs.get_item_info(image.name)
4531
4533
  except:
4532
- pass
4534
+ to_download.append(image)
4533
4535
  else:
4534
- if existing.updated_at == image.updated_at:
4535
- if ds_progress is not None:
4536
- ds_progress(1)
4537
- continue
4538
- to_download.append(image)
4536
+ if existing.updated_at != image.updated_at:
4537
+ to_download.append(image)
4538
+ elif ds_progress is not None:
4539
+ ds_progress(1)
4539
4540
  return to_download
4540
4541
 
4541
4542
  small_images = await check_items(small_images)
@@ -4574,11 +4575,9 @@ async def _download_project_async(
4574
4575
 
4575
4576
  await queue.join()
4576
4577
 
4577
- all_images = small_images + large_images
4578
-
4579
4578
  if save_image_meta:
4580
4579
  meta_dir = dataset_fs.meta_dir
4581
- for image_info in all_images:
4580
+ for image_info in dataset_images:
4582
4581
  if image_info.meta:
4583
4582
  sly.fs.mkdir(meta_dir)
4584
4583
  sly.json.dump_json_file(
@@ -4586,7 +4585,7 @@ async def _download_project_async(
4586
4585
  )
4587
4586
 
4588
4587
  # delete redundant items
4589
- items_names_set = set([img.name for img in all_images])
4588
+ items_names_set = set([img.name for img in dataset_images])
4590
4589
  for item_name in dataset_fs.get_items_names():
4591
4590
  if item_name not in items_names_set:
4592
4591
  dataset_fs.delete_item(item_name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.273
3
+ Version: 6.73.274
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -1000,7 +1000,7 @@ supervisely/project/data_version.py,sha256=nknaWJSUCwoDyNG9_d1KA-GjzidhV9zd9Cn8c
1000
1000
  supervisely/project/download.py,sha256=zb8sb4XZ6Qi3CP7fmtLRUAYzaxs_W0WnOfe2x3ZVRMs,24639
1001
1001
  supervisely/project/pointcloud_episode_project.py,sha256=yiWdNBQiI6f1O9sr1pg8JHW6O-w3XUB1rikJNn3Oung,41866
1002
1002
  supervisely/project/pointcloud_project.py,sha256=Kx1Vaes-krwG3BiRRtHRLQxb9G5m5bTHPN9IzRqmNWo,49399
1003
- supervisely/project/project.py,sha256=nKzuDw3DwcKtRg0fJyNrWE-XC7co0x3HTsAUWN8B2QI,189088
1003
+ supervisely/project/project.py,sha256=6E3DqWF7T5XJWywuna2gAeGVb9CaK8dU3QFcrOQMLRU,189109
1004
1004
  supervisely/project/project_meta.py,sha256=26s8IiHC5Pg8B1AQi6_CrsWteioJP2in00cRNe8QlW0,51423
1005
1005
  supervisely/project/project_settings.py,sha256=NLThzU_DCynOK6hkHhVdFyezwprn9UqlnrLDe_3qhkY,9347
1006
1006
  supervisely/project/project_type.py,sha256=_3RqW2CnDBKFOvSIrQT1RJQaiHirs34_jiQS8CkwCpo,530
@@ -1062,9 +1062,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1062
1062
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1063
1063
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1064
1064
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1065
- supervisely-6.73.273.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1066
- supervisely-6.73.273.dist-info/METADATA,sha256=uQxOZ2st0ZkJaK6YX4oZ5bVvX5YfFgrD9izZG_8oIxM,33573
1067
- supervisely-6.73.273.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1068
- supervisely-6.73.273.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1069
- supervisely-6.73.273.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1070
- supervisely-6.73.273.dist-info/RECORD,,
1065
+ supervisely-6.73.274.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1066
+ supervisely-6.73.274.dist-info/METADATA,sha256=PHTIEhW0ErGXlcajujh7MS3qSy4cq8TDdAIhh_eIY7U,33573
1067
+ supervisely-6.73.274.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1068
+ supervisely-6.73.274.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1069
+ supervisely-6.73.274.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1070
+ supervisely-6.73.274.dist-info/RECORD,,