Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5ab99f7
fastgan
kaijieshi7 Jan 2, 2022
3615ee2
add difaug
kaijieshi7 Jan 4, 2022
c0164b8
fastgan
kaijieshi7 Jan 5, 2022
c1e907e
add lpips for fastgan
kaijieshi7 Jan 6, 2022
57876e6
update train.py
kaijieshi7 Jan 6, 2022
e2c38e4
can go on one gpu card
kaijieshi7 Jan 13, 2022
6097186
ddp without lpips and spectral_norm
kaijieshi7 Jan 14, 2022
d6307f6
use cpu load state_dict to minize card0's VRAM consume
kaijieshi7 Jan 14, 2022
2695306
code is ok, wait for FID
kaijieshi7 Jan 19, 2022
c0cdb85
update weight initialize
kaijieshi7 Jan 20, 2022
19f1a67
fix initialize bug
kaijieshi7 Jan 20, 2022
8b00ef1
fix init bug
kaijieshi7 Jan 20, 2022
39f7eef
fix bug: both real images and fake images need dataAug
kaijieshi7 Jan 20, 2022
3d6ae66
add code for save ckpt
kaijieshi7 Jan 24, 2022
1b9340a
add function: save .py file to easy research
kaijieshi7 Jan 24, 2022
7696324
directly using pytorch code to calculate FID on fake picutres generat…
kaijieshi7 Jan 24, 2022
984fe42
revise code
kaijieshi7 Jan 24, 2022
fcd72f7
produce images for FID caculation
kaijieshi7 Jan 24, 2022
2122367
revise train
kaijieshi7 Jan 24, 2022
27a72a1
for _u and _v use register_buffer in SpectralNorm.py
kaijieshi7 Jan 26, 2022
bc8781a
fix bug
kaijieshi7 Jan 26, 2022
a26e89b
this will result in same latent z
kaijieshi7 Jan 26, 2022
754118d
fix bug
kaijieshi7 Jan 26, 2022
4fc76f4
revise code
kaijieshi7 Jan 26, 2022
7390faf
use ema instead of generator for inference
kaijieshi7 Jan 27, 2022
9a768b6
use vgg for self-supervised discriminoter
kaijieshi7 Jan 27, 2022
4a050d2
aded some bash code
kaijieshi7 Jan 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Vision/gan/fastgan/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Modified from https://github.com/odegeasslbc/FastGAN-pytorch

## Training
- 多卡
```bash
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python3 -m oneflow.distributed.launch --nproc_per_node 8 --master_port 12345 train.py
```

- 单卡
```bash
CUDA_VISIBLE_DEVICES=0 python3 train.py
```

## Inference
- 打开对应的保存文件的位置,执行下面的命令
```bash
CUDA_VISIBLE_DEVICES=1 python3 eval.py --start_iter 1 --end_iter 2 --im_size 256 --n_sample 100 --artifacts /home/shikaijie/models/Vision/gan/fastgan/train_results/test
```

## FID
```bash
python3 fid.py --size 256 --path_b ../train_results/test --path_a /home/shikaijie/models/Vision/gan/fastgan/100-shot-panda --iter 1 --end 5
```

## TODO
1. 写好脚本,方便FID的计算
Loading