Myosotis-Researches 0.1.25__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.
Files changed (43) hide show
  1. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26/Myosotis_Researches.egg-info}/PKG-INFO +1 -1
  2. {myosotis_researches-0.1.25/Myosotis_Researches.egg-info → myosotis_researches-0.1.26}/PKG-INFO +1 -1
  3. myosotis_researches-0.1.26/myosotis_researches/CcGAN/utils/__init__.py +2 -0
  4. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/utils/dataset.py +10 -11
  5. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/setup.py +1 -1
  6. myosotis_researches-0.1.25/myosotis_researches/CcGAN/utils/__init__.py +0 -2
  7. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/LICENSE +0 -0
  8. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/MANIFEST.in +0 -0
  9. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/Myosotis_Researches.egg-info/SOURCES.txt +0 -0
  10. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/Myosotis_Researches.egg-info/dependency_links.txt +0 -0
  11. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/Myosotis_Researches.egg-info/top_level.txt +0 -0
  12. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/README.md +0 -0
  13. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/__init__.py +0 -0
  14. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/CcGAN_SAGAN.py +0 -0
  15. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/ResNet_class_eval.py +0 -0
  16. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/ResNet_embed.py +0 -0
  17. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/ResNet_regre_eval.py +0 -0
  18. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/__init__.py +0 -0
  19. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/autoencoder.py +0 -0
  20. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/cGAN_SAGAN.py +0 -0
  21. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_128/cGAN_concat_SAGAN.py +0 -0
  22. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/CcGAN_SAGAN.py +0 -0
  23. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/ResNet_class_eval.py +0 -0
  24. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/ResNet_embed.py +0 -0
  25. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/ResNet_regre_eval.py +0 -0
  26. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/__init__.py +0 -0
  27. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/autoencoder.py +0 -0
  28. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/cGAN_SAGAN.py +0 -0
  29. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/models_256/cGAN_concat_SAGAN.py +0 -0
  30. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/IMGs_dataset.py +0 -0
  31. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/SimpleProgressBar.py +0 -0
  32. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/__init__.py +0 -0
  33. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/opts.py +0 -0
  34. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/old/train.py +0 -0
  35. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/__init__.py +0 -0
  36. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/train_ccgan.py +0 -0
  37. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/train_cgan.py +0 -0
  38. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/train_cgan_concat.py +0 -0
  39. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/train/train_net_for_label_embed.py +0 -0
  40. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/CcGAN/utils/concat_image.py +0 -0
  41. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/myosotis_researches/__init__.py +0 -0
  42. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/pyproject.toml +0 -0
  43. {myosotis_researches-0.1.25 → myosotis_researches-0.1.26}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Myosotis-Researches
3
- Version: 0.1.25
3
+ Version: 0.1.26
4
4
  Summary: A repository for storing my progress of researches.
5
5
  Home-page: https://github.com/Zeyu-Xie/Myosotis-Researches
6
6
  Author: Zeyu Xie
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Myosotis-Researches
3
- Version: 0.1.25
3
+ Version: 0.1.26
4
4
  Summary: A repository for storing my progress of researches.
5
5
  Home-page: https://github.com/Zeyu-Xie/Myosotis-Researches
6
6
  Author: Zeyu Xie
@@ -0,0 +1,2 @@
1
+ from .concat_image import concat_image
2
+ from .dataset import view_dataset, download_datasets
@@ -19,28 +19,27 @@ def view_dataset(dataset_path):
19
19
  f.visititems(_print_hdf5)
20
20
 
21
21
 
22
- # download_dataset
22
+ # download_datasets
23
23
  _file_id_dict = {
24
24
  "Ra": "1YVLFAaQ1ldre0ASLSRdV_kPIcAMkwGqO",
25
25
  "MNIST": "18249ryrDPsznWWtOkJuALZWCVoZqfibC",
26
26
  }
27
27
 
28
28
 
29
- def download_dataset(dataset_name, dataset_path):
30
- dataset_dir = os.path.dirname(dataset_path)
31
- if not os.path.exists(dataset_dir):
32
- os.makedirs(dataset_dir, exist_ok=True)
33
- zipped_dataset_path = os.path.join(dataset_dir, f"{dataset_name}.rar")
34
- file_id = _file_id_dict[dataset_name]
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]
35
34
  url = f"https://drive.google.com/uc?id={file_id}"
36
- gdown.download(url, zipped_dataset_path, quiet=False, use_cookies=False)
35
+ gdown.download(url, zipped_datasets_path, quiet=False, use_cookies=False)
37
36
  unzip_password = getpass.getpass("Please input the zipped file's password:")
38
37
  try:
39
- cmd = ["unrar", "x", f"-p{unzip_password}", zipped_dataset_path, dataset_dir]
38
+ cmd = ["unrar", "x", f"-p{unzip_password}", zipped_datasets_path, datasets_dir]
40
39
  subprocess.run(cmd, check=True)
41
40
  except subprocess.CalledProcessError as e:
42
41
  print(e)
43
- os.remove(zipped_dataset_path)
42
+ os.remove(zipped_datasets_path)
44
43
 
45
44
 
46
- __all__ = ["view_dataset", "download_dataset"]
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.25",
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,2 +0,0 @@
1
- from .concat_image import concat_image
2
- from .dataset import view_dataset, download_dataset