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
- 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
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
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
Metadata
Release files for prepareImage 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prepareImage-0.0.5.tar.gz | 11.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prepareImage-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.7 kB
Release files / prepareImage-0.0.5.tar.gz
| Download URL | prepareImage-0.0.5.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abaa8b5c4f92e1fd8d7f6023b38130b452ac1284a1c8a08f24e92d30ea0bda99
|
|
BLAKE2b-256 checksum How to use checksums |
719e985dea3b0c1da18cdf0e7b47d6458de57563f509080e061f8287dacda878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / prepareImage-0.0.5-py3-none-any.whl
| Download URL | prepareImage-0.0.5-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcddde154f9b2b0de52a35d493eff298777fd92b1efe7e6092ea3f7067591cc3
|
|
BLAKE2b-256 checksum How to use checksums |
3353038991a9034620bc50a7963e37dfdd916a6bde0c1115f9ca28ffc1aa20c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|