https://github.com/dros1986/filter_removal
CNN-based photo-filter removal
https://github.com/dros1986/filter_removal
cnn convolutional-neural-networks filter-removal image-enhancement image-processing machine-learning photo-filter photo-repair photography pytorch unfilering
Last synced: about 2 months ago
JSON representation
CNN-based photo-filter removal
- Host: GitHub
- URL: https://github.com/dros1986/filter_removal
- Owner: dros1986
- Created: 2017-06-21T10:03:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T15:28:53.000Z (about 6 years ago)
- Last Synced: 2025-04-15T00:09:08.155Z (about 2 months ago)
- Topics: cnn, convolutional-neural-networks, filter-removal, image-enhancement, image-processing, machine-learning, photo-filter, photo-repair, photography, pytorch, unfilering
- Language: Python
- Homepage:
- Size: 55.1 MB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[](https://zenodo.org/badge/latestdoi/94990376)
Pytorch implementation of the paper:
**Artistic Photo Filter Removal Using CNNs**
Journal of Electronic Imaging, SPIE
[F. Piccoli](http://www.ivl.disco.unimib.it/people/flavio-piccoli/ "Flavio Piccoli"), [C. Cusano](http://www.ivl.disco.unimib.it/people/claudio-cusano/ "Claudio Cusano"), [S. Bianco](http://www.ivl.disco.unimib.it/people/simone-bianco/ "Simone Bianco"), [R. Schettini](http://www.ivl.disco.unimib.it/people/raimondo-schettini/ "Raimondo Schettini")Usage:
```bash
# clone this repository
git clone --recursive https://github.com/dros1986/filter_removal.git
# download the dataset
wget https://drive.google.com/a/campus.unimib.it/uc?export=download&confirm=XAOn&id=1vvLAO__opCjgLfRjAjW3WPWJHNiiVLbs
# unzip the file
unzip file.zip -d ./datasets/
# start training
python main.py -degin 3 degout 3
# start test
python main.py -degin 3 degout 3 --regen ./checkpoint.pth
```Input images
Output images
## Parameters
| Name | Description | Default |
| ---- | ----------- | ------- |
| degin | Degree of the polynomial onto which the color transform will be estimated | 3 |
| degout | Degree of the polynomial onto which the color transform will be applied | 3 |
| patchsize | patchsize*patchsize is the number of pixels involved in each color transform | 8 |
| nrow | Batch size will be nrow*nrow | 5 |
| indir | Folder containing filtered images | ./datasets/places-instagram/images/ |
| gtdir | Folder containing original images | ./datasets/places-instagram/images_orig/ |
| train_list | txt containing train set filenames | ./datasets/places-instagram/train-list.txt |
| validation_list | txt containing validation set filenames | ./datasets/places-instagram/smallvalidation-list.txt |
| test_list | txt containing test set filenames | ./datasets/places-instagram/test-list.txt |