Myosotis-Researches 0.0.19__tar.gz → 0.0.21__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.0.19 → myosotis_researches-0.0.21/Myosotis_Researches.egg-info}/PKG-INFO +1 -1
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/Myosotis_Researches.egg-info/SOURCES.txt +1 -0
- {myosotis_researches-0.0.19/Myosotis_Researches.egg-info → myosotis_researches-0.0.21}/PKG-INFO +1 -1
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/train_ccgan.py +1 -1
- myosotis_researches-0.0.21/myosotis_researches/CcGAN/utils/install_datasets.py +43 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/setup.py +1 -1
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/LICENSE +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/Myosotis_Researches.egg-info/dependency_links.txt +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/Myosotis_Researches.egg-info/top_level.txt +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/README.md +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/__init__.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_128/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_128/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_128/ResNet_embed.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_128/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_128/__init__.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_128/autoencoder.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_128/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_128/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_256/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_256/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_256/ResNet_embed.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_256/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_256/__init__.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_256/autoencoder.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_256/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/models_256/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/DiffAugment_pytorch.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/__init__.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/eval_metrics.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/opts.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/pretrain_AE.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/pretrain_CNN_class.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/pretrain_CNN_regre.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/train_ccgan.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/train_cgan.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/train_cgan_concat.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/train_net_for_label_embed.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128/utils.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/DiffAugment_pytorch.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/__init__.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/eval_metrics.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/opts.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/pretrain_AE.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/pretrain_CNN_class.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/pretrain_CNN_regre.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/train_cgan.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/train_cgan_concat.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/train_net_for_label_embed.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/train_128_output_10/utils.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/utils/__init__.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/utils/concat_image_horizontal.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/utils/concat_image_vertical.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/utils/make_h5.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/utils/print_hdf5_structure.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/__init__.py +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/pyproject.toml +0 -0
- {myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/setup.cfg +0 -0
{myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/Myosotis_Researches.egg-info/SOURCES.txt
RENAMED
@@ -51,5 +51,6 @@ myosotis_researches/CcGAN/train_128_output_10/utils.py
|
|
51
51
|
myosotis_researches/CcGAN/utils/__init__.py
|
52
52
|
myosotis_researches/CcGAN/utils/concat_image_horizontal.py
|
53
53
|
myosotis_researches/CcGAN/utils/concat_image_vertical.py
|
54
|
+
myosotis_researches/CcGAN/utils/install_datasets.py
|
54
55
|
myosotis_researches/CcGAN/utils/make_h5.py
|
55
56
|
myosotis_researches/CcGAN/utils/print_hdf5_structure.py
|
@@ -79,7 +79,7 @@ def train_ccgan(kernel_sigma, kappa, train_images, train_labels, netG, netD, net
|
|
79
79
|
# printed images with labels between the 5-th quantile and 95-th quantile of training labels
|
80
80
|
n_row=10; n_col = 1
|
81
81
|
z_fixed = torch.randn(n_row*n_col, dim_gan, dtype=torch.float).cuda()
|
82
|
-
selected_labels = np.array([0,
|
82
|
+
selected_labels = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
|
83
83
|
|
84
84
|
y_fixed = np.zeros(n_row*n_col)
|
85
85
|
for i in range(n_row):
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import gdown
|
2
|
+
from importlib import resources
|
3
|
+
import os
|
4
|
+
import rarfile
|
5
|
+
|
6
|
+
# Paths
|
7
|
+
datasets_dir = resources.files("myosotis_researches").joinpath("CcGAN", "datasets")
|
8
|
+
|
9
|
+
# File ID dictionary
|
10
|
+
file_id_dict = {
|
11
|
+
"Ra": "1DJfpvXTX1x6Ldf4nZzqzlVsQSx9iXo9I",
|
12
|
+
"MNIST": "1ZmTSX_wl68nsQI0ImfhpIsPClW_QrK1T",
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
# Function
|
17
|
+
def install_datasets(datasets_name):
|
18
|
+
|
19
|
+
# Path
|
20
|
+
zipped_dataset_path = os.path.join(datasets_dir, f"{datasets_name}_datasets.rar")
|
21
|
+
|
22
|
+
# File ID
|
23
|
+
file_id = file_id_dict[datasets_name]
|
24
|
+
|
25
|
+
# URL
|
26
|
+
url = f"https://drive.google.com/uc?id={file_id}"
|
27
|
+
|
28
|
+
# Download
|
29
|
+
gdown.download(url, zipped_dataset_path, quiet=False, use_cookies=False)
|
30
|
+
|
31
|
+
# Unzip
|
32
|
+
with rarfile.RarFile(zipped_dataset_path) as rf:
|
33
|
+
if rf.needs_password():
|
34
|
+
unzip_password = input("Password: ")
|
35
|
+
rf.extractall(path=datasets_dir, pwd=unzip_password)
|
36
|
+
else:
|
37
|
+
rf.extractall(path=datasets_dir)
|
38
|
+
|
39
|
+
# Delete zipped datasets
|
40
|
+
os.remove(zipped_dataset_path)
|
41
|
+
|
42
|
+
|
43
|
+
__all__ = ["install_datasets"]
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="Myosotis-Researches",
|
5
|
-
version="0.0.
|
5
|
+
version="0.0.21",
|
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.0.19 → myosotis_researches-0.0.21}/Myosotis_Researches.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{myosotis_researches-0.0.19 → myosotis_researches-0.0.21}/myosotis_researches/CcGAN/utils/make_h5.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|