careamics 0.0.7__py3-none-any.whl → 0.0.8__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 careamics might be problematic. Click here for more details.

@@ -470,6 +470,7 @@ def get_predictions(
470
470
  dset: Dataset,
471
471
  batch_size: int,
472
472
  tile_size: Optional[tuple[int, int]] = None,
473
+ grid_size: Optional[int] = None,
473
474
  mmse_count: int = 1,
474
475
  num_workers: int = 4,
475
476
  ) -> tuple[dict, dict, dict]:
@@ -510,6 +511,7 @@ def get_predictions(
510
511
  dset=d,
511
512
  batch_size=batch_size,
512
513
  tile_size=tile_size,
514
+ grid_size=grid_size,
513
515
  mmse_count=mmse_count,
514
516
  num_workers=num_workers,
515
517
  )
@@ -527,6 +529,7 @@ def get_predictions(
527
529
  dset=dset,
528
530
  batch_size=batch_size,
529
531
  tile_size=tile_size,
532
+ grid_size=grid_size,
530
533
  mmse_count=mmse_count,
531
534
  num_workers=num_workers,
532
535
  )
@@ -589,6 +592,7 @@ def get_single_file_mmse(
589
592
  dset: Dataset,
590
593
  batch_size: int,
591
594
  tile_size: Optional[tuple[int, int]] = None,
595
+ grid_size: Optional[int] = None,
592
596
  mmse_count: int = 1,
593
597
  num_workers: int = 4,
594
598
  ) -> tuple[np.ndarray, np.ndarray]:
@@ -600,8 +604,9 @@ def get_single_file_mmse(
600
604
  shuffle=False,
601
605
  batch_size=batch_size,
602
606
  )
603
- if tile_size:
604
- dset.set_img_sz(tile_size, tile_size[-1] // 2)
607
+ if tile_size and grid_size:
608
+ dset.set_img_sz(tile_size, grid_size)
609
+
605
610
  model.eval()
606
611
  model.cuda()
607
612
  tile_mmse = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: careamics
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Toolbox for running N2V and friends.
5
5
  Project-URL: homepage, https://careamics.github.io/
6
6
  Project-URL: repository, https://github.com/CAREamics/careamics
@@ -106,7 +106,7 @@ careamics/losses/lvae/loss_utils.py,sha256=QxzA2N1TglR4H0X0uyTWWytDagE1lA9IB_TK1
106
106
  careamics/losses/lvae/losses.py,sha256=wHT1dx04BZ_OI-_S7cFQ5hFmMetm6FSnuZfwZBBtIpY,17977
107
107
  careamics/lvae_training/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
108
  careamics/lvae_training/calibration.py,sha256=xHbiLcY2csYos3s7rRSqp7P7G-9wzULcSo1JfVzfIjE,7239
109
- careamics/lvae_training/eval_utils.py,sha256=7N1thslU4IU1lM1tGg3-wa8AFf5_R2lOSQ7ZZ91AUII,30030
109
+ careamics/lvae_training/eval_utils.py,sha256=2Ij1L1enIwjox16cPrhGzkcVQooBzN_mcC9ma94mJrE,30180
110
110
  careamics/lvae_training/get_config.py,sha256=dwVfaQS7nzjQss0E1gGLUpQpjPcOWwLgIhbu3Z0I1rg,3068
111
111
  careamics/lvae_training/lightning_module.py,sha256=ryr7iHqCMzCl5esi6_gEcnKFDQkMrw0EXK9Zfgv1Nek,27186
112
112
  careamics/lvae_training/metrics.py,sha256=KTDAKhe3vh-YxzGibjtkIG2nnUyujbnwqX4xGwaRXwE,6718
@@ -171,8 +171,8 @@ careamics/utils/ram.py,sha256=tksyn8dVX_iJXmrDZDGub32hFZWIaNxnMheO5G1p43I,244
171
171
  careamics/utils/receptive_field.py,sha256=Y2h4c8S6glX3qcx5KHDmO17Kkuyey9voxfoXyqcAfiM,3296
172
172
  careamics/utils/serializers.py,sha256=mILUhz75IMpGKnEzcYu9hlOPG8YIiIW09fk6eZM7Y8k,1427
173
173
  careamics/utils/torch_utils.py,sha256=_Cf3HdlIRl5hxfpUg9aofCSlcW7GSsIJxsbSORXko0U,3010
174
- careamics-0.0.7.dist-info/METADATA,sha256=K3w_i8E8INNeZwEQdVtGHDFS_C0031Bfqzn23e8SSO4,3967
175
- careamics-0.0.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
176
- careamics-0.0.7.dist-info/entry_points.txt,sha256=2fSNVXJWDJgFLATVj7MkjFNvpl53amG8tUzC3jf7G1s,53
177
- careamics-0.0.7.dist-info/licenses/LICENSE,sha256=6zdNW-k_xHRKYWUf9tDI_ZplUciFHyj0g16DYuZ2udw,1509
178
- careamics-0.0.7.dist-info/RECORD,,
174
+ careamics-0.0.8.dist-info/METADATA,sha256=jBK6zEhnACTuo9igH-PT-5sphN-tj2-b20j1E2zE7_w,3967
175
+ careamics-0.0.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
176
+ careamics-0.0.8.dist-info/entry_points.txt,sha256=2fSNVXJWDJgFLATVj7MkjFNvpl53amG8tUzC3jf7G1s,53
177
+ careamics-0.0.8.dist-info/licenses/LICENSE,sha256=6zdNW-k_xHRKYWUf9tDI_ZplUciFHyj0g16DYuZ2udw,1509
178
+ careamics-0.0.8.dist-info/RECORD,,