Gray background in hint for visualization.
File - open( select Image )
Click "Liner" to create line art
Click "RUN" to automatically color
Click "Color" to select a color and then draw a color hint
Click "RUN" to automatically color
- tensorflow ==1.13.1
- numpy==1.15.4
- tensorlayer==1.11.1
- tqdm==4.28.1
- opencv_python==3.4.4.19
- scipy==1.1.0
- Pillow==5.3.0
- PyQt5==5.11.3
-
pip install -r requirements.txt
-
Download saved_models PaintsTensorFlowDraftModel, PaintsTensorFlowModel, Liner and Waifu2x
- Liner is SketchKeras model
-
Copy the files(PaintsTensorFlowDraftModel, PaintsTensorFlowModel, Liner, Waifu2x) into "./GUI/src/saved_model/"
-
python3 runGUI.py
-
My Datasets are over 700,000 images and I created a lines, using SketchKeras
-
├─ root │ ├─ train │ │ ├─ image (hyperparameter: train_image_datasets_path, ex: path/*.*) │ │ │ └─ 1.jpg, 2.jpg, 3.jpg │ │ ├─ line (hyperparameter: train_line_datasets_path, ex: path/*.*) │ │ │ └─ 1.jpg, 2.jpg, 3.jpg │ ├─ test │ │ ├─ image (hyperparameter: test_image_datasets_path, ex: path/*.*) │ │ │ └─ 1.jpg, 2.jpg, 3.jpg │ │ └─ line (hyperparameter: test_line_datasets_path, ex: path/*.*) │ │ └─ 1.jpg, 2.jpg, 3.jpg
-
1.1. python3 training.py -loadEpochs 0 -mode draft
hyperparameter.py : lr = 1e-4 , epoch = 10 , batch_size = in my case 8 recommendation is 4
1.2. python3 training.py -loadEpochs 9 -mode draft
hyperparameter.py : lr = 1e-5 , epoch = 10 , batch_size = same as step 1.1
-
2.1. python3 training.py -loadEpochs 0 -mode 512
hyperparameter.py : lr = 1e-4 , epoch = 1 , batch_size = in my case 3 recommendation is 4
2.2. python3 training.py -loadEpochs 0 -mode 512
hyperparameter.py : lr = 1e-5 , epoch = 1 , batch_size = same as step 2.1