monai-weekly 1.4.dev2441__py3-none-any.whl → 1.5.dev2442__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.
monai/__init__.py CHANGED
@@ -136,4 +136,4 @@ except BaseException:
136
136
 
137
137
  if MONAIEnvVars.debug():
138
138
  raise
139
- __commit_id__ = "796271ccd4ee48065af3b2afd56bf46960a53112"
139
+ __commit_id__ = "a14a9d77165b11996c023a9bf8e649c3c5d6bbbc"
monai/_version.py CHANGED
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2024-10-13T02:28:40+0000",
11
+ "date": "2024-10-20T02:29:48+0000",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "cf815ed4e44a5b8ce67e894ab0bc2765279a1a59",
15
- "version": "1.4.dev2441"
14
+ "full-revisionid": "d850fe3e5160f867a27d3f9e45f7ca1e4c7e53e5",
15
+ "version": "1.5.dev2442"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -220,7 +220,7 @@ class DDIMScheduler(Scheduler):
220
220
  if eta > 0:
221
221
  # randn_like does not support generator https://github.com/pytorch/pytorch/issues/27072
222
222
  device: torch.device = torch.device(model_output.device if torch.is_tensor(model_output) else "cpu")
223
- noise = torch.randn(model_output.shape, dtype=model_output.dtype, generator=generator).to(device)
223
+ noise = torch.randn(model_output.shape, dtype=model_output.dtype, generator=generator, device=device)
224
224
  variance = self._get_variance(timestep, prev_timestep) ** 0.5 * eta * noise
225
225
 
226
226
  pred_prev_sample = pred_prev_sample + variance
@@ -241,8 +241,12 @@ class DDPMScheduler(Scheduler):
241
241
  variance = 0
242
242
  if timestep > 0:
243
243
  noise = torch.randn(
244
- model_output.size(), dtype=model_output.dtype, layout=model_output.layout, generator=generator
245
- ).to(model_output.device)
244
+ model_output.size(),
245
+ dtype=model_output.dtype,
246
+ layout=model_output.layout,
247
+ generator=generator,
248
+ device=model_output.device,
249
+ )
246
250
  variance = (self._get_variance(timestep, predicted_variance=predicted_variance) ** 0.5) * noise
247
251
 
248
252
  pred_prev_sample = pred_prev_sample + variance
@@ -112,6 +112,11 @@ class CutMix(Mixer):
112
112
  the mixing weight but also the size of the random rectangles used during for mixing.
113
113
  Please refer to the paper for details.
114
114
 
115
+ Please note that there is a change in behavior starting from version 1.4.0. In the previous
116
+ implementation, the transform would generate a different label each time it was called.
117
+ To ensure determinism, the new implementation will now generate the same label for
118
+ the same input image when using the same operation.
119
+
115
120
  The most common use case is something close to:
116
121
 
117
122
  .. code-block:: python
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: monai-weekly
3
- Version: 1.4.dev2441
3
+ Version: 1.5.dev2442
4
4
  Summary: AI Toolkit for Healthcare Imaging
5
5
  Home-page: https://monai.io/
6
6
  Author: MONAI Consortium
@@ -171,11 +171,11 @@ Requires-Dist: zarr; extra == "zarr"
171
171
  [![codecov](https://codecov.io/gh/Project-MONAI/MONAI/branch/dev/graph/badge.svg?token=6FTC7U1JJ4)](https://codecov.io/gh/Project-MONAI/MONAI)
172
172
  [![monai Downloads Last Month](https://assets.piptrends.com/get-last-month-downloads-badge/monai.svg 'monai Downloads Last Month by pip Trends')](https://piptrends.com/package/monai)
173
173
 
174
- MONAI is a [PyTorch](https://pytorch.org/)-based, [open-source](https://github.com/Project-MONAI/MONAI/blob/dev/LICENSE) framework for deep learning in healthcare imaging, part of [PyTorch Ecosystem](https://pytorch.org/ecosystem/).
175
- Its ambitions are:
176
- - developing a community of academic, industrial and clinical researchers collaborating on a common foundation;
177
- - creating state-of-the-art, end-to-end training workflows for healthcare imaging;
178
- - providing researchers with the optimized and standardized way to create and evaluate deep learning models.
174
+ MONAI is a [PyTorch](https://pytorch.org/)-based, [open-source](https://github.com/Project-MONAI/MONAI/blob/dev/LICENSE) framework for deep learning in healthcare imaging, part of the [PyTorch Ecosystem](https://pytorch.org/ecosystem/).
175
+ Its ambitions are as follows:
176
+ - Developing a community of academic, industrial and clinical researchers collaborating on a common foundation;
177
+ - Creating state-of-the-art, end-to-end training workflows for healthcare imaging;
178
+ - Providing researchers with the optimized and standardized way to create and evaluate deep learning models.
179
179
 
180
180
 
181
181
  ## Features
@@ -1,5 +1,5 @@
1
- monai/__init__.py,sha256=0V-ca1Bt9VxdrUBijK2gfQswTYDXWtBA9PBHIs9oSZ0,4095
2
- monai/_version.py,sha256=pfNb_sO0WbswtIrF1esHnac1VUqYKHVs5ovDRsLId8w,503
1
+ monai/__init__.py,sha256=Pq8CvtjSIIpM46e3BgLQoDLKxCuHcP-V20mBqi5EA78,4095
2
+ monai/_version.py,sha256=2XTx0tN1SVpKgJ5hNz8ZFMQ6-HRSmdB6OUfhWAZQmUY,503
3
3
  monai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  monai/_extensions/__init__.py,sha256=NEBPreRhQ8H9gVvgrLr_y52_TmqB96u_u4VQmeNT93I,642
5
5
  monai/_extensions/loader.py,sha256=7SiKw36q-nOzH8CRbBurFrz7GM40GCu7rc93Tm8XpnI,3643
@@ -336,8 +336,8 @@ monai/networks/nets/vnet.py,sha256=zaJi5kSiTLAuFHThSZfhJvHP6zKh3oBWsTWG-328O_g,1
336
336
  monai/networks/nets/voxelmorph.py,sha256=Q5VQFLLKSFqhsG0Z8_72ZGfK1nA4kdCfFnGbqI6Eofg,20665
337
337
  monai/networks/nets/vqvae.py,sha256=Zf9fTL_rluhuJhH6gTNB6iiKRfwBxfuuyhCdU9TLmAk,18417
338
338
  monai/networks/schedulers/__init__.py,sha256=rPmrNvnt8Bh9D2omPMgDiGVuT1XVJlgtlWIlqA_sjb4,755
339
- monai/networks/schedulers/ddim.py,sha256=a01QajgWksTYsPxs4DuBzy59mE_PcyTJedd6VqJv5g0,14376
340
- monai/networks/schedulers/ddpm.py,sha256=DkUwyI_TdorGtV9a33aJ8FrPU7CbpYOXYvgYP7uDxds,11318
339
+ monai/networks/schedulers/ddim.py,sha256=MygHvgLB_NL9488DhHsE_g-EvV6DlDPtiBROpnCvDHc,14380
340
+ monai/networks/schedulers/ddpm.py,sha256=LPqmlNJex32QrqcVb5s7XCNKVlFPsd_05-IJHpUJZPI,11387
341
341
  monai/networks/schedulers/pndm.py,sha256=9Qe8NOw_tvlpCBK7yvkmyriyGfIO5RRDV8ZKPh85cQY,14472
342
342
  monai/networks/schedulers/scheduler.py,sha256=X5eu5AmtNiads9cgaFy5r7BdlKYASSICyGSyF-fk6x8,9206
343
343
  monai/optimizers/__init__.py,sha256=XUL7o9vSL7bZImpxVZqcc1c8MwUMrOZL4nJ-mjAA7yM,796
@@ -379,7 +379,7 @@ monai/transforms/post/__init__.py,sha256=s9djSd6kvViPnFvMR11Dgd30Lv4oY6FaPJr4ZZJ
379
379
  monai/transforms/post/array.py,sha256=06Dfd_6cf-VJneet7WwbxFFlJEhYh365xu3fkcvGTws,45042
380
380
  monai/transforms/post/dictionary.py,sha256=pq4Oh3GoDcS6sjUkLvHzYmySxuxzVW7grjogFuRsUsA,43042
381
381
  monai/transforms/regularization/__init__.py,sha256=s9djSd6kvViPnFvMR11Dgd30Lv4oY6FaPJr4ZZJZLq0,573
382
- monai/transforms/regularization/array.py,sha256=yJbvs0-ElS7uK8jEZzYOL-nW2wizXvwni77s1pR7qvk,8036
382
+ monai/transforms/regularization/array.py,sha256=oSG08b7opKGbHVZkpefdG1o0sX_F7-VoltzpNm5MB6k,8384
383
383
  monai/transforms/regularization/dictionary.py,sha256=b2hw8nElkQeyu3LZSnWvz7pQMcK9tCuNHpLueAGTQr8,4800
384
384
  monai/transforms/signal/__init__.py,sha256=s9djSd6kvViPnFvMR11Dgd30Lv4oY6FaPJr4ZZJZLq0,573
385
385
  monai/transforms/signal/array.py,sha256=eTlvqOIUQixh-voTNJcl532RvG4ZlQBNeHhg3TT3Cto,16325
@@ -416,8 +416,8 @@ monai/visualize/img2tensorboard.py,sha256=NnMcyfIFqX-jD7TBO3Rn02zt5uug79d_7pIIaV
416
416
  monai/visualize/occlusion_sensitivity.py,sha256=OQHEJLyIhB8zWqQsfKaX-1kvCjWFVYtLfS4dFC0nKFI,18160
417
417
  monai/visualize/utils.py,sha256=B-MhTVs7sQbIqYS3yPnpBwPw2K82rE2PBtGIfpwZtWM,9894
418
418
  monai/visualize/visualizer.py,sha256=qckyaMZCbezYUwE20k5yc-Pb7UozVavMDbrmyQwfYHY,1377
419
- monai_weekly-1.4.dev2441.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
420
- monai_weekly-1.4.dev2441.dist-info/METADATA,sha256=VPKdbi178DBdGodZ-DsfUHOc13tPT-58VDGTFXdV_DE,11172
421
- monai_weekly-1.4.dev2441.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
422
- monai_weekly-1.4.dev2441.dist-info/top_level.txt,sha256=UaNwRzLGORdus41Ip446s3bBfViLkdkDsXDo34J2P44,6
423
- monai_weekly-1.4.dev2441.dist-info/RECORD,,
419
+ monai_weekly-1.5.dev2442.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
420
+ monai_weekly-1.5.dev2442.dist-info/METADATA,sha256=ViLiKZdT67FCg3CtHo78A50SXdzyR7bPnOEcM_YSKeU,11187
421
+ monai_weekly-1.5.dev2442.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
422
+ monai_weekly-1.5.dev2442.dist-info/top_level.txt,sha256=UaNwRzLGORdus41Ip446s3bBfViLkdkDsXDo34J2P44,6
423
+ monai_weekly-1.5.dev2442.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5