Myosotis-Researches 0.1.35__tar.gz → 0.1.36__tar.gz
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.
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36/Myosotis_Researches.egg-info}/PKG-INFO +1 -1
- {myosotis_researches-0.1.35/Myosotis_Researches.egg-info → myosotis_researches-0.1.36}/PKG-INFO +1 -1
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/similarity.py +23 -11
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/setup.py +1 -1
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/LICENSE +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/MANIFEST.in +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/Myosotis_Researches.egg-info/SOURCES.txt +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/Myosotis_Researches.egg-info/dependency_links.txt +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/Myosotis_Researches.egg-info/top_level.txt +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/README.md +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/__init__.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_128/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_128/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_128/ResNet_embed.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_128/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_128/__init__.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_128/autoencoder.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_128/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_128/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_256/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_256/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_256/ResNet_embed.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_256/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_256/__init__.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_256/autoencoder.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_256/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/models_256/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/old/IMGs_dataset.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/old/SimpleProgressBar.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/old/__init__.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/old/opts.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/old/train.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/train/__init__.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/train/train_ccgan.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/train/train_cgan.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/train/train_cgan_concat.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/train/train_net_for_label_embed.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/__init__.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/concat_image.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/dataset.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/src/style.css +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/src/style.css.map +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/src/style.scss +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/src/template.html +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/__init__.py +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/pyproject.toml +0 -0
- {myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/setup.cfg +0 -0
@@ -59,19 +59,25 @@ def PSNR(images):
|
|
59
59
|
PSNR_sum += _PSNR(images[i], images[j])
|
60
60
|
return PSNR_sum / (n * (n - 1) / 2)
|
61
61
|
|
62
|
+
|
62
63
|
# Cross-correlation
|
63
64
|
|
65
|
+
|
64
66
|
def _cross_correlation(image_1, image_2):
|
65
|
-
array_1 = np.array(image_1)
|
66
|
-
array_2 = np.array(image_2)
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
67
|
+
array_1 = np.array(image_1).astype(np.float32) / 255
|
68
|
+
array_2 = np.array(image_2).astype(np.float32) / 255
|
69
|
+
correlations = []
|
70
|
+
for c in range(3):
|
71
|
+
channel1 = array_1[..., c]
|
72
|
+
channel2 = array_2[..., c]
|
73
|
+
channel1 -= channel1.mean()
|
74
|
+
channel2 -= channel2.mean()
|
75
|
+
numerator = np.sum(channel1 * channel2)
|
76
|
+
denominator = np.sqrt(np.sum(channel1**2) * np.sum(channel2**2))
|
77
|
+
corr = numerator / denominator if denominator != 0 else 0
|
78
|
+
correlations.append(corr)
|
79
|
+
return np.mean(correlations)
|
80
|
+
|
75
81
|
|
76
82
|
def cross_correlation(images):
|
77
83
|
cross_correlation_sum = 0
|
@@ -81,8 +87,14 @@ def cross_correlation(images):
|
|
81
87
|
cross_correlation_sum += _cross_correlation(images[i], images[j])
|
82
88
|
return cross_correlation_sum / (n * (n - 1) / 2)
|
83
89
|
|
90
|
+
|
84
91
|
# Similarity
|
85
|
-
_method_dict = {
|
92
|
+
_method_dict = {
|
93
|
+
"MSE": MSE,
|
94
|
+
"SSIM": SSIM,
|
95
|
+
"PSNR": PSNR,
|
96
|
+
"cross-correlation": cross_correlation,
|
97
|
+
}
|
86
98
|
|
87
99
|
|
88
100
|
def similarity(images, method):
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="Myosotis-Researches",
|
5
|
-
version="0.1.
|
5
|
+
version="0.1.36",
|
6
6
|
description="A repository for storing my progress of researches.",
|
7
7
|
long_description=open("README.md").read(),
|
8
8
|
long_description_content_type="text/markdown",
|
File without changes
|
File without changes
|
{myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/Myosotis_Researches.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/Myosotis_Researches.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/old/__init__.py
RENAMED
File without changes
|
{myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/old/opts.py
RENAMED
File without changes
|
{myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/old/train.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{myosotis_researches-0.1.35 → myosotis_researches-0.1.36}/myosotis_researches/CcGAN/utils/dataset.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|