Skip to main content

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:

  1. 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 resources at 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:

  1. Function print_hdf5 should be used within a with block:

    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

myosotis_researches-0.1.25.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myosotis_researches-0.1.25-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

Details for the file myosotis_researches-0.1.25.tar.gz.

File metadata

  • Download URL: myosotis_researches-0.1.25.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

Hashes for myosotis_researches-0.1.25.tar.gz
Algorithm Hash digest
SHA256 d1c568d3115876c3dea7b0b03d2beda2938936a2f9eafe40c0c008a2f3121de5
MD5 84e3da24f708e2b04700108a0ff61bf2
BLAKE2b-256 7f22d972d2c75569493583a24b71cca24742c589d14a4cc6f63e16e2a66d5f6e

See more details on using hashes here.

File details

Details for the file myosotis_researches-0.1.25-py3-none-any.whl.

File metadata

File hashes

Hashes for myosotis_researches-0.1.25-py3-none-any.whl
Algorithm Hash digest
SHA256 0a1303bc0f28331f53e31bca73ff20d0f6ad2f75a81060279e8bdb7d494302d2
MD5 c3f1911392b726f6390e785eff2012d3
BLAKE2b-256 359f9dcbbc9f87f26d5dec64e40870ede607f4af1c1aaef8974b5c962070e297

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page