Myosotis-Researches 0.1.14__py3-none-any.whl → 0.1.16__py3-none-any.whl
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/CcGAN/visualize/src/template.html +1 -1
- myosotis_researches/CcGAN/visualize/visualize_datasets.py +6 -2
- {myosotis_researches-0.1.14.dist-info → myosotis_researches-0.1.16.dist-info}/METADATA +38 -7
- {myosotis_researches-0.1.14.dist-info → myosotis_researches-0.1.16.dist-info}/RECORD +7 -7
- {myosotis_researches-0.1.14.dist-info → myosotis_researches-0.1.16.dist-info}/WHEEL +0 -0
- {myosotis_researches-0.1.14.dist-info → myosotis_researches-0.1.16.dist-info}/licenses/LICENSE +0 -0
- {myosotis_researches-0.1.14.dist-info → myosotis_researches-0.1.16.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,7 @@ def Image_to_Base64(image: Image):
|
|
17
17
|
return f"data:image/png;base64,{img_base64}"
|
18
18
|
|
19
19
|
|
20
|
-
def datasets_to_html(indexes, datasets_path, list_path, template_path):
|
20
|
+
def datasets_to_html(indexes, datasets_path, list_path, template_path, img_size):
|
21
21
|
|
22
22
|
N = len(indexes)
|
23
23
|
|
@@ -66,6 +66,7 @@ def datasets_to_html(indexes, datasets_path, list_path, template_path):
|
|
66
66
|
list_path=list_path,
|
67
67
|
template_path=template_path,
|
68
68
|
items=items,
|
69
|
+
img_size=img_size,
|
69
70
|
)
|
70
71
|
|
71
72
|
|
@@ -79,13 +80,16 @@ def visualize_datasets(
|
|
79
80
|
host="127.0.0.1",
|
80
81
|
port=8000,
|
81
82
|
debug=True,
|
83
|
+
img_size=64,
|
82
84
|
):
|
83
85
|
# Local server
|
84
86
|
app = Flask(__name__)
|
85
87
|
|
86
88
|
@app.route("/")
|
87
89
|
def index():
|
88
|
-
return datasets_to_html(
|
90
|
+
return datasets_to_html(
|
91
|
+
indexes, datasets_path, list_path, template_path, img_size
|
92
|
+
)
|
89
93
|
|
90
94
|
@app.route("/style.css")
|
91
95
|
def style():
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: Myosotis-Researches
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.16
|
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
|
@@ -25,6 +25,31 @@ Dynamic: summary
|
|
25
25
|
|
26
26
|
## `CcGAN` (`myosotis_researches.CcGAN`)
|
27
27
|
|
28
|
+
### `visualize`
|
29
|
+
|
30
|
+
The visualize module can display datasets as a webpage
|
31
|
+
|
32
|
+
Import with code
|
33
|
+
|
34
|
+
```python
|
35
|
+
from myosotis_researches.CcGAN.visualize import *
|
36
|
+
```
|
37
|
+
|
38
|
+
Now we only have `visualize_datasets` function, defined as
|
39
|
+
|
40
|
+
```python
|
41
|
+
visualize_datasets(
|
42
|
+
indexes,
|
43
|
+
datasets_path,
|
44
|
+
list_path,
|
45
|
+
template_path = resources.files("myosotis_researches").joinpath("CcGAN", "visualize", "src", "template,html"),
|
46
|
+
host = "127.0.0.1",
|
47
|
+
port = 8000,
|
48
|
+
debug = True,
|
49
|
+
img_size = 64
|
50
|
+
)
|
51
|
+
```
|
52
|
+
|
28
53
|
### `internal`
|
29
54
|
|
30
55
|
The `internal` module is used for setting the local package itself, like installing datasets and so on.
|
@@ -32,14 +57,14 @@ The `internal` module is used for setting the local package itself, like install
|
|
32
57
|
Import with code
|
33
58
|
|
34
59
|
```python
|
35
|
-
from myosotis_researches.internal import *
|
60
|
+
from myosotis_researches.CcGAN.internal import *
|
36
61
|
```
|
37
62
|
|
38
|
-
| Function | Desctiption
|
39
|
-
| --------------------------------- |
|
63
|
+
| Function | Desctiption |
|
64
|
+
| --------------------------------- | -------------------------------------------------------------------- |
|
40
65
|
| `install_datasets(datasets_name)` | Install the datasets in `datasets_name` to the local python package. |
|
41
|
-
| `uninstall_datasets()` | Remove all the datasets installed to the local python package.
|
42
|
-
| `show_datasets()` | Show all datasets installed.
|
66
|
+
| `uninstall_datasets()` | Remove all the datasets installed to the local python package. |
|
67
|
+
| `show_datasets()` | Show all datasets installed. |
|
43
68
|
|
44
69
|
**Note**:
|
45
70
|
|
@@ -56,15 +81,21 @@ The `utils` module contains some basic functions and classes which are frequentl
|
|
56
81
|
Import with code
|
57
82
|
|
58
83
|
```python
|
59
|
-
from myosotis_researches.utils import *
|
84
|
+
from myosotis_researches.CcGAN.utils import *
|
60
85
|
```
|
61
86
|
|
62
87
|
| Function | Description |
|
63
88
|
| ------------------------------------------------------------ | ----------------------------------------- |
|
64
89
|
| `concat_image(img_list, gap=2, direction="vertical")` | Concat images vertically or horizontally. |
|
65
90
|
| `make_h5(old_datasets_name, size, new_datasets_path, image_indexes, train_indexes, val_indexes)` | Get piece of original HDF5 datasets. |
|
91
|
+
| `parse_opts()` | Parse arguments. |
|
66
92
|
| `print_hdf5(name, obj)` | Print a basic structure of an HDF5 file. |
|
67
93
|
|
94
|
+
| Class | Description |
|
95
|
+
| ------------------- | --------------------- |
|
96
|
+
| `IMGs_dataset` | Images dataset. |
|
97
|
+
| `SimpleProgressBar` | Simple progress bars. |
|
98
|
+
|
68
99
|
**Note**:
|
69
100
|
|
70
101
|
1. Function `print_hdf5` should be used within a `with` block:
|
@@ -34,13 +34,13 @@ myosotis_researches/CcGAN/utils/opts.py,sha256=pd7-wknNPBO5hWRpO3YAPmmAsPKgZUUpK
|
|
34
34
|
myosotis_researches/CcGAN/utils/print_hdf5.py,sha256=VvmNAWtMDmg6D9V6ZbSUXrQTKRh9WIJeC4BR_ORJkco,300
|
35
35
|
myosotis_researches/CcGAN/utils/train.py,sha256=5ZXgkGesuInqUooJRpLej_KHqYQtlSDq90_5wig5elQ,5152
|
36
36
|
myosotis_researches/CcGAN/visualize/__init__.py,sha256=RHfzFo7FgcJhZVQ9DkEIGELK-lQNC5X915kPH8XGSiM,85
|
37
|
-
myosotis_researches/CcGAN/visualize/visualize_datasets.py,sha256=
|
37
|
+
myosotis_researches/CcGAN/visualize/visualize_datasets.py,sha256=UJoRldde8c0wHuYnoEwE_xF5u8SPmUMHx_3VGI3wLWI,2694
|
38
38
|
myosotis_researches/CcGAN/visualize/src/style.css,sha256=tn4ht9S6r0erf6zo5zfmOKPGjJ1TCLYBTI-YMbuDjFQ,661
|
39
39
|
myosotis_researches/CcGAN/visualize/src/style.css.map,sha256=QUV9UJNpjbfsAYBpnWPzOzInHPFmepgKkAuK_G_a2Xk,257
|
40
40
|
myosotis_researches/CcGAN/visualize/src/style.scss,sha256=tyMXl4ouQ1zuZ6JmSxFFJBVzaUgpC3eyhXsbVRcnD9A,593
|
41
|
-
myosotis_researches/CcGAN/visualize/src/template.html,sha256=
|
42
|
-
myosotis_researches-0.1.
|
43
|
-
myosotis_researches-0.1.
|
44
|
-
myosotis_researches-0.1.
|
45
|
-
myosotis_researches-0.1.
|
46
|
-
myosotis_researches-0.1.
|
41
|
+
myosotis_researches/CcGAN/visualize/src/template.html,sha256=oTUekYjhLRrxXYh1LjiMu-DJH70XB_bUF9ZXwmQZbYo,1667
|
42
|
+
myosotis_researches-0.1.16.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
43
|
+
myosotis_researches-0.1.16.dist-info/METADATA,sha256=G6ucoD9nrzFNSDiyBy8DIClnpbFuelDUOZ830zpGj_o,3484
|
44
|
+
myosotis_researches-0.1.16.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
45
|
+
myosotis_researches-0.1.16.dist-info/top_level.txt,sha256=zxAiMn5eyZNJM28MewTAkgi_RZJMbfWbzVR-KF0LdZE,20
|
46
|
+
myosotis_researches-0.1.16.dist-info/RECORD,,
|
File without changes
|
{myosotis_researches-0.1.14.dist-info → myosotis_researches-0.1.16.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|