This repository is ST605 team’s official implementation of competition 第二届[计图Jittor]人工智能挑战赛 issue 1(赛题一) which is a semantic image synthesis task. All of the codes are based on a newly deep learning freamwork Jittor. Our results achieved 6th rank in track A and 7th in track B.
Data Preparation
For training data and test data with track A and B, please follow the competition’s website for downloading. We assume that all of the real images are with .jpg format and all of the label images are with .png format. If you would like to train on your own dataset, please follow the suggested folder structure:
We already set defaul configs in main.py. Please specify your own data path by setting --input_path with ./dataset/flickr in Data Preparation. Please specify training log root by setting --training_log_path.
jittor-ST605-NaturePainter
Descripition
This repository is ST605 team’s official implementation of competition 第二届[计图Jittor]人工智能挑战赛 issue 1(赛题一) which is a semantic image synthesis task. All of the codes are based on a newly deep learning freamwork Jittor. Our results achieved 6th rank in track A and 7th in track B.
Data Preparation
For training data and test data with track A and B, please follow the competition’s website for downloading. We assume that all of the real images are with .jpg format and all of the label images are with .png format. If you would like to train on your own dataset, please follow the suggested folder structure:
Environments
If you want to achieve the same performance, we suggest to run this code on 8 A100 GPUs with batch size 24.
For minimal training, we highly sugget to run in GPU higher or eaqul to
3090
,3090Ti
,V100
,A100
.For our environments:
Please install other dependencies by:
Training Scripts
We already set defaul configs in
main.py
. Please specify your own data path by setting--input_path
with./dataset/flickr
in Data Preparation. Please specify training log root by setting--training_log_path
.For multi-gpu training:
For single gpu training:
Inference
The minimal inference requirement is running in a device which GPU memory is geater than
13G
.Competition Check Codes
For training, run:
For generating results, please download ckpt file from BaiduNetDisk. Then, run:
Acknowledgements
This repository is based on OASIS‘s official implementation. Please find more details in their paper: You Only Need Adversarial Supervision for Semantic Image Synthesis.
For the implementation of spectral norm, we adoptted a third party implementation from Jittor’s Discussion Website.