Myosotis-Researches 0.1.24__tar.gz → 0.1.26__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.24 → myosotis_researches-0.1.26/Myosotis_Researches.egg-info}/PKG-INFO +1 -1
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/Myosotis_Researches.egg-info/SOURCES.txt +1 -1
- {myosotis_researches-0.1.24/Myosotis_Researches.egg-info → myosotis_researches-0.1.26}/PKG-INFO +1 -1
- myosotis_researches-0.1.26/myosotis_researches/CcGAN/utils/__init__.py +2 -0
- myosotis_researches-0.1.26/myosotis_researches/CcGAN/utils/dataset.py +45 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/setup.py +1 -1
- myosotis_researches-0.1.24/myosotis_researches/CcGAN/utils/__init__.py +0 -2
- myosotis_researches-0.1.24/myosotis_researches/CcGAN/utils/view_dataset.py +0 -16
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/LICENSE +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/MANIFEST.in +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/Myosotis_Researches.egg-info/dependency_links.txt +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/Myosotis_Researches.egg-info/top_level.txt +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/README.md +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/__init__.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/ResNet_embed.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/__init__.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/autoencoder.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/ResNet_embed.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/__init__.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/autoencoder.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/IMGs_dataset.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/SimpleProgressBar.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/__init__.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/opts.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/train.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/__init__.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/train_ccgan.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/train_cgan.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/train_cgan_concat.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/train_net_for_label_embed.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/utils/concat_image.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/__init__.py +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/pyproject.toml +0 -0
- {myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/setup.cfg +0 -0
{myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/Myosotis_Researches.egg-info/SOURCES.txt
RENAMED
@@ -37,4 +37,4 @@ myosotis_researches/CcGAN/train/train_cgan_concat.py
|
|
37
37
|
myosotis_researches/CcGAN/train/train_net_for_label_embed.py
|
38
38
|
myosotis_researches/CcGAN/utils/__init__.py
|
39
39
|
myosotis_researches/CcGAN/utils/concat_image.py
|
40
|
-
myosotis_researches/CcGAN/utils/
|
40
|
+
myosotis_researches/CcGAN/utils/dataset.py
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import gdown
|
2
|
+
import getpass
|
3
|
+
import h5py
|
4
|
+
import os
|
5
|
+
import subprocess
|
6
|
+
|
7
|
+
|
8
|
+
# view_dataset
|
9
|
+
def _print_hdf5(name, obj):
|
10
|
+
indent = " " * name.count("/")
|
11
|
+
if isinstance(obj, h5py.Dataset):
|
12
|
+
print(f"{indent}[Dataset] {name} shape={obj.shape} dtype={obj.dtype}")
|
13
|
+
elif isinstance(obj, h5py.Group):
|
14
|
+
print(f"{indent}[Group] {name}")
|
15
|
+
|
16
|
+
|
17
|
+
def view_dataset(dataset_path):
|
18
|
+
with h5py.File(dataset_path, "r") as f:
|
19
|
+
f.visititems(_print_hdf5)
|
20
|
+
|
21
|
+
|
22
|
+
# download_datasets
|
23
|
+
_file_id_dict = {
|
24
|
+
"Ra": "1YVLFAaQ1ldre0ASLSRdV_kPIcAMkwGqO",
|
25
|
+
"MNIST": "18249ryrDPsznWWtOkJuALZWCVoZqfibC",
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
def download_datasets(datasets_name, datasets_dir):
|
30
|
+
if not os.path.exists(datasets_dir):
|
31
|
+
os.makedirs(datasets_dir, exist_ok=True)
|
32
|
+
zipped_datasets_path = os.path.join(datasets_dir, f"{datasets_name}.rar")
|
33
|
+
file_id = _file_id_dict[datasets_name]
|
34
|
+
url = f"https://drive.google.com/uc?id={file_id}"
|
35
|
+
gdown.download(url, zipped_datasets_path, quiet=False, use_cookies=False)
|
36
|
+
unzip_password = getpass.getpass("Please input the zipped file's password:")
|
37
|
+
try:
|
38
|
+
cmd = ["unrar", "x", f"-p{unzip_password}", zipped_datasets_path, datasets_dir]
|
39
|
+
subprocess.run(cmd, check=True)
|
40
|
+
except subprocess.CalledProcessError as e:
|
41
|
+
print(e)
|
42
|
+
os.remove(zipped_datasets_path)
|
43
|
+
|
44
|
+
|
45
|
+
__all__ = ["view_dataset", "download_datasets"]
|
@@ -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.26",
|
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",
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import h5py
|
2
|
-
|
3
|
-
|
4
|
-
def _print_hdf5(name, obj):
|
5
|
-
indent = " " * name.count("/")
|
6
|
-
if isinstance(obj, h5py.Dataset):
|
7
|
-
print(f"{indent}[Dataset] {name} shape={obj.shape} dtype={obj.dtype}")
|
8
|
-
elif isinstance(obj, h5py.Group):
|
9
|
-
print(f"{indent}[Group] {name}")
|
10
|
-
|
11
|
-
|
12
|
-
def view_dataset(dataset_path):
|
13
|
-
with h5py.File(dataset_path, "r") as f:
|
14
|
-
f.visititems(_print_hdf5)
|
15
|
-
|
16
|
-
__all__ = ["view_dataset"]
|
File without changes
|
File without changes
|
File without changes
|
{myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/Myosotis_Researches.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/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.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/__init__.py
RENAMED
File without changes
|
{myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/opts.py
RENAMED
File without changes
|
{myosotis_researches-0.1.24 → myosotis_researches-0.1.26}/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
|
File without changes
|
File without changes
|