Myosotis-Researches 0.1.19__tar.gz → 0.1.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.
Files changed (53) hide show
  1. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21/Myosotis_Researches.egg-info}/PKG-INFO +1 -1
  2. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/Myosotis_Researches.egg-info/SOURCES.txt +1 -1
  3. {myosotis_researches-0.1.19/Myosotis_Researches.egg-info → myosotis_researches-0.1.21}/PKG-INFO +1 -1
  4. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/utils/__init__.py +0 -2
  5. myosotis_researches-0.1.21/myosotis_researches/CcGAN/utils/view_dataset.py +16 -0
  6. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/visualize/visualize_datasets.py +0 -2
  7. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/setup.py +1 -1
  8. myosotis_researches-0.1.19/myosotis_researches/CcGAN/utils/make_h5.py +0 -34
  9. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/LICENSE +0 -0
  10. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/MANIFEST.in +0 -0
  11. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/Myosotis_Researches.egg-info/dependency_links.txt +0 -0
  12. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/Myosotis_Researches.egg-info/top_level.txt +0 -0
  13. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/README.md +0 -0
  14. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/__init__.py +0 -0
  15. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/internal/__init__.py +0 -0
  16. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/internal/install_datasets.py +0 -0
  17. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/internal/show_datasets.py +0 -0
  18. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/internal/uninstall_datasets.py +0 -0
  19. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_128/CcGAN_SAGAN.py +0 -0
  20. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_128/ResNet_class_eval.py +0 -0
  21. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_128/ResNet_embed.py +0 -0
  22. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_128/ResNet_regre_eval.py +0 -0
  23. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_128/__init__.py +0 -0
  24. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_128/autoencoder.py +0 -0
  25. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_128/cGAN_SAGAN.py +0 -0
  26. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_128/cGAN_concat_SAGAN.py +0 -0
  27. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_256/CcGAN_SAGAN.py +0 -0
  28. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_256/ResNet_class_eval.py +0 -0
  29. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_256/ResNet_embed.py +0 -0
  30. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_256/ResNet_regre_eval.py +0 -0
  31. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_256/__init__.py +0 -0
  32. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_256/autoencoder.py +0 -0
  33. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_256/cGAN_SAGAN.py +0 -0
  34. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/models_256/cGAN_concat_SAGAN.py +0 -0
  35. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/train/__init__.py +0 -0
  36. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/train/train_ccgan.py +0 -0
  37. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/train/train_cgan.py +0 -0
  38. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/train/train_cgan_concat.py +0 -0
  39. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/train/train_net_for_label_embed.py +0 -0
  40. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/utils/IMGs_dataset.py +0 -0
  41. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/utils/SimpleProgressBar.py +0 -0
  42. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/utils/concat_image.py +0 -0
  43. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/utils/opts.py +0 -0
  44. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/utils/print_hdf5.py +0 -0
  45. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/utils/train.py +0 -0
  46. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/visualize/__init__.py +0 -0
  47. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/visualize/src/style.css +0 -0
  48. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/visualize/src/style.css.map +0 -0
  49. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/visualize/src/style.scss +0 -0
  50. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/CcGAN/visualize/src/template.html +0 -0
  51. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/myosotis_researches/__init__.py +0 -0
  52. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/pyproject.toml +0 -0
  53. {myosotis_researches-0.1.19 → myosotis_researches-0.1.21}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Myosotis-Researches
3
- Version: 0.1.19
3
+ Version: 0.1.21
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
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Myosotis-Researches
3
- Version: 0.1.19
3
+ Version: 0.1.21
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,5 @@
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
@@ -9,7 +8,6 @@ from .opts import parse_opts
9
8
  __all__ = [
10
9
  "print_hdf5",
11
10
  "concat_image",
12
- "make_h5",
13
11
  "SimpleProgressBar",
14
12
  "IMGs_dataset",
15
13
  "PlotLoss",
@@ -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"]
@@ -38,8 +38,6 @@ def datasets_to_html(indexes, datasets_path, list_path, template_path, img_size)
38
38
 
39
39
  # Get list
40
40
  df = pd.read_csv(list_path)
41
- tool_wears = df.iloc[indexes]["tool_wear"]
42
- surfaces = df.iloc[indexes]["surface"]
43
41
  image_names = df.iloc[indexes]["image_name"]
44
42
 
45
43
  # Transform data to base64
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="Myosotis-Researches",
5
- version="0.1.19",
5
+ version="0.1.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",
@@ -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"]