flaxdiff 0.1.33__py3-none-any.whl → 0.1.35__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.
@@ -214,8 +214,9 @@ def parallel_image_loader(
214
214
  iteration = 0
215
215
  while True:
216
216
  # Repeat forever
217
- shards = [dataset[i*shard_len:(i+1)*shard_len]
218
- for i in range(num_workers)]
217
+ # shards = [dataset[i*shard_len:(i+1)*shard_len]
218
+ # for i in range(num_workers)]
219
+ shards = [dataset.shard(num_shards=num_workers, index=i) for i in range(num_workers)]
219
220
  print(f"mapping {len(shards)} shards")
220
221
  pool.map(map_batch_fn, shards)
221
222
  iteration += 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flaxdiff
3
- Version: 0.1.33
3
+ Version: 0.1.35
4
4
  Summary: A versatile and easy to understand Diffusion library
5
5
  Author: Ashish Kumar Singh
6
6
  Author-email: ashishkmr472@gmail.com
@@ -1,7 +1,7 @@
1
1
  flaxdiff/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  flaxdiff/utils.py,sha256=B0GcHlzlVYDNEIdh2v5qmP4u0neIT-FqexNohuyuCvg,2452
3
3
  flaxdiff/data/__init__.py,sha256=PM3PkHihyohT5SHVYKc8vQ4IeVfGPpCktkSVwvqMjQ4,52
4
- flaxdiff/data/online_loader.py,sha256=VpwTivqTYXM4Eu3jLWoDkYRcl7KsgJ5A6t17zDSDsDc,13226
4
+ flaxdiff/data/online_loader.py,sha256=SPcKexYYBWCVOZqmH7v8Zfhtlf9NtnTsjdZKbPcoALY,13328
5
5
  flaxdiff/models/__init__.py,sha256=FAivVYXxM2JrCFIXf-C3374RB2Hth25dBrzOeNFhH1U,26
6
6
  flaxdiff/models/attention.py,sha256=ZbDGIb5Q6FRqJ6qRY660cqw4WvF9IwCnhEuYdTpLPdM,13023
7
7
  flaxdiff/models/common.py,sha256=hWsSs2BP2J-JN1s4qLRr-h-KYkcVyl2hOp1Wsm_L-h8,10994
@@ -34,7 +34,7 @@ flaxdiff/trainer/__init__.py,sha256=T-vUVq4zHcMK6kpCsG4Gu8vn71q6lZD-lg-Ul7yKfEk,
34
34
  flaxdiff/trainer/autoencoder_trainer.py,sha256=al7AsZ7yeDMEiDD-gbcXf0ADq_xfk1VMxvg24GfA-XQ,7008
35
35
  flaxdiff/trainer/diffusion_trainer.py,sha256=wKkg63DWZjx2MoM3VQNCDIr40rWN8fUGxH9jWWxfZao,9373
36
36
  flaxdiff/trainer/simple_trainer.py,sha256=Z77zRS5viJpd2Mpl6sonJk5WcnEWi2Cd4gl4u5tIX2M,18206
37
- flaxdiff-0.1.33.dist-info/METADATA,sha256=XMIn_9eR1rbbvnjkh0FuecS35Fhvbey1rCmTE0ooLtw,22083
38
- flaxdiff-0.1.33.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
39
- flaxdiff-0.1.33.dist-info/top_level.txt,sha256=-2-nXnfkJgSfkki1tjm5Faw6Dso7vhtdn2szwCdX5CQ,9
40
- flaxdiff-0.1.33.dist-info/RECORD,,
37
+ flaxdiff-0.1.35.dist-info/METADATA,sha256=rEM3EQWZtPTTtEyVAnUQa88P1Dh2daPq8zr4kDC3Al0,22083
38
+ flaxdiff-0.1.35.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
39
+ flaxdiff-0.1.35.dist-info/top_level.txt,sha256=-2-nXnfkJgSfkki1tjm5Faw6Dso7vhtdn2szwCdX5CQ,9
40
+ flaxdiff-0.1.35.dist-info/RECORD,,