chainer-realismCNN
Chainer implementation for realismCNN proposed in Learning a Discriminative Model for the Perception of Realism in Composite Images.
Download pretrained caffe model
- Download pretrained caffe model.
- Run
python load_caffe_model.py
to transform pretrained caffe model into Chainer model.
Predict image's realism
- Download dataset Realism Prediction Data.
- Run
python mat2list_human_eval.py
to obtain image list & ground truth. - Run
python predict_realism.py
to obtain prediction results. AUC score will be printed out, prediction score for each image will be stored in plain text file.
Image Editing towards generating more realistic composited images
- Download dataset Color Adjustment Data.
- Run
python mat2list_image_editing.py
to obtain image list. - Run
python image_editing.py
to obtain more realistic images. (cut_and_paste image, generated image) will be saved in theresult
folder, and a plain file will be generated recording (cut_and_paste loss, generated loss) for each image.
Results
python image_editing.py
python poisson_image_editing.py
python modified_possion_image_editing.py
python image_blending_with_gan.py
NOTE
- Run
python [SCRIPT_NAME].py -h
for more options. - Download converted Chainer VGG-19 model from here.
- If you want to download Transient Attributes Dataset, please see the project website for more details