Myosotis-Researches 0.1.20__tar.gz → 0.1.22__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.20 → myosotis_researches-0.1.22/Myosotis_Researches.egg-info}/PKG-INFO +1 -1
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/Myosotis_Researches.egg-info/SOURCES.txt +1 -1
- {myosotis_researches-0.1.20/Myosotis_Researches.egg-info → myosotis_researches-0.1.22}/PKG-INFO +1 -1
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/__init__.py +3 -3
- myosotis_researches-0.1.22/myosotis_researches/CcGAN/utils/view_dataset.py +16 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/setup.py +1 -1
- myosotis_researches-0.1.20/myosotis_researches/CcGAN/utils/make_h5.py +0 -34
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/LICENSE +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/MANIFEST.in +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/Myosotis_Researches.egg-info/dependency_links.txt +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/Myosotis_Researches.egg-info/top_level.txt +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/README.md +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/__init__.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/internal/__init__.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/internal/install_datasets.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/internal/show_datasets.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/internal/uninstall_datasets.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_128/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_128/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_128/ResNet_embed.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_128/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_128/__init__.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_128/autoencoder.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_128/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_128/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_256/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_256/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_256/ResNet_embed.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_256/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_256/__init__.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_256/autoencoder.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_256/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/models_256/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/train/__init__.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/train/train_ccgan.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/train/train_cgan.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/train/train_cgan_concat.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/train/train_net_for_label_embed.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/IMGs_dataset.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/SimpleProgressBar.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/concat_image.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/opts.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/print_hdf5.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/train.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/visualize/__init__.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/visualize/src/style.css +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/visualize/src/style.css.map +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/visualize/src/style.scss +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/visualize/src/template.html +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/visualize/visualize_datasets.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/__init__.py +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/pyproject.toml +0 -0
- {myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/setup.cfg +0 -0
{myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/Myosotis_Researches.egg-info/SOURCES.txt
RENAMED
@@ -38,10 +38,10 @@ myosotis_researches/CcGAN/utils/IMGs_dataset.py
|
|
38
38
|
myosotis_researches/CcGAN/utils/SimpleProgressBar.py
|
39
39
|
myosotis_researches/CcGAN/utils/__init__.py
|
40
40
|
myosotis_researches/CcGAN/utils/concat_image.py
|
41
|
-
myosotis_researches/CcGAN/utils/make_h5.py
|
42
41
|
myosotis_researches/CcGAN/utils/opts.py
|
43
42
|
myosotis_researches/CcGAN/utils/print_hdf5.py
|
44
43
|
myosotis_researches/CcGAN/utils/train.py
|
44
|
+
myosotis_researches/CcGAN/utils/view_dataset.py
|
45
45
|
myosotis_researches/CcGAN/visualize/__init__.py
|
46
46
|
myosotis_researches/CcGAN/visualize/visualize_datasets.py
|
47
47
|
myosotis_researches/CcGAN/visualize/src/style.css
|
@@ -1,20 +1,20 @@
|
|
1
1
|
from .print_hdf5 import print_hdf5
|
2
2
|
from .concat_image import concat_image
|
3
|
-
from .make_h5 import make_h5
|
4
3
|
from .SimpleProgressBar import SimpleProgressBar
|
5
4
|
from .IMGs_dataset import IMGs_dataset
|
6
5
|
from .train import PlotLoss, compute_entropy, predict_class_labels, DiffAugment
|
7
6
|
from .opts import parse_opts
|
7
|
+
from .view_dataset import view_dataset
|
8
8
|
|
9
9
|
__all__ = [
|
10
10
|
"print_hdf5",
|
11
11
|
"concat_image",
|
12
|
-
"make_h5",
|
13
12
|
"SimpleProgressBar",
|
14
13
|
"IMGs_dataset",
|
15
14
|
"PlotLoss",
|
16
15
|
"compute_entropy",
|
17
16
|
"predict_class_labels",
|
18
17
|
"DiffAugment",
|
19
|
-
"parse_opts"
|
18
|
+
"parse_opts",
|
19
|
+
"view_dataset"
|
20
20
|
]
|
@@ -0,0 +1,16 @@
|
|
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"]
|
@@ -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.22",
|
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,34 +0,0 @@
|
|
1
|
-
import h5py
|
2
|
-
from importlib import resources
|
3
|
-
import os
|
4
|
-
|
5
|
-
datasets_dir = resources.files("myosotis_researches").joinpath("CcGAN", "datasets")
|
6
|
-
|
7
|
-
|
8
|
-
def make_h5(
|
9
|
-
old_datasets_name,
|
10
|
-
size,
|
11
|
-
new_datasets_path,
|
12
|
-
image_indexes,
|
13
|
-
train_indexes,
|
14
|
-
val_indexes,
|
15
|
-
):
|
16
|
-
|
17
|
-
old_datasets_path = os.path.join(
|
18
|
-
datasets_dir, f"{old_datasets_name}_datasets", f"{old_datasets_name}_{size}x{size}.h5"
|
19
|
-
)
|
20
|
-
|
21
|
-
with h5py.File(old_datasets_path, "r") as f:
|
22
|
-
image_datas = f["images"][:]
|
23
|
-
image_labels = f["labels"][:]
|
24
|
-
image_types = f["types"][:]
|
25
|
-
|
26
|
-
with h5py.File(new_datasets_path, "w") as f:
|
27
|
-
f.create_dataset("images", data=image_datas[image_indexes])
|
28
|
-
f.create_dataset("indx_train", data=train_indexes)
|
29
|
-
f.create_dataset("indx_valid", data=val_indexes)
|
30
|
-
f.create_dataset("labels", data=image_labels[image_indexes])
|
31
|
-
f.create_dataset("types", data=image_types[image_indexes])
|
32
|
-
|
33
|
-
|
34
|
-
__all__ = ["make_h5"]
|
File without changes
|
File without changes
|
File without changes
|
{myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/Myosotis_Researches.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/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
|
{myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/opts.py
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.1.20 → myosotis_researches-0.1.22}/myosotis_researches/CcGAN/utils/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
|