code-loader 1.0.91.dev1__py3-none-any.whl → 1.0.91.dev2__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.
@@ -295,15 +295,14 @@ def tensorleap_element_instance_preprocess(instance_mask_encoder: Callable[[int,
295
295
  _validate_input_args(*args, **kwargs)
296
296
  result = user_function()
297
297
  for preprocess_response in result:
298
- data_length = len(preprocess_response.sample_ids)
299
298
  sample_ids_to_instance_mappings = {}
300
- all_sample_ids = preprocess_response.sample_ids
299
+ all_sample_ids = preprocess_response.sample_ids.copy()
301
300
  for sample_id in preprocess_response.sample_ids:
301
+ data_length = len(all_sample_ids)
302
302
  instances_masks = instance_mask_encoder(sample_id, preprocess_response)
303
303
  instances_ids = list(range(data_length, data_length + len(instances_masks)))
304
304
  sample_ids_to_instance_mappings[sample_id] = instances_ids
305
305
  all_sample_ids.extend(instances_ids)
306
- data_length = len(all_sample_ids)
307
306
  preprocess_response.sample_ids_to_instance_mappings = sample_ids_to_instance_mappings
308
307
  preprocess_response.sample_ids = all_sample_ids
309
308
  _validate_result(result)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code-loader
3
- Version: 1.0.91.dev1
3
+ Version: 1.0.91.dev2
4
4
  Summary:
5
5
  Home-page: https://github.com/tensorleap/code-loader
6
6
  License: MIT
@@ -21,13 +21,13 @@ code_loader/experiment_api/utils.py,sha256=XZHtxge12TS4H4-8PjV3sKuhp8Ud6ojAiIzTZ
21
21
  code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaSbeTVzq-2ja_SQw4zi7LXwKL9cY,990
22
22
  code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
23
23
  code_loader/inner_leap_binder/leapbinder.py,sha256=mRg5ofWNbUkRsIafaz7i7NKi-1USgeAuNTIBxASSMcw,31713
24
- code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=k5y9LvI0ZhsPTK8ic-tuyQSx_kXb6lislZpMOHdqplw,27645
24
+ code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=EMB3X8XWZFIQW4W1pnqnpbrowmeSSY71EKdgaJW4fe4,27586
25
25
  code_loader/leaploader.py,sha256=GGHZzovqGsM6oY14pwyL35LeOmdRfjVuhhY2ZqlYKaM,26481
26
26
  code_loader/leaploaderbase.py,sha256=VH0vddRmkqLtcDlYPCO7hfz1_VbKo43lUdHDAbd4iJc,4198
27
27
  code_loader/utils.py,sha256=aw2i_fqW_ADjLB66FWZd9DfpCQ7mPdMyauROC5Nd51I,2197
28
28
  code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  code_loader/visualizers/default_visualizers.py,sha256=669lBpLISLO6my5Qcgn1FLDDeZgHumPf252m4KHY4YM,2555
30
- code_loader-1.0.91.dev1.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
31
- code_loader-1.0.91.dev1.dist-info/METADATA,sha256=_SFuZUWeiKP79d4fxnpEZ7hRV2SPK7cyeQVl4BAW4vM,854
32
- code_loader-1.0.91.dev1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- code_loader-1.0.91.dev1.dist-info/RECORD,,
30
+ code_loader-1.0.91.dev2.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
31
+ code_loader-1.0.91.dev2.dist-info/METADATA,sha256=iBam-9TshwxpWCOhR2fLDcAywCuvvKwgS-0vcyu5VZ0,854
32
+ code_loader-1.0.91.dev2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ code_loader-1.0.91.dev2.dist-info/RECORD,,