imicpe 1.0.6__py3-none-any.whl → 1.0.7__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.
imicpe/_version.py CHANGED
@@ -1 +1 @@
1
- __version__="1.0.6"
1
+ __version__="1.0.7"
imicpe/optim/pnnUtils.py CHANGED
@@ -38,7 +38,10 @@ def torchImg2Numpy(image):
38
38
  if image.shape[-1] == 1:
39
39
  image = image[..., 0]
40
40
 
41
- return image.numpy()
41
+ np_img = image.numpy()
42
+
43
+ return (np_img-np.min(np_img)) / (np.max(np_img)-np.min(np_img))
44
+
42
45
 
43
46
 
44
47
  def getData(trainer, mode):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: imicpe
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: Toolbox for Maths,Signal,Image Teaching @ CPE
5
5
  Author-email: Marion Foare <marion.foare@cpe.fr>, Eric Van Reeth <eric.vanreeth@cpe.fr>, Arthur Gautheron <arthur.gautheron@cpe.fr>
6
6
  License: MIT License
@@ -1,5 +1,5 @@
1
1
  imicpe/__init__.py,sha256=WjDmvecyDIyJLYp4rCV9vsSYbQDc4L1EpYqORvEXliI,33
2
- imicpe/_version.py,sha256=pINtsbN0HBnfwDigU9BkYOfkTQAdnUydSLeEcyBcXBs,20
2
+ imicpe/_version.py,sha256=7-b4S_wns7_IQK5pAmgSPhlOh7lM2Ti3iR0OrNxIXsE,20
3
3
  imicpe/cs/__init__.py,sha256=fLe1o5jNvrB4qEVBE6amEV9i3NFwM3E_uGiiiHXrph0,339
4
4
  imicpe/cs/l1.py,sha256=5bTNM8JG8J8srTamh-gl3ShhFoJjqCvVwlteN_M6Uak,3236
5
5
  imicpe/cs/masks.py,sha256=5ehQ-QnYY4trBt7BIx0Pp8DUa3x5KApkc7TPp9LA9Pc,2030
@@ -12,9 +12,9 @@ imicpe/optim/metrics.py,sha256=lcXT5gLtIdGARr5Lq1fWvVQNyqkKgy8BQsV4cHmbnvM,187
12
12
  imicpe/optim/operators.py,sha256=eSiY9X6ZI3dWsMjkWkR3rsi06yfpNHpHFWTVPaNqeWg,12589
13
13
  imicpe/optim/pnnDataset.py,sha256=PFh5u0SXx761O6N6vVfWfEDmzmCm87eYzAL7mWHBRrw,3971
14
14
  imicpe/optim/pnnTrainer.py,sha256=3ygh9XwFJN7jMPsEG3LHLa8sgBbDd9Yu_QWg4ZtM_DM,4571
15
- imicpe/optim/pnnUtils.py,sha256=LXU7wRfuEi6t-2VG2NStPAOzu19OKTxzNNnbHESpC2U,1523
16
- imicpe-1.0.6.dist-info/licenses/LICENSE,sha256=ACwmltkrXIz5VsEQcrqljq-fat6ZXAMepjXGoe40KtE,1069
17
- imicpe-1.0.6.dist-info/METADATA,sha256=WT7c8C1l6Z0k34bK5Pcm6gjJ5m4MQG2-sIfKSxXcN5M,1339
18
- imicpe-1.0.6.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
- imicpe-1.0.6.dist-info/top_level.txt,sha256=6_gSXCYolzjXHaIDeAsZ_M3nLXdqrMKt48XCz3reJc0,7
20
- imicpe-1.0.6.dist-info/RECORD,,
15
+ imicpe/optim/pnnUtils.py,sha256=9ImcZboIXWEzMC2_16BgzEImD9SqtjfU_xlDmPr2mMk,1600
16
+ imicpe-1.0.7.dist-info/licenses/LICENSE,sha256=ACwmltkrXIz5VsEQcrqljq-fat6ZXAMepjXGoe40KtE,1069
17
+ imicpe-1.0.7.dist-info/METADATA,sha256=aTv-mtxQA9UIlaT79a5l4SWYazA_f58y7CqXPbl6AU8,1339
18
+ imicpe-1.0.7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
+ imicpe-1.0.7.dist-info/top_level.txt,sha256=6_gSXCYolzjXHaIDeAsZ_M3nLXdqrMKt48XCz3reJc0,7
20
+ imicpe-1.0.7.dist-info/RECORD,,
File without changes