Skip to main content

Flexible and Easy. We perform a package that help you build your own image dataset. Specially, it's easy to add your own prepare function

Project description

PrepareImage - Custom Your Our Image Dataset

Flexible and Easy. We perform a package that help you build your own image dataset. Specially, it's easy to add your own prepare function

Install

pip instal prepareImage

How to use

1. Fork this repo and custom it!

2. Class dataset

Coming soon!

This is what make this package powerful.

3. Run directly on file prepare_data.py

  1. Run on Terminal

mode in ["split", "combine", "line", "pos", "all", "gray", "look_alike", "without_edge"]:

  • combine: combine input, output images, then split to train/validation/test set
  • line: add line to input images
  • all: line then combine

If you already installed the package:

python3 -m prepareImage.prepare_data

or download file prepare_data.py from this repo and run:

python3 prepare_data.py

Example:

python prepare_data.py --mode all \
--image_dir ../training_data/lhq_256 \ 
--caffemodel hed_pretrained_bsds.caffemodel \
--pos2_dir ../training_data/new_data/pos2 \
--pos 2 \
--grayscale_dir ../training_data/new_data/grayscale \
--line_dir ../training_data/new_data/edge \
--train_dir ../training_data/new_data/train \
--test_dir ../training_data/new_data/test \
--val_dir ../training_data/new_data/val \
--output_dir ../training_data/new_data/grayscale \
--combine_dir ../training_data/new_data/combine

Split Data:

python prepare_data.py --mode split \
--train_dir ../training_data/new_data/train \
--test_dir ../training_data/new_data/test \
--val_dir ../training_data/new_data/val \
--combine_dir ../training_data/new_data/combine
  1. Run on Jupyter Notebook
%%bash
python3 prepare_data.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prepareImage-0.0.4.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

prepareImage-0.0.4-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file prepareImage-0.0.4.tar.gz.

File metadata

  • Download URL: prepareImage-0.0.4.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for prepareImage-0.0.4.tar.gz
Algorithm Hash digest
SHA256 645376bd5338c7ffcff67132ac3feb299c12b94db27a89f2bd1650b2555d59cc
MD5 fe45463ffca182d97521c0539f8df5fc
BLAKE2b-256 1704c915a281db48c3536ae14b1e04ef380034963fb12d885141c16aa18e4277

See more details on using hashes here.

File details

Details for the file prepareImage-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: prepareImage-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for prepareImage-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d88cfbb7eb9f0b5672facdd1dd0af99c1bf5e3e973bd2cfdf44f5cbebd525ba7
MD5 b35ca69938ea42af83d9d9e01fd49806
BLAKE2b-256 ec9297b929394cef419748d8cdbc0ac4e8c2d7654aee1b1d3b9095f5786c1fbe

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