Enhanced Zero-DCE is CSE graduation project focused on augmenting the performance and quality of the original Zero-DCE model.
pip install -r requirements.txt
The basics are same as original Zero-DCE project
- Python 3.7
- Pytorch 1.0.0
- opencv
- torchvision 0.2.1
- cuda 10.0
- lpips
- segment-anything
- jupyter_bbox_widget
- roboflow
- dataclasses-json
- supervision
- Before you train, download training dataset first. Google drive or baidu cloud [password: 1234]
- unzip and put the downloaded "train_data" folder to "sample_data" folder.
- Run the following.
python train.py
python infer.py
python infer.py --with_sam
Default checkpoint the SAM uses is sam_vit_h_4b8939.pth
If you want use other checkpoint, download from SAM project page above and run the following.
python infer.py --with_sam --checkpoint {path to your checkpoint}