Myosotis-Researches 0.0.15__tar.gz → 0.0.17__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.15 → myosotis_researches-0.0.17/Myosotis_Researches.egg-info}/PKG-INFO +1 -1
- {myosotis_researches-0.0.15/Myosotis_Researches.egg-info → myosotis_researches-0.0.17}/PKG-INFO +1 -1
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/eval_metrics.py +1 -1
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/pretrain_AE.py +3 -3
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/pretrain_CNN_class.py +2 -2
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/pretrain_CNN_regre.py +3 -3
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/train_ccgan.py +3 -3
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/train_cgan.py +3 -3
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/train_cgan_concat.py +3 -3
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/utils/make_h5.py +1 -1
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/setup.py +1 -1
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/LICENSE +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/Myosotis_Researches.egg-info/SOURCES.txt +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/Myosotis_Researches.egg-info/dependency_links.txt +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/Myosotis_Researches.egg-info/top_level.txt +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/README.md +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/__init__.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_128/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_128/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_128/ResNet_embed.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_128/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_128/__init__.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_128/autoencoder.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_128/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_128/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_256/CcGAN_SAGAN.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_256/ResNet_class_eval.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_256/ResNet_embed.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_256/ResNet_regre_eval.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_256/__init__.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_256/autoencoder.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_256/cGAN_SAGAN.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/models_256/cGAN_concat_SAGAN.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/DiffAugment_pytorch.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/__init__.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/opts.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/train_net_for_label_embed.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/train_128/utils.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/utils/__init__.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/utils/concat_image_horizontal.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/utils/concat_image_vertical.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/utils/print_hdf5_structure.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/__init__.py +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/pyproject.toml +0 -0
- {myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/setup.cfg +0 -0
@@ -26,7 +26,7 @@ from scipy.stats import entropy
|
|
26
26
|
from torch.nn import functional as F
|
27
27
|
from torchvision.utils import save_image
|
28
28
|
|
29
|
-
from utils import SimpleProgressBar, IMGs_dataset
|
29
|
+
from .utils import SimpleProgressBar, IMGs_dataset
|
30
30
|
|
31
31
|
|
32
32
|
def normalize_images(batch_images):
|
@@ -54,8 +54,8 @@ args = parser.parse_args()
|
|
54
54
|
|
55
55
|
wd = args.root_path
|
56
56
|
os.chdir(wd)
|
57
|
-
from
|
58
|
-
from utils import IMGs_dataset, SimpleProgressBar
|
57
|
+
from ..models_128 import *
|
58
|
+
from .utils import IMGs_dataset, SimpleProgressBar
|
59
59
|
|
60
60
|
# some parameters in the opts
|
61
61
|
dim_bottleneck = args.dim_bottleneck
|
@@ -87,7 +87,7 @@ os.makedirs(save_AE_images_in_valid_folder, exist_ok=True)
|
|
87
87
|
# Data
|
88
88
|
###########################################################################################################
|
89
89
|
# data loader
|
90
|
-
data_filename = args.data_path + '/
|
90
|
+
data_filename = args.data_path + '/Ra_' + str(args.img_size) + 'x' + str(args.img_size) + '.h5'
|
91
91
|
hf = h5py.File(data_filename, 'r')
|
92
92
|
labels = hf['labels'][:]
|
93
93
|
labels = labels.astype(float)
|
@@ -63,7 +63,7 @@ args = parser.parse_args()
|
|
63
63
|
wd = args.root_path
|
64
64
|
os.chdir(wd)
|
65
65
|
from ..models_128 import *
|
66
|
-
from utils import IMGs_dataset
|
66
|
+
from .utils import IMGs_dataset
|
67
67
|
|
68
68
|
# cuda
|
69
69
|
device = torch.device("cuda")
|
@@ -81,7 +81,7 @@ os.makedirs(save_models_folder, exist_ok=True)
|
|
81
81
|
|
82
82
|
|
83
83
|
# data loader
|
84
|
-
data_filename = args.data_path + '/
|
84
|
+
data_filename = args.data_path + '/Ra_' + str(args.img_size) + 'x' + str(args.img_size) + '.h5'
|
85
85
|
hf = h5py.File(data_filename, 'r')
|
86
86
|
angles = hf['labels'][:]
|
87
87
|
angles = angles.astype(float)
|
@@ -56,8 +56,8 @@ args = parser.parse_args()
|
|
56
56
|
|
57
57
|
wd = args.root_path
|
58
58
|
os.chdir(wd)
|
59
|
-
from
|
60
|
-
from utils import IMGs_dataset
|
59
|
+
from ..models_128 import *
|
60
|
+
from .utils import IMGs_dataset
|
61
61
|
|
62
62
|
# cuda
|
63
63
|
device = torch.device("cuda")
|
@@ -78,7 +78,7 @@ os.makedirs(save_models_folder, exist_ok=True)
|
|
78
78
|
# Data
|
79
79
|
###########################################################################################################
|
80
80
|
# data loader
|
81
|
-
data_filename = args.data_path + '/
|
81
|
+
data_filename = args.data_path + '/Ra_' + str(args.img_size) + 'x' + str(args.img_size) + '.h5'
|
82
82
|
hf = h5py.File(data_filename, 'r')
|
83
83
|
labels = hf['labels'][:]
|
84
84
|
labels = labels.astype(float)
|
@@ -6,9 +6,9 @@ from PIL import Image
|
|
6
6
|
from torchvision.utils import save_image
|
7
7
|
import torch.cuda as cutorch
|
8
8
|
|
9
|
-
from utils import SimpleProgressBar, IMGs_dataset
|
10
|
-
from opts import parse_opts
|
11
|
-
from DiffAugment_pytorch import DiffAugment
|
9
|
+
from .utils import SimpleProgressBar, IMGs_dataset
|
10
|
+
from .opts import parse_opts
|
11
|
+
from .DiffAugment_pytorch import DiffAugment
|
12
12
|
|
13
13
|
''' Settings '''
|
14
14
|
args = parse_opts()
|
@@ -6,9 +6,9 @@ import numpy as np
|
|
6
6
|
import os
|
7
7
|
import timeit
|
8
8
|
|
9
|
-
from utils import IMGs_dataset, SimpleProgressBar
|
10
|
-
from opts import parse_opts
|
11
|
-
from DiffAugment_pytorch import DiffAugment
|
9
|
+
from .utils import IMGs_dataset, SimpleProgressBar
|
10
|
+
from .opts import parse_opts
|
11
|
+
from .DiffAugment_pytorch import DiffAugment
|
12
12
|
|
13
13
|
''' Settings '''
|
14
14
|
args = parse_opts()
|
@@ -6,9 +6,9 @@ import numpy as np
|
|
6
6
|
import os
|
7
7
|
import timeit
|
8
8
|
|
9
|
-
from utils import IMGs_dataset, SimpleProgressBar
|
10
|
-
from opts import parse_opts
|
11
|
-
from DiffAugment_pytorch import DiffAugment
|
9
|
+
from .utils import IMGs_dataset, SimpleProgressBar
|
10
|
+
from .opts import parse_opts
|
11
|
+
from .DiffAugment_pytorch import DiffAugment
|
12
12
|
|
13
13
|
''' Settings '''
|
14
14
|
args = parse_opts()
|
{myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/myosotis_researches/CcGAN/utils/make_h5.py
RENAMED
@@ -2,7 +2,7 @@ import h5py
|
|
2
2
|
import numpy as np
|
3
3
|
import os
|
4
4
|
from PIL import Image
|
5
|
-
from print_hdf5_structure import print_hdf5_structure
|
5
|
+
from .print_hdf5_structure import print_hdf5_structure
|
6
6
|
|
7
7
|
# Make all images to a HDF5 file
|
8
8
|
def make_h5(image_dir, h5_path, image_names = [], indx_train = None, indx_valid = None, image_labels = None, image_types = None):
|
@@ -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.17",
|
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
|
{myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/Myosotis_Researches.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/Myosotis_Researches.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
{myosotis_researches-0.0.15 → myosotis_researches-0.0.17}/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
|