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
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
- Run on Terminal
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
- Run on Jupyter Notebook
%%bash
python3 prepare_data.py
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 prepareImage-0.0.2.tar.gz.
File metadata
- Download URL: prepareImage-0.0.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8e3991b90cc9c382959c5b783858610e274df281ff77607292ce74dd4b18a63
|
|
| MD5 |
7f6a3f2fdc7e8feb053d5e4c33281a5e
|
|
| BLAKE2b-256 |
3c75fbf61b044542f165ba2aa59e88baaf002e5c84a2157070c1088fdfe54064
|
File details
Details for the file prepareImage-0.0.2-py3-none-any.whl.
File metadata
- Download URL: prepareImage-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b59ec52c46dd47cc4ff5222524f533b895bfea874f9ac87fdee03c54ea89209
|
|
| MD5 |
3eae5b862fb853333e36ecb9a76d0812
|
|
| BLAKE2b-256 |
b22db1b0cbd341c3556ff9461923de99a6d7d9ff0fe28a71b5272fde76add329
|