Myosotis-Researches 0.1.39__tar.gz → 0.1.41__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.39 → myosotis_researches-0.1.41/Myosotis_Researches.egg-info}/PKG-INFO +1 -1
- {myosotis_researches-0.1.39/Myosotis_Researches.egg-info → myosotis_researches-0.1.41}/PKG-INFO +1 -1
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/utils/similarity.py +7 -5
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/setup.py +1 -1
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/LICENSE +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/MANIFEST.in +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/Myosotis_Researches.egg-info/SOURCES.txt +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/Myosotis_Researches.egg-info/dependency_links.txt +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/Myosotis_Researches.egg-info/top_level.txt +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/README.md +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/__init__.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_128/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_128/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_128/ResNet_embed.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_128/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_128/__init__.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_128/autoencoder.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_128/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_128/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_256/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_256/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_256/ResNet_embed.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_256/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_256/__init__.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_256/autoencoder.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_256/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/models_256/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/old/IMGs_dataset.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/old/SimpleProgressBar.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/old/__init__.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/old/opts.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/old/train.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/train/__init__.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/train/train_ccgan.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/train/train_cgan.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/train/train_cgan_concat.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/train/train_net_for_label_embed.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/utils/__init__.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/utils/concat_image.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/utils/dataset.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/utils/src/style.css +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/utils/src/style.css.map +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/utils/src/style.scss +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/utils/src/template.html +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/__init__.py +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/pyproject.toml +0 -0
- {myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/setup.cfg +0 -0
@@ -92,12 +92,14 @@ def cross_correlation(images):
|
|
92
92
|
def _rgb_histogram(image, bins=32):
|
93
93
|
"""
|
94
94
|
image: numpy array of shape (H, W, 3), RGB format
|
95
|
-
returns: concatenated histogram for R, G, B channels
|
95
|
+
returns: concatenated and normalized histogram for R, G, B channels
|
96
96
|
"""
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
97
|
+
image = np.asarray(image)
|
98
|
+
hist_r, _ = np.histogram(image[:, :, 0], bins=bins, range=(0, 256))
|
99
|
+
hist_g, _ = np.histogram(image[:, :, 1], bins=bins, range=(0, 256))
|
100
|
+
hist_b, _ = np.histogram(image[:, :, 2], bins=bins, range=(0, 256))
|
101
|
+
hist = np.concatenate([hist_r, hist_g, hist_b]).astype(np.float64)
|
102
|
+
hist /= np.sum(hist) # Normalize to make it a probability distribution
|
101
103
|
return hist
|
102
104
|
|
103
105
|
|
@@ -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.41",
|
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.39 → myosotis_researches-0.1.41}/Myosotis_Researches.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/Myosotis_Researches.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/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.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/old/__init__.py
RENAMED
File without changes
|
{myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/myosotis_researches/CcGAN/old/opts.py
RENAMED
File without changes
|
{myosotis_researches-0.1.39 → myosotis_researches-0.1.41}/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.39 → myosotis_researches-0.1.41}/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
|