careamics 0.0.4__py3-none-any.whl → 0.0.4.1__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.

@@ -22,7 +22,7 @@ def get_unzip_path(zip_path: Union[Path, str]) -> Path:
22
22
  return zip_path.parent / (str(zip_path.name) + ".unzip")
23
23
 
24
24
 
25
- def create_env_text(pytorch_version: str) -> str:
25
+ def create_env_text(pytorch_version: str, torchvision_version: str) -> str:
26
26
  """Create environment yaml content for the bioimage model.
27
27
 
28
28
  This installs an environment with the specified pytorch version and the latest
@@ -32,6 +32,8 @@ def create_env_text(pytorch_version: str) -> str:
32
32
  ----------
33
33
  pytorch_version : str
34
34
  Pytorch version.
35
+ torchvision_version : str
36
+ Torchvision version.
35
37
 
36
38
  Returns
37
39
  -------
@@ -43,7 +45,7 @@ def create_env_text(pytorch_version: str) -> str:
43
45
  f"dependencies:\n"
44
46
  f" - python=3.10\n"
45
47
  f" - pytorch={pytorch_version}\n"
46
- f" - torchvision={pytorch_version}\n"
48
+ f" - torchvision={torchvision_version}\n"
47
49
  f" - pip\n"
48
50
  f" - pip:\n"
49
51
  f" - git+https://github.com/CAREamics/careamics.git\n"
@@ -8,7 +8,9 @@ import numpy as np
8
8
  import pkg_resources
9
9
  from bioimageio.core import load_description, test_model
10
10
  from bioimageio.spec import ValidationSummary, save_bioimageio_package
11
- from torch import __version__, load, save
11
+ from torch import __version__ as PYTORCH_VERSION
12
+ from torch import load, save
13
+ from torchvision import __version__ as TORCHVISION_VERSION
12
14
 
13
15
  from careamics.config import Configuration, load_configuration, save_configuration
14
16
  from careamics.config.support import SupportedArchitecture
@@ -141,7 +143,6 @@ def export_to_bmz(
141
143
  path_to_archive.parent.mkdir(parents=True, exist_ok=True)
142
144
 
143
145
  # versions
144
- pytorch_version = __version__
145
146
  careamics_version = pkg_resources.get_distribution("careamics").version
146
147
 
147
148
  # save files in temporary folder
@@ -151,7 +152,7 @@ def export_to_bmz(
151
152
  # create environment file
152
153
  # TODO move in bioimage module
153
154
  env_path = temp_path / "environment.yml"
154
- env_path.write_text(create_env_text(pytorch_version))
155
+ env_path.write_text(create_env_text(PYTORCH_VERSION, TORCHVISION_VERSION))
155
156
 
156
157
  # export input and ouputs
157
158
  inputs = temp_path / "inputs.npy"
@@ -174,7 +175,7 @@ def export_to_bmz(
174
175
  inputs=inputs,
175
176
  outputs=outputs,
176
177
  weights_path=weight_path,
177
- torch_version=pytorch_version,
178
+ torch_version=PYTORCH_VERSION,
178
179
  careamics_version=careamics_version,
179
180
  config_path=config_path,
180
181
  env_path=env_path,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: careamics
3
- Version: 0.0.4
3
+ Version: 0.0.4.1
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
@@ -115,11 +115,11 @@ careamics/lvae_training/dataset/utils/empty_patch_fetcher.py,sha256=OFjeqhZ6vFUL
115
115
  careamics/lvae_training/dataset/utils/index_manager.py,sha256=mmj1p-Ez5Qeiu99WdsFq8aCr6WaVUgn_bQ2INqNpuI4,9978
116
116
  careamics/lvae_training/dataset/utils/index_switcher.py,sha256=ZoMi8LsaIkm8MFqIFaxN4oQGyzCcwOlCom8SYNus15E,6716
117
117
  careamics/model_io/__init__.py,sha256=HITzjiuZQwo-rQ2_Ma3bz9l7PDANv1_S489E-tffV9s,155
118
- careamics/model_io/bmz_io.py,sha256=TMqmO5Fu-rd3LmbqL5ICAs0BlJX2F3L_Ag1okXGkkwc,7564
118
+ careamics/model_io/bmz_io.py,sha256=tt21GHO2UD_jV7fGSnKhMSNK6iRRyCON5w9SPcxqW3I,7646
119
119
  careamics/model_io/model_io_utils.py,sha256=Dc_0YmcUfS3HuEVgN7KFfbDH8SGywT_eUCIJDVpEUHc,2755
120
120
  careamics/model_io/bioimage/__init__.py,sha256=r94nu8WDAvj0Fbu4C-iJXdOhfSQXeZBvN3UKsLG0RNI,298
121
121
  careamics/model_io/bioimage/_readme_factory.py,sha256=LZAuEiWNBTPaD8KrLPMq16yJuOPKDZiGQuTMHKLvoT4,3514
122
- careamics/model_io/bioimage/bioimage_utils.py,sha256=Md6y0-85q772A_G_lyhR8WKk17QTl1-0fqsEh5tAGyk,1157
122
+ careamics/model_io/bioimage/bioimage_utils.py,sha256=YVr75SDfafOiuYGonPbcsO-xVS0wI1WkmWQQZx6DXYQ,1246
123
123
  careamics/model_io/bioimage/model_description.py,sha256=au8NtLwYVtjRI0BW2hEAlDen5ZGt25KAcy7_ZnAoQO4,9640
124
124
  careamics/models/__init__.py,sha256=Xui2BLJd1I2r_E3Sj24fJALFTi2FGtfNscUWj_0c9Hk,93
125
125
  careamics/models/activation.py,sha256=nu3sDgd7Lsyw8rvmUwxNN-7SM09cEMfxZ9DRDzdSKns,1049
@@ -158,8 +158,8 @@ careamics/utils/ram.py,sha256=tksyn8dVX_iJXmrDZDGub32hFZWIaNxnMheO5G1p43I,244
158
158
  careamics/utils/receptive_field.py,sha256=Y2h4c8S6glX3qcx5KHDmO17Kkuyey9voxfoXyqcAfiM,3296
159
159
  careamics/utils/serializers.py,sha256=tovAjYoYjM26FbwjKuMD4xiyiISgqROs7aiCPa_rbVs,1379
160
160
  careamics/utils/torch_utils.py,sha256=g1zxdlM7_BA7mMLcCzmrxZX4LmH__KXlJibC95muVaA,3014
161
- careamics-0.0.4.dist-info/METADATA,sha256=-t3-4fWtOprWWjSoqaSGFBdjdIbvTmgATiNPd7kz6WU,3660
162
- careamics-0.0.4.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
163
- careamics-0.0.4.dist-info/entry_points.txt,sha256=2fSNVXJWDJgFLATVj7MkjFNvpl53amG8tUzC3jf7G1s,53
164
- careamics-0.0.4.dist-info/licenses/LICENSE,sha256=6zdNW-k_xHRKYWUf9tDI_ZplUciFHyj0g16DYuZ2udw,1509
165
- careamics-0.0.4.dist-info/RECORD,,
161
+ careamics-0.0.4.1.dist-info/METADATA,sha256=YemNt_kHIk852-I426HXUdc-gMN-18xR9Vs4WaP8NZ0,3662
162
+ careamics-0.0.4.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
163
+ careamics-0.0.4.1.dist-info/entry_points.txt,sha256=2fSNVXJWDJgFLATVj7MkjFNvpl53amG8tUzC3jf7G1s,53
164
+ careamics-0.0.4.1.dist-info/licenses/LICENSE,sha256=6zdNW-k_xHRKYWUf9tDI_ZplUciFHyj0g16DYuZ2udw,1509
165
+ careamics-0.0.4.1.dist-info/RECORD,,