A repository for storing my progress of researches.
Project description
Myosotis-Researches
CcGAN (myosotis_researches.CcGAN)
visualize
The visualize module can display datasets as a webpage
Import with code
from myosotis_researches.CcGAN.visualize import *
Now we only have visualize_datasets function, defined as
visualize_datasets(
indexes,
datasets_path,
list_path,
template_path = resources.files("myosotis_researches").joinpath("CcGAN", "visualize", "src", "template,html"),
host = "127.0.0.1",
port = 8000,
debug = True,
img_size = 64
)
internal
The internal module is used for setting the local package itself, like installing datasets and so on.
Import with code
from myosotis_researches.CcGAN.internal import *
| Function | Desctiption |
|---|---|
install_datasets(datasets_name) |
Install the datasets in datasets_name to the local python package. |
uninstall_datasets() |
Remove all the datasets installed to the local python package. |
show_datasets() |
Show all datasets installed. |
Note:
-
The path of the installed datasets are
resources.files("myosotis_researches").join("CcGAN", "<datasets_name>")To run this code, remember to add
from importlib import resourcesat the beginning.
utils
The utils module contains some basic functions and classes which are frequently used during the CcGAN research.
Import with code
from myosotis_researches.CcGAN.utils import *
| Function | Description |
|---|---|
concat_image(img_list, gap=2, direction="vertical") |
Concat images vertically or horizontally. |
make_h5(old_datasets_name, size, new_datasets_path, image_indexes, train_indexes, val_indexes) |
Get piece of original HDF5 datasets. |
parse_opts() |
Parse arguments. |
print_hdf5(name, obj) |
Print a basic structure of an HDF5 file. |
| Class | Description |
|---|---|
IMGs_dataset |
Images dataset. |
SimpleProgressBar |
Simple progress bars. |
Note:
-
Function
print_hdf5should be used within awithblock:import h5py with h5py.File(<HDF5_file_path>, "r") as f: f.visititems(print_hdf5)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file myosotis_researches-0.1.26.tar.gz.
File metadata
- Download URL: myosotis_researches-0.1.26.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
337f4865db31143659766f84dbf370c74c6f0aa1865ad3abb6c5317fb1bc3feb
|
|
| MD5 |
8058e4fd2d87721dbb6e944329969018
|
|
| BLAKE2b-256 |
9ad39a36837678c36f813af5bfe6f592a5fbc5137fa9f4efe8cc9edbc595197e
|
File details
Details for the file myosotis_researches-0.1.26-py3-none-any.whl.
File metadata
- Download URL: myosotis_researches-0.1.26-py3-none-any.whl
- Upload date:
- Size: 60.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be3a7b93f8656dc70918d6101f0e76a34ba3a795322583ddd2ccc09a1f5a3052
|
|
| MD5 |
22913c42b370667dfdb6e5a8a2dc018c
|
|
| BLAKE2b-256 |
eeca57070c13079f92a6274ed72c554d4d851e56317ea3c19f43a1c2bfbdeeb8
|