Compare commits
53
Commits
36a118a22e
...
seq_pyr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ee10aa7a2 | ||
|
|
30e33bb037 | ||
|
|
d92a18e212 | ||
|
|
abecb2d20a | ||
|
|
eb3ad3b887 | ||
|
|
4b1cb0b06d | ||
|
|
cb76d36c4f | ||
|
|
cbecf668df | ||
|
|
e192f6f9e3 | ||
|
|
0b518e7f0e | ||
|
|
dfdf8d408e | ||
|
|
76cb457a54 | ||
|
|
b95ccc3ca1 | ||
|
|
54e7d33065 | ||
|
|
7c92e03b45 | ||
|
|
165adf7953 | ||
|
|
3b414e76d3 | ||
|
|
d93678ee1a | ||
|
|
dcb4ade0ca | ||
|
|
25112a7ff9 | ||
|
|
424f8d2fcc | ||
|
|
35ba014ba5 | ||
|
|
4c6497f726 | ||
|
|
d5e2c629b7 | ||
|
|
764df45095 | ||
|
|
21ba963409 | ||
|
|
9609125c15 | ||
|
|
d8136b2de8 | ||
|
|
c875a6a0ca | ||
|
|
b7a8e4dfef | ||
|
|
9148d63dc3 | ||
|
|
64ecb900f5 | ||
|
|
a678724711 | ||
|
|
aa96c6eb9c | ||
|
|
90cf267dd8 | ||
|
|
784fe3eb45 | ||
|
|
0ce28a2e18 | ||
|
|
4713a1fa89 | ||
|
|
2dd008d384 | ||
|
|
e14a2374c2 | ||
|
|
8fbd075f92 | ||
|
|
ffdc60062d | ||
|
|
73d374401b | ||
|
|
7470ca9fb6 | ||
|
|
1bf224841f | ||
|
|
cfa754bcef | ||
|
|
1c6b805519 | ||
|
|
ebe8522905 | ||
|
|
745193dc94 | ||
|
|
d59639b8d9 | ||
|
|
c14849f88a | ||
|
|
3544027d2e | ||
|
|
73ef4fe4d1 |
+3
-1
@@ -145,4 +145,6 @@ corrupt/
|
|||||||
wandb copy/
|
wandb copy/
|
||||||
checkpoints/
|
checkpoints/
|
||||||
temp/
|
temp/
|
||||||
ids/
|
ids/
|
||||||
|
examples/
|
||||||
|
custom_data/dijkstra*
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
@@ -1,49 +0,0 @@
|
|||||||
# stylegan2-tf-2.x
|
|
||||||
* This is tensorflow 2.0 based keras subclassing reimplementation of official [StyleGAN2 Repo](https://github.com/NVlabs/stylegan2)
|
|
||||||
|
|
||||||
## Inference from official weights
|
|
||||||
* Please check [how_to_extract_official_weights.md](./how_to_extract_official_weights.md)
|
|
||||||
|
|
||||||
| Official repo result | Official weight copied result from this repo |
|
|
||||||
| :---: | :---: |
|
|
||||||
| ![official_result] | ![restored_result] |
|
|
||||||
|
|
||||||
## Training on 256x256
|
|
||||||
* batch size 32
|
|
||||||
* around 300k steps
|
|
||||||
|
|
||||||
| d_loss | g_loss |
|
|
||||||
| :---: | :---: |
|
|
||||||
| ![256x256_d_loss]| ![256x256_g_loss]|
|
|
||||||
|
|
||||||
* result samples
|
|
||||||
|
|
||||||
| | | |
|
|
||||||
| :---: | :---: | :---: |
|
|
||||||
| ![256x256_result_0]| ![256x256_result_1]| ![256x256_result_2]|
|
|
||||||
|
|
||||||
## Using custom data
|
|
||||||
* Create dataset(tf.data.Dataset) loader which returns
|
|
||||||
* shape: `[None, 3, res, res]` where `res` is desired image resolution
|
|
||||||
* image value range: `[-1, +1]`
|
|
||||||
|
|
||||||
## Etc
|
|
||||||
### Using with pycharm
|
|
||||||
* If .bashrc file's paths don't work in pycharm environment (e.g. `nvcc -h`), open pycharm with following
|
|
||||||
```bash
|
|
||||||
# move to pycharm installed location (location may vary)
|
|
||||||
moono@moono-ubuntu:~$ cd .local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/201.7846.77/bin/
|
|
||||||
|
|
||||||
# launch pycharm with .bashrc
|
|
||||||
moono@moono-ubuntu:~/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/201.7846.77/bin$ bash pycharm.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
[loss_tensorboard]: assets/tf-keras-stylegan2-loss.PNG
|
|
||||||
[generation_tensorboard]: assets/tf-keras-stylegan2-fake-images.PNG
|
|
||||||
[official_result]: assets/seed6600-official.png
|
|
||||||
[restored_result]: assets/seed6600-restored.png
|
|
||||||
[256x256_d_loss]: assets/d_loss_256x256.png
|
|
||||||
[256x256_g_loss]: assets/g_loss_256x256.png
|
|
||||||
[256x256_result_0]: assets/out_256x256_0.png
|
|
||||||
[256x256_result_1]: assets/out_256x256_1.png
|
|
||||||
[256x256_result_2]: assets/out_256x256_2.png
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 215 KiB |
+414
@@ -0,0 +1,414 @@
|
|||||||
|
one final convolutional layer for smoothing, on the final coordinates
|
||||||
|
nohup python calculate_error.py --name error_al_all_150k > nohup/error/post_al_all_150k.out 2>&1 &
|
||||||
|
nohup python auto_encoder_static.py --name="lhunor_static_iccv_1" > nohup/iccv/encoders/static_iccv_1.out 2>&1 &
|
||||||
|
nohup python auto_encoder_static.py --name="lhunor_static_iccv_1_skirt" > nohup/iccv/encoders/static_iccv_1_skirt.out 2>&1 &
|
||||||
|
nohup python auto_encoder_static.py --name="lhunor_static_iccv_1_cape_f" > nohup/iccv/encoders/static_iccv_1_cape_f.out 2>&1 &
|
||||||
|
nohup python auto_encoder_static.py --name="lhunor_static_iccv_1_cape_m" > nohup/iccv/encoders/static_iccv_1_cape_m.out 2>&1 &
|
||||||
|
nohup python auto_encoder_static.py --name="lhunor_static_iccv_1_10p" > nohup/iccv/encoders/static_iccv_1_10p.out 2>&1 &
|
||||||
|
nohup python auto_encoder_static.py --name="lhunor_static_iccv_1_25p" > nohup/iccv/encoders/static_iccv_1_25p.out 2>&1 &
|
||||||
|
nohup python auto_encoder_body.py --name="lhunor_body_iccv_1" > nohup/iccv/encoders/body_iccv_1.out 2>&1 &
|
||||||
|
nohup python auto_encoder_body.py --name="lhunor_body_iccv_1_skirt" > nohup/iccv/encoders/body_iccv_1_skirt.out 2>&1 &
|
||||||
|
nohup python auto_encoder_body.py --name="lhunor_body_iccv_1_cape_m" > nohup/iccv/encoders/body_iccv_1_cape_m.out 2>&1 &
|
||||||
|
nohup python auto_encoder_body.py --name="lhunor_body_iccv_1_10p" > nohup/iccv/encoders/body_iccv_1_10p.out 2>&1 &
|
||||||
|
nohup python auto_encoder_body.py --name="lhunor_body_iccv_1_25p" > nohup/iccv/encoders/body_iccv_1_25p.out 2>&1 &
|
||||||
|
nohup python auto_encoder_curv.py --name="lhunor_curv_iccv_1" > nohup/iccv/encoders/curv_iccv_1.out 2>&1 &
|
||||||
|
nohup python auto_encoder_curv.py --name="lhunor_curv_iccv_1_skirt" > nohup/iccv/encoders/curv_iccv_1_skirt.out 2>&1 &
|
||||||
|
nohup python auto_encoder_curv.py --name="lhunor_curv_iccv_1_cape_f" > nohup/iccv/encoders/curv_iccv_1_cape_f.out 2>&1 &
|
||||||
|
nohup python auto_encoder_curv.py --name="lhunor_curv_iccv_1_cape_m" > nohup/iccv/encoders/curv_iccv_1_cape_m.out 2>&1 &
|
||||||
|
nohup python auto_encoder_curv.py --name="lhunor_curv_iccv_1_10p" > nohup/iccv/encoders/curv_iccv_1_10p.out 2>&1 &
|
||||||
|
nohup python auto_encoder_curv.py --name="lhunor_curv_iccv_1_25p" > nohup/iccv/encoders/curv_iccv_1_25p.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_cvae_iccv_gnn_1" > nohup/iccv/cvae_iccv_gnn_1.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all" > nohup/iccv/ablation/abl_all_3.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all_gnn" > nohup/iccv/ablation/abl_all_gnn.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all_gnn_2" > nohup/iccv/ablation/abl_all_gnn.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all_cape_f" > nohup/iccv/ablation/abl_all_cape_f_2.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all_skirt" > nohup/iccv/ablation/abl_all_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all_skirt_var" > nohup/iccv/ablation/abl_all_skirt_var.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all_skirt_var" > nohup/iccv/ablation/abl_all_skirt_var_2.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_curv" > nohup/iccv/ablation/abl_curv.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_curv_skirt" > nohup/iccv/ablation/abl_curv_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin" > nohup/iccv/ablation/abl_skin.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_skirt" > nohup/iccv/ablation/abl_skin_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_reg" > nohup/iccv/ablation/abl_reg.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_reg_skirt" > nohup/iccv/ablation/abl_reg_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_off" > nohup/iccv/ablation/abl_off.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_curv" > nohup/iccv/ablation/abl_skin_curv.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_curv_skirt" > nohup/iccv/ablation/abl_skin_curv_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_reg" > nohup/iccv/ablation/abl_skin_reg.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_reg_skirt" > nohup/iccv/ablation/abl_skin_reg_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_var" > nohup/iccv/ablation/abl_skin_var.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python evaluate_ae.py --name abl_all > nohup/iccv/evaluate/abl_all.out 2>&1 &
|
||||||
|
nohup python evaluate_ae.py --name abl_all_skirt > nohup/iccv/evaluate/abl_all_skirt.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_curv.py --name="lhunor_cvae_curv" > nohup/iccv/ablation/cvae_curv_3.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python upscale_test.py --name="iccv_32_2" > nohup/iccv/upscale/iccv_32_2.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_64_2" > nohup/iccv/upscale/iccv_64_2.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_128_2" > nohup/iccv/upscale/iccv_128_2.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_256_2" > nohup/iccv/upscale/iccv_256_2.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python upscale_test.py --name="iccv_32_2_skirt" > nohup/iccv/upscale/iccv_32_2_skirt.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_64_2_skirt" > nohup/iccv/upscale/iccv_64_2_skirt.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_128_2_skirt" > nohup/iccv/upscale/iccv_128_2_skirt.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_256_2_skirt" > nohup/iccv/upscale/iccv_256_2_skirt.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python upscale_test.py --name="iccv_32_2_cape_f" > nohup/iccv/upscale/iccv_32_2_cape_f_real.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_64_2_cape_f" > nohup/iccv/upscale/iccv_64_2_cape_f.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_128_2_cape_f" > nohup/iccv/upscale/iccv_128_2_cape_f.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_256_2_cape_f" > nohup/iccv/upscale/iccv_256_2_cape_f.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python upscale_test.py --name="iccv_32_2_cape_m" > nohup/iccv/upscale/iccv_32_2_cape_m.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_64_2_cape_m" > nohup/iccv/upscale/iccv_64_2_cape_m.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_128_2_cape_m" > nohup/iccv/upscale/iccv_128_2_cape_m.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="iccv_256_2_cape_m" > nohup/iccv/upscale/iccv_256_2_cape_m.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32" > nohup/iccv/pyr/iccv_pyr_32.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_var" > nohup/iccv/pyr/iccv_pyr_32_var.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_skirt" > nohup/iccv/pyr/iccv_pyr_32_skirt_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_skin" > nohup/iccv/pyr/iccv_pyr_32_skin.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_skin_skirt" > nohup/iccv/pyr/iccv_pyr_32_skin_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_curv" > nohup/iccv/pyr/iccv_pyr_32_curv.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_curv_skirt" > nohup/iccv/pyr/iccv_pyr_32_curv_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_reg" > nohup/iccv/pyr/iccv_pyr_32_reg.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_reg_skirt" > nohup/iccv/pyr/iccv_pyr_32_reg_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_10p" > nohup/iccv/pyr/iccv_pyr_32_10p.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_25p" > nohup/iccv/pyr/iccv_pyr_32_25p.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_jumpsuit" > nohup/iccv/pyr/iccv_pyr_32_jumpsuit.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_trousers" > nohup/iccv/pyr/iccv_pyr_32_trousers.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_top" > nohup/iccv/pyr/iccv_pyr_32_top.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_tshirt" > nohup/iccv/pyr/iccv_pyr_32_tshirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_skirt_skirt" > nohup/iccv/pyr/iccv_pyr_32_skirt_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_skirt_dress" > nohup/iccv/pyr/iccv_pyr_32_skirt_dress.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_skirt_batch" > nohup/iccv/pyr/iccv_pyr_32_skirt_batch.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64" > nohup/iccv/pyr/iccv_pyr_32_64.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_skin" > nohup/iccv/pyr/iccv_pyr_32_64_skin.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_skin_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_skin_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_curv" > nohup/iccv/pyr/iccv_pyr_32_64_curv.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_curv_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_curv_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_reg" > nohup/iccv/pyr/iccv_pyr_32_64_reg.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_reg_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_reg_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_10p" > nohup/iccv/pyr/iccv_pyr_32_64_10p.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_25p" > nohup/iccv/pyr/iccv_pyr_32_64_25p.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_cape_f" > nohup/iccv/pyr/iccv_pyr_64_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_cape_m" > nohup/iccv/pyr/iccv_pyr_64_cape_m.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_cape_m_00032_SL" > nohup/iccv/pyr/iccv_pyr_64_cape_m_00032_SL.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_cape_f_03223_SL" > nohup/iccv/pyr/iccv_pyr_64_cape_f_03223_SL.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_cape_f_03223_SS" > nohup/iccv/pyr/iccv_pyr_64_cape_f_03223_SS.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_128_cape_f" > nohup/iccv/pyr/iccv_pyr_64_128_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_128_cape_m" > nohup/iccv/pyr/iccv_pyr_64_128_cape_m.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_128_256_cape_f" > nohup/iccv/pyr/iccv_pyr_64_128_256_cape_f.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_pre_cape_f" > nohup/iccv/pyr/iccv_pyr_64_pre_cape_f.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128" > nohup/iccv/pyr/iccv_pyr_32_64_128.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_128_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_skin" > nohup/iccv/pyr/iccv_pyr_32_64_128_skin_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_skin_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_128_skin_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_reg" > nohup/iccv/pyr/iccv_pyr_32_64_128_reg_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_curv" > nohup/iccv/pyr/iccv_pyr_32_64_128_curv.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_curv_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_128_curv_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_var" > nohup/iccv/pyr/iccv_pyr_32_64_128_var.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_128_cape_m_00032_SL" > nohup/iccv/pyr/iccv_pyr_64_128_cape_m_00032_SL.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_128_cape_f_03223_SL" > nohup/iccv/pyr/iccv_pyr_64_128_cape_f_03223_SL.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_64_128_cape_f_03223_SS" > nohup/iccv/pyr/iccv_pyr_64_128_cape_f_03223_SS.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_skirt_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_skin" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_skin.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_curv" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_curv.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_curv_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_curv_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_reg" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_reg.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_seq" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_seq.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_512" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_512.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_512_skirt" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_512_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_512_skin" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_512_skin.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_512_curv" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_512_curv.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_iccv_pyr_32_64_128_256_512_reg" > nohup/iccv/pyr/iccv_pyr_32_64_128_256_512_reg.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32 > nohup/iccv/evaluate/iccv_pyr_32.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_skirt > nohup/iccv/evaluate/iccv_pyr_32_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_skin > nohup/iccv/evaluate/iccv_pyr_32_skin.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_skin_skirt > nohup/iccv/evaluate/iccv_pyr_32_skin_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_reg > nohup/iccv/evaluate/iccv_pyr_32_reg.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_reg_skirt > nohup/iccv/evaluate/iccv_pyr_32_reg_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_curv > nohup/iccv/evaluate/iccv_pyr_32_curv.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_curv_skirt > nohup/iccv/evaluate/iccv_pyr_32_curv_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_10p > nohup/iccv/evaluate/iccv_pyr_32_10p.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_25p > nohup/iccv/evaluate/iccv_pyr_32_25p.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64 > nohup/iccv/evaluate/iccv_pyr_32_64.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_skin > nohup/iccv/evaluate/iccv_pyr_32_64_skin.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_skin_skirt > nohup/iccv/evaluate/iccv_pyr_32_64_skin_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_reg > nohup/iccv/evaluate/iccv_pyr_32_64_reg.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_skirt > nohup/iccv/evaluate/iccv_pyr_32_64_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_curv > nohup/iccv/evaluate/iccv_pyr_32_64_curv.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_curv_skirt > nohup/iccv/evaluate/iccv_pyr_32_64_curv_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_10p > nohup/iccv/evaluate/iccv_pyr_32_64_10p.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_25p > nohup/iccv/evaluate/iccv_pyr_32_64_25p.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128 > nohup/iccv/evaluate/iccv_pyr_32_64_128.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_skirt > nohup/iccv/evaluate/iccv_pyr_32_64_128_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_skin > nohup/iccv/evaluate/iccv_pyr_32_64_128_skin.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_skin_skirt > nohup/iccv/evaluate/iccv_pyr_32_64_128_skin_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_reg > nohup/iccv/evaluate/iccv_pyr_32_64_128_reg.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_curv > nohup/iccv/evaluate/iccv_pyr_32_64_128_curv.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_curv_skirt > nohup/iccv/evaluate/iccv_pyr_32_64_128_curv_skirt.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256 > nohup/iccv/evaluate/iccv_pyr_32_64_128_256.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_seq > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_seq.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_skirt > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_skin > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_skin.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_curv > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_curv.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_reg > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_reg.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_512 > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_512.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_512_skirt > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_512_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_512_reg > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_512_reg.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_512_skin > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_512_skin.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_iccv_pyr_32_64_128_256_512_curv > nohup/iccv/evaluate/iccv_pyr_32_64_128_256_512_curv.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae.py --name="lhunor_cape_f_03223_SL" > nohup/iccv/ablation/abl_all_cape_f_03223_SL.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_cape_f_03223_SS" > nohup/iccv/ablation/abl_all_cape_f_03223_SS.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_cape_m_00032_SL" > nohup/iccv/ablation/abl_all_cape_m_00032_SL.out 2>&1 &
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
skirts!!!!iccv_pyr_32_curv_skirt
|
||||||
|
pyramid next week
|
||||||
|
|
||||||
|
basic final, basic final skirts,
|
||||||
|
basic pyramid
|
||||||
|
|
||||||
|
|
||||||
|
removing curvatures test in ablation
|
||||||
|
|
||||||
|
nohup python cvae_low.py --name="lhunor_cvae_low_4_3_skirt_d32" > nohup/nohup_cvae_low_4_3_skirt_d32.out 2>&1 &
|
||||||
|
nohup python auto_encoder_body.py --name="lhunor_ae_body_post_2" > nohup/post/ae_body_2.out 2>&1 &
|
||||||
|
nohup python auto_encoder_static.py --name="lhunor_ae_static_post_4" > nohup/post/ae_static_4.out 2>&1 &
|
||||||
|
nohup python auto_encoder_curv.py --name="lhunor_ae_curv_post_1" > nohup/post/ae_curv_1.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_pyr_64_128_3" > nohup/post/abl_pyr_64_128_3.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_pyr_32_64" > nohup/post/abl_pyr_32_64.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_cvae_pyr_3_32_2_64_skirt_test_60k" > nohup/cvae_pyr_3_32_2_64_skirt_test_60k.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32" > nohup/ablation/pyr_abl_32.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_2" > nohup/ablation/pyr_abl_32_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_skin" > nohup/ablation/pyr_abl_32_skin.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_skin_offset" > nohup/ablation/pyr_abl_32_skin_offset.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_skirt" > nohup/ablation/pyr_abl_32_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_extra_loss_skirt" > nohup/ablation/pyr_abl_32_extra_loss_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_skirt_2" > nohup/ablation/pyr_abl_32_skirt_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_64" > nohup/ablation/pyr_abl_32_64.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_64_2" > nohup/ablation/pyr_abl_32_64_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_64_skirt" > nohup/ablation/pyr_abl_32_64_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_32_64_skirt_2" > nohup/ablation/pyr_abl_32_64_skirt_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_64_cape_m" > nohup/ablation/pyr_abl_64_cape_m.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_64_cape_f" > nohup/ablation/pyr_abl_64_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_64_cape_f_2" > nohup/ablation/pyr_abl_64_cape_f_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_64_128_cape_f" > nohup/ablation/pyr_abl_64_128_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_64_128_cape_m" > nohup/ablation/pyr_abl_64_128_cape_m.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_64_128_256_cape_f_2" > nohup/ablation/pyr_abl_64_128_256_cape_f_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_64_128_256_512_cape_f" > nohup/ablation/pyr_abl_64_128_256_512_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_pyr_abl_64_128_256_512_cape_f_2" > nohup/ablation/pyr_abl_64_128_256_512_cape_f_2.out 2>&1 &
|
||||||
|
nohup python upscale_test.py --name="lhunor_256_512_skirt" > nohup/up_256_512_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_cvae_v2_7_4_3" > nohup/cvae_v2_7_4_3.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_extra_loss" > nohup/ablation/abl_extra_loss.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_extra_loss_skirt" > nohup/ablation/abl_extra_loss_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_extra_loss_skirt_2" > nohup/ablation/abl_extra_loss_skirt_2.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_curv" > nohup/ablation/abl_curv.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_curv_skirt" > nohup/ablation/abl_curv_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_abs" > nohup/ablation/abl_abs.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_abs_skirt" > nohup/ablation/abl_abs_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin" > nohup/ablation/abl_skin.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_norm" > nohup/ablation/abl_skin_norm.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_skirt" > nohup/ablation/abl_skin_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all" > nohup/ablation/abl_all.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all_skirt" > nohup/ablation/abl_all_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_orient" > nohup/ablation/abl_orient.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_orient_skirt" > nohup/ablation/abl_orient_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_one_hot_skirt" > nohup/ablation/abl_one_hot_skirt.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_norm" > nohup/ablation/abl_norm.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_10p" > nohup/ablation/abl_10p.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_25p" > nohup/ablation/abl_25p.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_10p_skin" > nohup/ablation/abl_10p_skin.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_25p_skin" > nohup/ablation/abl_25p_skin.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_50p_skin" > nohup/ablation/abl_50p_skin.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_var" > nohup/ablation/abl_skin_var.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_var_2" > nohup/ablation/abl_skin_var_2.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_var_3" > nohup/ablation/abl_skin_var_3.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_skin_var_4" > nohup/ablation/abl_skin_var_4.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_curv.py --name="lhunor_cvae_curv" > nohup/ablation/cvae_curv.out 2>&1 &
|
||||||
|
nohup python cvae_curv.py --name="lhunor_cvae_curv_2" > nohup/ablation/cvae_curv_2.out 2>&1 &
|
||||||
|
|
||||||
|
|
||||||
|
abl_2_pyr_32_64_128
|
||||||
|
abl_2_pyr_64_cape_f_03223_SS
|
||||||
|
abl_2_pyr_32_64_128_256_512
|
||||||
|
|
||||||
|
nohup python cvae.py --name="lhunor_cape_f_03223_SL_2" > nohup/ablation/cape_f_03223_SL_2.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_cape_f_03223_SS_2" > nohup/ablation/cape_f_03223_SS_2.out 2>&1 &
|
||||||
|
nohup python cvae.py --name="lhunor_abl_all_post" > nohup/post/abl_all_post.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32" > nohup/ablation_2/abl_2_pyr_32.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_skin" > nohup/ablation_2/abl_2_pyr_32_skin.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_skin_2" > nohup/ablation_2/abl_2_pyr_32_skin_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_skin_norm" > nohup/ablation_2/abl_2_pyr_32_skin_norm.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64" > nohup/ablation_2/abl_2_pyr_32_64.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_2" > nohup/ablation_2/abl_2_pyr_32_64_2.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_128" > nohup/ablation_2/abl_2_pyr_32_64_128.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_128_256" > nohup/ablation_2/abl_2_pyr_32_64_128_256.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_128_256_512" > nohup/ablation_2/abl_2_pyr_32_64_128_256_512.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_128_256_512_norm" > nohup/ablation_2/abl_2_pyr_32_64_128_256_512_norm.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_skirt" > nohup/ablation_2/abl_2_pyr_32_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_skirt_extra_loss" > nohup/ablation_2/abl_2_pyr_32_skirt_extra_loss.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_skirt" > nohup/ablation_2/abl_2_pyr_32_64_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_128_skirt" > nohup/ablation_2/abl_2_pyr_32_64_128_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_128_256_skirt" > nohup/ablation_2/abl_2_pyr_32_64_128_256_skirt.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_32_64_128_256_512_skirt" > nohup/ablation_2/abl_2_pyr_32_64_128_256_512_skirt.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_cape_f" > nohup/ablation_2/abl_2_pyr_64_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_128_cape_f" > nohup/ablation_2/abl_2_pyr_64_128_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_128_256_cape_f" > nohup/ablation_2/abl_2_pyr_64_128_256_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_128_256_512_cape_f" > nohup/ablation_2/abl_2_pyr_64_128_256_512_cape_f.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_cape_m" > nohup/ablation_2/abl_2_pyr_64_cape_m.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_128_cape_m" > nohup/ablation_2/abl_2_pyr_64_128_cape_m.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_128_256_cape_m" > nohup/ablation_2/abl_2_pyr_64_128_256_cape_m.out 2>&1 &
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_128_256_512_cape_m" > nohup/ablation_2/abl_2_pyr_64_128_256_512_cape_m.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python cvae_pyramid.py --name="lhunor_abl_2_pyr_64_128_256_cape_m_00032_SL" > nohup/ablation_2/abl_2_pyr_64_128_256_cape_m_00032_SL.out 2>&1 &
|
||||||
|
|
||||||
|
abl_2_all_skirt
|
||||||
|
abl_2_pyr_64_cape_m_00032_SL
|
||||||
|
|
||||||
|
python convert_to_uv.py -f '/home/workspace/data/dataset/validation' -s 0 -e 150 -n "lhunor"
|
||||||
|
python convert_to_uv.py -f '/home/workspace/data/dataset/skirt_test' -s 0 -e 1 -n "lhunor"
|
||||||
|
|
||||||
|
cp configs/config_abl_all.py configs/config_abl_abs.py
|
||||||
|
|
||||||
|
|
||||||
|
python merge_data.py -fi '/home/workspace/data/dataset/test' -fo '/home/workspace/data/dataset/test_ready' -s 0 -e 1500
|
||||||
|
python merge_data.py -fi '/home/workspace/data/dataset/valid_skirt' -fo '/home/workspace/local-data/valid_skirt' -s 0 -e 1500
|
||||||
|
|
||||||
|
nohup python upscale_test.py > nohup/u.out 2>&1 &
|
||||||
|
nohup python unpose_one_hot.py > nohup/unpose_one_hot_train_skirt.out 2>&1 &
|
||||||
|
nohup python preprocessing.py > nohup/unshape_one_hot_test_skirt.out 2>&1 &
|
||||||
|
nohup python dataset.py > nohup/avg_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_support.py > nohup/evaluate_ae_support.out 2>&1 &
|
||||||
|
nohup python evaluate_cape.py --name evaluate_abl_pyr_64_128_256_512_cape_f > nohup/evaluate_abl_pyr_64_128_256_512_cape_f.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_abl_pyr_32_64_110k > nohup/evaluate_ae_abl_pyr_32_64_110k.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_abl_pyr_32_64_2_50k > nohup/evaluate_ae_abl_pyr_32_64_2_50k.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name evaluate_ae_abl_pyr_32_skirt > nohup/evaluate_ae_abl_pyr_32_skirt.out 2>&1 &
|
||||||
|
nohup python evaluate_ae.py --name abl_norm_skirt_70k > nohup/evaluate/abl_norm_skirt_70k.out 2>&1 &
|
||||||
|
nohup python calculate_error.py --name error_abl_2_pyr_32_64_128_skirt > nohup/error_ae_abl_skin_skirt_70k.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python evaluate_ae_pyramid.py --name abl_2_pyr_32_64_100k > nohup/evaluate/abl_2_pyr_32_64_100k.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name abl_2_pyr_32_64_128_80k > nohup/evaluate/abl_2_pyr_32_64_128_80k.out 2>&1 &
|
||||||
|
nohup python evaluate_ae_pyramid.py --name abl_2_pyr_32_64_128_256_512_skirt_50k > nohup/evaluate/abl_2_pyr_32_64_128_256_512_skirt_50k.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python calculate_error.py --name abl_2_pyr_32_64_128_256_512_50k > nohup/error/abl_2_pyr_32_64_128_256_512_50k.out 2>&1 &
|
||||||
|
|
||||||
|
nohup 7z x CAPE_dataset.zip.001 > nohup/unzip.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python main.py --config configs/CAPE-affineconv_nz18_pose24_clotype8_male.yaml --name CAPE-affineconv_nz18_pose24_clotype8_male --gender male --mode demo > cape_male.out 2>&1 &
|
||||||
|
nohup python3 main.py --config configs/CAPE-affineconv_nz18_pose24_clotype8_female.yaml --name CAPE-affineconv_nz18_pose24_clotype8_female --gender female --mode demo > cape_female.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python curvature_labels.py > nohup/dijkstra_skirt.out 2>&1 &
|
||||||
|
nohup python downscale.py > nohup/downscale_2_test_skirt.out 2>&1 &
|
||||||
|
nohup python downscale_cape.py > nohup/downscale_cape_train_m.out 2>&1 &
|
||||||
|
nohup python merge_data.py -fi /home/workspace/data/dataset/train -fo /home/workspace/local-data/train -s 0 -e 1500 > nohup/merge_data_valid_skirt.out 2>&1 &
|
||||||
|
nohup python merge_data.py -fi /home/workspace/data/dataset/test_skirt -fo /home/workspace/data/dataset/test_skirt_ready -s 0 -e 1500 > nohup/merge_data_test_skirt_ready.out 2>&1 &
|
||||||
|
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/train_skirt -s 0 -e 100 -n lhunor_unpose_skirt_0_100 > nohup/unpose_skirt_0_100.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/train_skirt -s 100 -e 200 -n lhunor_unpose_skirt_100_200 > nohup/unpose_skirt_100_200.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/train_skirt -s 200 -e 300 -n lhunor_unpose_skirt_200_300 > nohup/unpose_skirt_200_300.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/train_skirt -s 300 -e 400 -n lhunor_unpose_skirt_300_400 > nohup/unpose_skirt_300_400.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/train_skirt -s 400 -e 500 -n lhunor_unpose_skirt_400_500 > nohup/unpose_skirt_400_500.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/train_skirt -s 500 -e 600 -n lhunor_unpose_skirt_500_600 > nohup/unpose_skirt_500_600.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/train_skirt -s 600 -e 700 -n lhunor_unpose_skirt_600_700 > nohup/unpose_skirt_600_700.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/train_skirt -s 700 -e 800 -n lhunor_unpose_skirt_700_800 > nohup/unpose_skirt_700_800.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/test_skirt -s 0 -e 100 -n lhunor_unpose_test_skirt_0_100 > nohup/unpose_test_skirt_0_100_2.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/test_skirt -s 100 -e 200 -n lhunor_unpose_test_skirt_100_200 > nohup/unpose_test_skirt_100_200_2.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/cloth3d_skirt -s 0 -e 100 -n lhunor_unpose_extra_skirt_0_100 > nohup/unpose_extra_skirt_0_100.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/cloth3d_skirt -s 100 -e 200 -n lhunor_unpose_extra_skirt_100_200 > nohup/unpose_extra_skirt_100_200.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/cloth3d_skirt -s 200 -e 300 -n lhunor_unpose_extra_skirt_200_300 > nohup/unpose_extra_skirt_200_300_2.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/cloth3d_skirt -s 300 -e 400 -n lhunor_unpose_extra_skirt_300_400 > nohup/unpose_extra_skirt_300_400.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/test -s 0 -e 100 -n lhunor_unpose_test_0_100 > nohup/unpose_test_0_100.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/test -s 100 -e 200 -n lhunor_unpose_test_100_200 > nohup/unpose_test_100_200.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/test -s 200 -e 300 -n lhunor_unpose_test_200_300 > nohup/unpose_test_200_300.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/test -s 300 -e 400 -n lhunor_unpose_test_300_400 > nohup/unpose_test_300_400.out 2>&1 &
|
||||||
|
nohup python unpose_skirt.py -f /home/workspace/data/dataset/test -s 00 -e 00 -n lhunor_unpose_test_00_00 > nohup/unpose_test_00_00.out 2>&1 &
|
||||||
|
|
||||||
|
|
||||||
|
calculate avg garment for skirt
|
||||||
|
need dijkstra/dijsktra skirt
|
||||||
|
bodies have to be converted in non-skirt mode
|
||||||
|
need to pretrain encoders again...
|
||||||
|
not enough sapce to preprocess data
|
||||||
|
|
||||||
|
add one more layer and train, repeat
|
||||||
|
|
||||||
|
curvature binning
|
||||||
|
do it according to trainingn set distribution for validation, or it's own for validation
|
||||||
|
merge curvatures for validation from data-net to local
|
||||||
|
avg garment for big datasets
|
||||||
|
check ranges of curvatur ranges
|
||||||
|
|
||||||
|
collision in pecentage
|
||||||
|
bend loss?
|
||||||
|
evaluation pipeline
|
||||||
|
look tailernot dataset
|
||||||
|
blender for visualization
|
||||||
|
|
||||||
|
|
||||||
|
gpu needed estimation
|
||||||
|
let's say if we want to finish in on eweek
|
||||||
|
|
||||||
|
we use the same skinning weights for skirts. okay?
|
||||||
|
|
||||||
|
|
||||||
|
redo curvatures for skirt train.valid
|
||||||
|
train_skirt: array([1.83511008e-06, 1.84299448e-03, 3.38148023e-03, 5.67459036e-03, 1.02263279e-02, 2.21962575e-02, 3.24614763e-01])
|
||||||
|
array([1.83511008e-06, 1.82755420e-03, 3.35242413e-03, 5.61911613e-03, 1.01151643e-02, 2.20824350e-02, 3.25994939e-01])
|
||||||
|
valid_skirt: array([4.51388405e-06, 1.90253550e-03, 3.44673195e-03, 5.73266158e-03, 1.02412868e-02, 2.22220197e-02, 3.12285781e-01])
|
||||||
|
array([4.51388405e-06, 1.88061886e-03, 3.40514188e-03, 5.64374123e-03, 1.00161384e-02, 2.18187869e-02, 3.17445695e-01])
|
||||||
|
test_skirt: array([7.21150764e-06, 1.77989923e-03, 3.26598203e-03, 5.47702867e-03, 9.79944225e-03, 2.07518619e-02, 3.23069602e-01])
|
||||||
|
|
||||||
|
how to include curvature in evaluation?
|
||||||
|
use gt, predict with vae?
|
||||||
|
|
||||||
|
|
||||||
|
docker run -d --rm -p 61208-61209:61208-61209 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host nicolargo/glances:alpine-dev
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
from configs.config_abl_skin_var_3 import config
|
||||||
|
|
||||||
|
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
||||||
|
import tensorflow as tf
|
||||||
|
|
||||||
|
gpus = tf.config.experimental.list_physical_devices('GPU')
|
||||||
|
if gpus:
|
||||||
|
try:
|
||||||
|
# Currently, memory growth needs to be the same across GPUs
|
||||||
|
for gpu in gpus:
|
||||||
|
tf.config.experimental.set_memory_growth(gpu, True)
|
||||||
|
logical_gpus = tf.config.experimental.list_logical_devices('GPU')
|
||||||
|
print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")
|
||||||
|
except RuntimeError as e:
|
||||||
|
# Memory growth must be set before GPUs have been initialized
|
||||||
|
print(e)
|
||||||
|
|
||||||
|
import glob
|
||||||
|
import time
|
||||||
|
import argparse
|
||||||
|
import wandb
|
||||||
|
import tqdm
|
||||||
|
import random
|
||||||
|
import numpy as np
|
||||||
|
import plotly.graph_objects as go
|
||||||
|
import plotly.express as ex
|
||||||
|
from PIL import Image
|
||||||
|
from postprocessing import fix_collision
|
||||||
|
|
||||||
|
if config['is_skirt']:
|
||||||
|
from losses import edge_loss_skirt as edge_loss
|
||||||
|
else:
|
||||||
|
from losses import edge_loss
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
from losses import collision_ratio, kl_loss #, concept_loss
|
||||||
|
# from losses import collision_penalty as collision_penalty
|
||||||
|
from losses import collision_loss as collision_penalty
|
||||||
|
from custom_utils.custom_utils import batch_to_dict, load_model, plot_3d, UV2Mesh, get_summary_html, maskFacesBatch, _maskFaces, plot_3d_collision, UV2MeshLabel
|
||||||
|
from dataset import DatasetFactory, StaticDataset
|
||||||
|
from custom_utils.smpl import SMPL
|
||||||
|
from models.cvae_model import CVAE
|
||||||
|
from custom_utils.supersmpl_io import writeOBJ
|
||||||
|
|
||||||
|
|
||||||
|
uv2mesh = UV2MeshLabel(res=256)
|
||||||
|
|
||||||
|
|
||||||
|
@tf.function
|
||||||
|
def step(batch):
|
||||||
|
pred, mean, logvar = model([batch['uv_static'], batch['uv_body_posed'], batch['uv_curvature'], batch['uv_mask']])
|
||||||
|
|
||||||
|
mesh_pred = tf.math.argmax(uv2mesh(pred), axis=-1)
|
||||||
|
|
||||||
|
return mesh_pred
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
# init_wandb()
|
||||||
|
parser = argparse.ArgumentParser(description='')
|
||||||
|
parser.add_argument('--name', type=str)
|
||||||
|
args = vars(parser.parse_args())
|
||||||
|
|
||||||
|
smpl = SMPL(use_one_hot=config['use_one_hot'])
|
||||||
|
skirt_modifier = '_skirt' if config['is_skirt'] else ''
|
||||||
|
|
||||||
|
folder = config['test_dir']
|
||||||
|
smpl = SMPL(use_one_hot=False)
|
||||||
|
model = CVAE(config)
|
||||||
|
|
||||||
|
# str_split = config['name'].split('_')
|
||||||
|
# test_idx = str_split.index('test')
|
||||||
|
# checkpoint_name = '_'.join(str_split[:test_idx])
|
||||||
|
checkpoint_name = config['name']
|
||||||
|
|
||||||
|
F = np.load("custom_utils/smpl_faces" + skirt_modifier + ".npy").astype(np.int32)
|
||||||
|
|
||||||
|
ids = os.listdir(os.path.join(folder, 'pose_shape'))
|
||||||
|
ids = [id.split('_')[0] for id in ids]
|
||||||
|
ids = set(ids)
|
||||||
|
|
||||||
|
iteration = '70000'
|
||||||
|
|
||||||
|
load_model(model, 'checkpoints/' + config['name'], iteration=iteration)
|
||||||
|
|
||||||
|
|
||||||
|
factory = DatasetFactory()
|
||||||
|
dataset_test = factory.get_dataset(folder=config['test_dir'],
|
||||||
|
batch_size=1,
|
||||||
|
signature=config['signature_dynamic'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=False,
|
||||||
|
do_repeat=False,
|
||||||
|
use_one_hot=config['use_one_hot'],
|
||||||
|
use_no_orient=config['remove_global_orientation'],
|
||||||
|
frames_file='/home/workspace/data/dataset/test_ready/frames_pose_cluster_20_sample_10.txt')
|
||||||
|
static_dataset_test = StaticDataset(folder=config['test_dir'],
|
||||||
|
signature=config['signature_static'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=True)
|
||||||
|
|
||||||
|
# faces_folder = '/home/workspace/data/results/support/faces' + ('_skirt' if config['is_skirt'] else '')
|
||||||
|
# ids = os.listdir(faces_folder)
|
||||||
|
# ids = [id.split('.')[0] for id in ids]
|
||||||
|
# faces = {id : np.load(faces_folder + '/' + id + '.npy') for id in ids }
|
||||||
|
|
||||||
|
for batch in tqdm.tqdm(dataset_test):
|
||||||
|
batch = static_dataset_test.expand_batch(batch_to_dict(batch, config['signature_dynamic']))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
+3
-3
@@ -124,7 +124,7 @@ class Bottleneck(tf.keras.Model):
|
|||||||
layer_scale_init_value=1e-6, prefix=f'bottleneck{j}') for j in range(5)]
|
layer_scale_init_value=1e-6, prefix=f'bottleneck{j}') for j in range(5)]
|
||||||
)
|
)
|
||||||
|
|
||||||
def call(self, inputs, training=None):
|
def call(self, inputs, training):
|
||||||
x = inputs
|
x = inputs
|
||||||
|
|
||||||
x = self.bottleneck(x, training=training)
|
x = self.bottleneck(x, training=training)
|
||||||
@@ -145,7 +145,7 @@ class AutoEncoder(tf.keras.Model):
|
|||||||
self.decoder = ConvNeXtReverse(depths=list(reversed([3, 3, 9, 3])), dims=list(reversed([bottleneck_size, 128, 64, 16])))
|
self.decoder = ConvNeXtReverse(depths=list(reversed([3, 3, 9, 3])), dims=list(reversed([bottleneck_size, 128, 64, 16])))
|
||||||
|
|
||||||
|
|
||||||
def call(self, inputs, training=None):
|
def call(self, inputs, training):
|
||||||
x, uv_mask = inputs
|
x, uv_mask = inputs
|
||||||
|
|
||||||
x = tf.transpose(x, [0,2,3,1])
|
x = tf.transpose(x, [0,2,3,1])
|
||||||
@@ -328,7 +328,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
|
|
||||||
factory = DatasetFactory()
|
factory = DatasetFactory()
|
||||||
signature_dynamic = { 'id': (),
|
signature_dynamic = { 'id': (), 'frame_nr': (),
|
||||||
'pose_shape': (72 + 11,),
|
'pose_shape': (72 + 11,),
|
||||||
# 'uv_posed': (3, 512, 256,),
|
# 'uv_posed': (3, 512, 256,),
|
||||||
'uv_body_posed': (3, 512, 256,),
|
'uv_body_posed': (3, 512, 256,),
|
||||||
|
|||||||
+59
-23
@@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
from configs.config_ae_body import config
|
import sys
|
||||||
|
from configs.iccv.config_ae_body_25p import config
|
||||||
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
||||||
|
|
||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
@@ -29,20 +30,24 @@ from tf_utils import check_tf_version, allow_memory_growth
|
|||||||
from losses import edge_loss, uv_mask_loss
|
from losses import edge_loss, uv_mask_loss
|
||||||
from dataset import DatasetFactory, StaticDataset
|
from dataset import DatasetFactory, StaticDataset
|
||||||
from custom_utils.custom_utils import batch_to_dict, plot_3d
|
from custom_utils.custom_utils import batch_to_dict, plot_3d
|
||||||
from models.cond_encoder import AutoEncoder
|
from models.cond_encoder import AutoEncoderNew as AutoEncoder
|
||||||
|
from custom_utils.custom_utils import Accumulator
|
||||||
|
|
||||||
|
|
||||||
def init_wandb():
|
def init_wandb():
|
||||||
run = wandb.init(project='ae', name=config['name'], notes=config['notes'], dir='/home/workspace/local-data/temp')
|
run = wandb.init(project='ae', name=config['name'], notes=config['notes'], dir='/tmp', tags=config['tags'])
|
||||||
artifact = wandb.Artifact('code', type='code')
|
artifact = wandb.Artifact('code', type='code')
|
||||||
artifact.add_file('auto_encoder_body.py')
|
artifact.add_file('auto_encoder_body.py')
|
||||||
artifact.add_file('losses.py')
|
artifact.add_file('losses.py')
|
||||||
artifact.add_file('configs/config_base.py')
|
|
||||||
artifact.add_file('configs/config_ae_body.py')
|
|
||||||
artifact.add_file('models/base.py')
|
artifact.add_file('models/base.py')
|
||||||
artifact.add_file('models/cond_encoder.py')
|
artifact.add_file('models/cond_encoder.py')
|
||||||
artifact.add_file('dataset.py')
|
artifact.add_file('dataset.py')
|
||||||
artifact.add_file('convnext/models/convnext_tf.py')
|
artifact.add_file('convnext/models/convnext_tf.py')
|
||||||
|
config_file_names = [key for key in sys.modules.keys() if key.startswith('configs.')]
|
||||||
|
for config_file_name in config_file_names:
|
||||||
|
file_name = '/'.join(config_file_name.split('.')) + '.py'
|
||||||
|
if os.path.exists(file_name):
|
||||||
|
artifact.add_file(file_name)
|
||||||
run.log_artifact(artifact)
|
run.log_artifact(artifact)
|
||||||
|
|
||||||
uv2mesh = UV2Mesh(res=256, is_smpl_orig=config['is_cape'], is_skirt=config['is_skirt'])
|
uv2mesh = UV2Mesh(res=256, is_smpl_orig=config['is_cape'], is_skirt=config['is_skirt'])
|
||||||
@@ -122,20 +127,27 @@ def train():
|
|||||||
for batch in dataset_train:
|
for batch in dataset_train:
|
||||||
batch = static_dataset_train.expand_batch(batch_to_dict(batch, config['signature_dynamic']))
|
batch = static_dataset_train.expand_batch(batch_to_dict(batch, config['signature_dynamic']))
|
||||||
train_loss = train_step(batch)
|
train_loss = train_step(batch)
|
||||||
|
train_accumulator.update(train_loss)
|
||||||
|
|
||||||
data_valid = valid_iterator.get_next()
|
if step % 25 == 0:
|
||||||
data_valid = static_dataset_valid.expand_batch(batch_to_dict(data_valid, config['signature_dynamic']))
|
data_valid = valid_iterator.get_next()
|
||||||
valid_loss = valid_step(data_valid)
|
data_valid = static_dataset_valid.expand_batch(batch_to_dict(data_valid, config['signature_dynamic']))
|
||||||
|
valid_loss = valid_step(data_valid)
|
||||||
|
valid_accumulator.update(valid_loss)
|
||||||
|
|
||||||
to_log = { **train_loss, **valid_loss, **{ 'current_step': step} }
|
if step % 1000 == 0 or (step < 1000 and step % 100 == 0):
|
||||||
if step % 5000 == 0 or (step < 5000 and step % 500 == 0):
|
to_log = dict({ **train_loss, **valid_loss, **{ 'current_step': step } })
|
||||||
train_figs = plot_everything(batch, 'train')
|
if step % 5000 == 0 or (step < 5000 and step % 1000 == 0):
|
||||||
valid_figs = plot_everything(data_valid, 'valid')
|
train_figs = plot_everything(batch, 'train')
|
||||||
to_log = { **to_log, **train_figs, **valid_figs }
|
valid_figs = plot_everything(data_valid, 'valid')
|
||||||
if step == 0:
|
to_log = { **to_log, **train_figs, **valid_figs }
|
||||||
to_log = { **to_log, **{ 'model/summary': wandb.Html(get_summary_html(model)) } }
|
if step == 0:
|
||||||
|
to_log = { **to_log, **{ 'model/summary': wandb.Html(get_summary_html(model)) } }
|
||||||
|
|
||||||
wandb.log(to_log, step=step)
|
|
||||||
|
wandb.log(to_log, step=step)
|
||||||
|
train_accumulator.reset()
|
||||||
|
valid_accumulator.reset()
|
||||||
|
|
||||||
if step % 10000 == 0:
|
if step % 10000 == 0:
|
||||||
manager_enc.save(checkpoint_number=step)
|
manager_enc.save(checkpoint_number=step)
|
||||||
@@ -148,7 +160,6 @@ def train():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
init_wandb()
|
init_wandb()
|
||||||
allow_memory_growth()
|
|
||||||
parser = argparse.ArgumentParser(description='')
|
parser = argparse.ArgumentParser(description='')
|
||||||
parser.add_argument('--name', type=str)
|
parser.add_argument('--name', type=str)
|
||||||
args = vars(parser.parse_args())
|
args = vars(parser.parse_args())
|
||||||
@@ -164,20 +175,45 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
factory = DatasetFactory()
|
factory = DatasetFactory()
|
||||||
|
|
||||||
dataset_train = factory.get_dataset(folder=config['train_dir'], batch_size=config['batch_size'], signature=config['signature_dynamic'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=config['dataset_in_memory'], is_cape=config['is_cape'])
|
dataset_train = factory.get_dataset(folder=config['train_dir'],
|
||||||
static_dataset_train = StaticDataset(folder=config['train_dir'], signature=config['signature_static'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=True, is_cape=config['is_cape'])
|
batch_size=config['batch_size'],
|
||||||
dataset_valid = factory.get_dataset(folder=config['valid_dir'], batch_size=config['batch_size'], signature=config['signature_dynamic'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=config['dataset_in_memory'], is_cape=config['is_cape'])
|
signature=config['signature_dynamic'],
|
||||||
static_dataset_valid = StaticDataset(folder=config['valid_dir'], signature=config['signature_static'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=True, is_cape=config['is_cape'])
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=config['dataset_in_memory'],
|
||||||
|
use_no_orient=config['remove_global_orientation'],
|
||||||
|
frames_file=config['frames_file'] if 'frames_file' in config.keys() else None,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
static_dataset_train = StaticDataset(folder=config['train_dir'],
|
||||||
|
signature=config['signature_static'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=True,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
|
||||||
|
dataset_valid = factory.get_dataset(folder=config['valid_dir'],
|
||||||
|
batch_size=config['batch_size'],
|
||||||
|
signature=config['signature_dynamic'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=config['dataset_in_memory'],
|
||||||
|
use_no_orient=config['remove_global_orientation'],
|
||||||
|
frames_file=config['frames_file_valid'] if 'frames_file_valid' in config.keys() else None,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
static_dataset_valid = StaticDataset(folder=config['valid_dir'],
|
||||||
|
signature=config['signature_static'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=True,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
|
||||||
model = AutoEncoder(config['cond_ae'])
|
model = AutoEncoder(config['cond_ae'])
|
||||||
optimizer = tf.optimizers.Adam(learning_rate=config['lr'])
|
optimizer = tf.optimizers.Adam(learning_rate=config['lr'])
|
||||||
|
train_accumulator = Accumulator()
|
||||||
|
valid_accumulator = Accumulator()
|
||||||
|
|
||||||
# load_model(model.encoder, 'checkpoints/body_1_skirt_2_enc')
|
# load_model(model.encoder, 'checkpoints/body_1_skirt_2_enc')
|
||||||
# load_model(model.decoder, 'checkpoints/body_1_skirt_2_dec')
|
# load_model(model.decoder, 'checkpoints/body_1_skirt_2_dec')
|
||||||
|
|
||||||
ckpt_enc = tf.train.Checkpoint(model=model.encoder)
|
ckpt_enc = tf.train.Checkpoint(model=model.encoder)
|
||||||
manager_enc = tf.train.CheckpointManager(ckpt_enc, 'checkpoints/' + config['name'] + '_enc', max_to_keep=20)
|
manager_enc = tf.train.CheckpointManager(ckpt_enc, 'checkpoints/iccv/' + config['name'] + '_enc', max_to_keep=20)
|
||||||
ckpt_dec = tf.train.Checkpoint(model=model.decoder)
|
ckpt_dec = tf.train.Checkpoint(model=model.decoder)
|
||||||
manager_dec = tf.train.CheckpointManager(ckpt_dec, 'checkpoints/' + config['name'] + '_dec', max_to_keep=20)
|
manager_dec = tf.train.CheckpointManager(ckpt_dec, 'checkpoints/iccv/' + config['name'] + '_dec', max_to_keep=20)
|
||||||
|
|
||||||
train()
|
train()
|
||||||
+83
-32
@@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
from configs.config_ae_curv import config
|
import sys
|
||||||
|
from configs.iccv.config_ae_curv_25p import config
|
||||||
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
||||||
|
|
||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
@@ -20,6 +21,7 @@ import argparse
|
|||||||
import wandb
|
import wandb
|
||||||
import random
|
import random
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
import cmapy as cm
|
||||||
|
|
||||||
|
|
||||||
from custom_utils.custom_utils import UV2Mesh, UV2MeshLabel, get_summary_html, maskFacesBatch
|
from custom_utils.custom_utils import UV2Mesh, UV2MeshLabel, get_summary_html, maskFacesBatch
|
||||||
@@ -29,22 +31,26 @@ import plotly.express as ex
|
|||||||
from tf_utils import check_tf_version, allow_memory_growth
|
from tf_utils import check_tf_version, allow_memory_growth
|
||||||
from dataset import DatasetFactory, StaticDataset
|
from dataset import DatasetFactory, StaticDataset
|
||||||
from custom_utils.custom_utils import batch_to_dict
|
from custom_utils.custom_utils import batch_to_dict
|
||||||
from models.cond_encoder import AutoEncoder
|
from models.cond_encoder import AutoEncoderNew as AutoEncoder
|
||||||
|
from custom_utils.custom_utils import Accumulator
|
||||||
|
|
||||||
|
|
||||||
testing = False
|
testing = False
|
||||||
def init_wandb():
|
def init_wandb():
|
||||||
if not testing:
|
if not testing:
|
||||||
run = wandb.init(project='ae', name=config['name'], notes=config['notes'], dir='/home/workspace/local-data/temp/')
|
run = wandb.init(project='ae', name=config['name'], notes=config['notes'], dir='/tmp', tags=config['tags'])
|
||||||
artifact = wandb.Artifact('code', type='code')
|
artifact = wandb.Artifact('code', type='code')
|
||||||
artifact.add_file('auto_encoder_curv.py')
|
artifact.add_file('auto_encoder_curv.py')
|
||||||
artifact.add_file('losses.py')
|
artifact.add_file('losses.py')
|
||||||
artifact.add_file('configs/config_base.py')
|
|
||||||
artifact.add_file('configs/config_ae_curv.py')
|
|
||||||
artifact.add_file('models/base.py')
|
artifact.add_file('models/base.py')
|
||||||
artifact.add_file('models/cond_encoder.py')
|
artifact.add_file('models/cond_encoder.py')
|
||||||
artifact.add_file('dataset.py')
|
artifact.add_file('dataset.py')
|
||||||
artifact.add_file('convnext/models/convnext_tf.py')
|
artifact.add_file('convnext/models/convnext_tf.py')
|
||||||
|
config_file_names = [key for key in sys.modules.keys() if key.startswith('configs.')]
|
||||||
|
for config_file_name in config_file_names:
|
||||||
|
file_name = '/'.join(config_file_name.split('.')) + '.py'
|
||||||
|
if os.path.exists(file_name):
|
||||||
|
artifact.add_file(file_name)
|
||||||
run.log_artifact(artifact)
|
run.log_artifact(artifact)
|
||||||
|
|
||||||
uv2mesh = UV2MeshLabel(res=256, is_skirt=config['is_skirt'], is_smpl_orig=config['is_cape'])
|
uv2mesh = UV2MeshLabel(res=256, is_skirt=config['is_skirt'], is_smpl_orig=config['is_cape'])
|
||||||
@@ -99,16 +105,20 @@ def train_step(batch):
|
|||||||
|
|
||||||
ce_uv_loss = scce(tf.math.argmax(batch['uv_curvature'], axis=-1), pred)
|
ce_uv_loss = scce(tf.math.argmax(batch['uv_curvature'], axis=-1), pred)
|
||||||
ms_ssim = tf.reduce_mean(tf.image.ssim(pred, batch['uv_curvature'], max_val=1))
|
ms_ssim = tf.reduce_mean(tf.image.ssim(pred, batch['uv_curvature'], max_val=1))
|
||||||
loss = ce_uv_loss
|
|
||||||
|
|
||||||
pred_mesh = tf.math.argmax(uv2mesh(pred), axis=-1)
|
mesh_pred = uv2mesh(pred) * batch['mesh_mask'][:,:,tf.newaxis]
|
||||||
|
mesh_orig = tf.cast(uv2mesh(tf.math.argmax(batch['uv_curvature'], axis=-1, output_type=tf.int32)), tf.float32) * batch['mesh_mask']
|
||||||
|
ce_mesh_loss = scce(mesh_orig, mesh_pred)
|
||||||
|
|
||||||
|
loss = ce_uv_loss + ce_mesh_loss
|
||||||
|
|
||||||
mean_iou = get_mean_iou(tf.math.argmax(batch['uv_curvature'], axis=-1), tf.math.argmax(pred, axis=-1))
|
mean_iou = get_mean_iou(tf.math.argmax(batch['uv_curvature'], axis=-1), tf.math.argmax(pred, axis=-1))
|
||||||
mean_iou_mesh = get_mean_iou(tf.cast(batch['mesh_curvature'], tf.float32) * batch['mesh_mask'], tf.cast(pred_mesh, tf.float32) * batch['mesh_mask'])
|
|
||||||
dice = dice_dense(pred, batch['uv_curvature'])
|
dice = dice_dense(pred, batch['uv_curvature'])
|
||||||
|
|
||||||
gradients = tape.gradient(loss, model.trainable_variables)
|
gradients = tape.gradient(loss, model.trainable_variables)
|
||||||
optimizer.apply_gradients(zip(gradients, model.trainable_variables))
|
optimizer.apply_gradients(zip(gradients, model.trainable_variables))
|
||||||
return { 'train/loss': loss, 'train/ce_uv_loss': ce_uv_loss, 'train/ssim': ms_ssim, 'train/mean_iou': mean_iou, 'train/mean_iou_mesh': mean_iou_mesh, 'train/dice': dice }
|
return { 'train/loss': loss, 'train/ce_uv_loss': ce_uv_loss, 'train/ssim': ms_ssim, 'train/mean_iou': mean_iou,
|
||||||
|
'train/dice': dice, 'train/ce_mesh_loss': ce_mesh_loss }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -118,14 +128,17 @@ def valid_step(batch):
|
|||||||
|
|
||||||
ce_uv_loss = scce(tf.math.argmax(batch['uv_curvature'], axis=-1), pred)
|
ce_uv_loss = scce(tf.math.argmax(batch['uv_curvature'], axis=-1), pred)
|
||||||
ms_ssim = tf.reduce_mean(tf.image.ssim(pred, batch['uv_curvature'], max_val=1))
|
ms_ssim = tf.reduce_mean(tf.image.ssim(pred, batch['uv_curvature'], max_val=1))
|
||||||
loss = ce_uv_loss
|
|
||||||
|
|
||||||
pred_mesh = tf.math.argmax(uv2mesh(pred), axis=-1)
|
mesh_pred = uv2mesh(pred) * batch['mesh_mask'][:,:,tf.newaxis]
|
||||||
|
mesh_orig = tf.cast(uv2mesh(tf.math.argmax(batch['uv_curvature'], axis=-1, output_type=tf.int32)), tf.float32) * batch['mesh_mask']
|
||||||
|
ce_mesh_loss = scce(mesh_orig, mesh_pred)
|
||||||
|
loss = ce_uv_loss + ce_mesh_loss
|
||||||
|
|
||||||
mean_iou = get_mean_iou(tf.math.argmax(batch['uv_curvature'], axis=-1), tf.math.argmax(pred, axis=-1))
|
mean_iou = get_mean_iou(tf.math.argmax(batch['uv_curvature'], axis=-1), tf.math.argmax(pred, axis=-1))
|
||||||
mean_iou_mesh = get_mean_iou(tf.cast(batch['mesh_curvature'], tf.float32) * batch['mesh_mask'], tf.cast(pred_mesh, tf.float32) * batch['mesh_mask'])
|
|
||||||
dice = dice_dense(pred, batch['uv_curvature'])
|
dice = dice_dense(pred, batch['uv_curvature'])
|
||||||
|
|
||||||
return { 'valid/loss': loss, 'valid/ce_uv_loss': ce_uv_loss, 'valid/ssim': ms_ssim, 'valid/mean_iou': mean_iou, 'valid/mean_iou_mesh': mean_iou_mesh, 'valid/dice': dice }
|
return { 'valid/loss': loss, 'valid/ce_uv_loss': ce_uv_loss, 'valid/ssim': ms_ssim, 'valid/mean_iou': mean_iou,
|
||||||
|
'valid/dice': dice, 'valid/ce_mesh_loss': ce_mesh_loss }
|
||||||
|
|
||||||
|
|
||||||
def plot_everything(batch: dict, type: str):
|
def plot_everything(batch: dict, type: str):
|
||||||
@@ -134,7 +147,14 @@ def plot_everything(batch: dict, type: str):
|
|||||||
orig_img = tf.math.argmax(batch['uv_curvature'], axis=-1, output_type=tf.dtypes.int32)
|
orig_img = tf.math.argmax(batch['uv_curvature'], axis=-1, output_type=tf.dtypes.int32)
|
||||||
pred_img = tf.math.argmax(pred, axis=-1, output_type=tf.dtypes.int32)
|
pred_img = tf.math.argmax(pred, axis=-1, output_type=tf.dtypes.int32)
|
||||||
img = tf.concat((orig_img, pred_img), axis=2).numpy()
|
img = tf.concat((orig_img, pred_img), axis=2).numpy()
|
||||||
imgs = { type + '/images': [wandb.Image(img[i,:,:,np.newaxis] / 6.0) for i in range(img.shape[0])] }
|
|
||||||
|
colors = np.array([cm.color('jet', 1 - i) for i in np.linspace(0, 1, 6+1)])
|
||||||
|
color_img = np.zeros((img.shape[0], img.shape[1], img.shape[2], 3), np.uint8)
|
||||||
|
for i in range(7):
|
||||||
|
color_img[img == i, :] = colors[i]
|
||||||
|
color_img = [wandb.Image(color_img[i]) for i in range(4)]
|
||||||
|
|
||||||
|
imgs = { type + '/images': [wandb.Image(img[i,:,:,np.newaxis] / 6.0) for i in range(img.shape[0])], type + '/color_images': color_img }
|
||||||
|
|
||||||
return imgs
|
return imgs
|
||||||
|
|
||||||
@@ -147,21 +167,27 @@ def train():
|
|||||||
batch = static_dataset_train.expand_batch(batch_to_dict(batch, config['signature_dynamic']))
|
batch = static_dataset_train.expand_batch(batch_to_dict(batch, config['signature_dynamic']))
|
||||||
|
|
||||||
train_loss = train_step(batch)
|
train_loss = train_step(batch)
|
||||||
|
train_accumulator.update(train_loss)
|
||||||
|
|
||||||
data_valid = valid_iterator.get_next()
|
if step % 25 == 0:
|
||||||
data_valid = static_dataset_valid.expand_batch(batch_to_dict(data_valid, config['signature_dynamic']))
|
data_valid = valid_iterator.get_next()
|
||||||
valid_loss = valid_step(data_valid)
|
data_valid = static_dataset_valid.expand_batch(batch_to_dict(data_valid, config['signature_dynamic']))
|
||||||
|
valid_loss = valid_step(data_valid)
|
||||||
|
valid_accumulator.update(valid_loss)
|
||||||
|
|
||||||
to_log = { **train_loss, **valid_loss }
|
if step % 1000 == 0 or (step < 1000 and step % 100 == 0):
|
||||||
if step % 5000 == 0 or (step < 5000 and step % 500 == 0):
|
to_log = dict({ **train_loss, **valid_loss, **{ 'current_step': step } })
|
||||||
train_figs = plot_everything(batch, 'train')
|
if step % 5000 == 0 or (step < 5000 and step % 1000 == 0):
|
||||||
valid_figs = plot_everything(data_valid, 'valid')
|
train_figs = plot_everything(batch, 'train')
|
||||||
to_log = { **to_log, **train_figs, **valid_figs }
|
valid_figs = plot_everything(data_valid, 'valid')
|
||||||
if step == 0:
|
to_log = { **to_log, **train_figs, **valid_figs }
|
||||||
to_log = { **to_log, **{ 'model/summary': wandb.Html(get_summary_html(model)) } }
|
if step == 0:
|
||||||
|
to_log = { **to_log, **{ 'model/summary': wandb.Html(get_summary_html(model)) } }
|
||||||
|
|
||||||
wandb.log(to_log, step=step)
|
|
||||||
print(step)
|
wandb.log(to_log, step=step)
|
||||||
|
train_accumulator.reset()
|
||||||
|
valid_accumulator.reset()
|
||||||
|
|
||||||
if step % 10000 == 0:
|
if step % 10000 == 0:
|
||||||
manager_enc.save(checkpoint_number=step)
|
manager_enc.save(checkpoint_number=step)
|
||||||
@@ -202,18 +228,43 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
factory = DatasetFactory()
|
factory = DatasetFactory()
|
||||||
|
|
||||||
dataset_train = factory.get_dataset(folder=config['train_dir'], batch_size=config['batch_size'], signature=config['signature_dynamic'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=config['dataset_in_memory'], is_cape=config['is_cape'])
|
dataset_train = factory.get_dataset(folder=config['train_dir'],
|
||||||
static_dataset_train = StaticDataset(folder=config['train_dir'], signature=config['signature_static'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=True, is_cape=config['is_cape'])
|
batch_size=config['batch_size'],
|
||||||
dataset_valid = factory.get_dataset(folder=config['valid_dir'], batch_size=config['batch_size'], signature=config['signature_dynamic'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=config['dataset_in_memory'], is_cape=config['is_cape'])
|
signature=config['signature_dynamic'],
|
||||||
static_dataset_valid = StaticDataset(folder=config['valid_dir'], signature=config['signature_static'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=True, is_cape=config['is_cape'])
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=config['dataset_in_memory'],
|
||||||
|
use_no_orient=config['remove_global_orientation'],
|
||||||
|
frames_file=config['frames_file'] if 'frames_file' in config.keys() else None,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
static_dataset_train = StaticDataset(folder=config['train_dir'],
|
||||||
|
signature=config['signature_static'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=True,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
|
||||||
|
dataset_valid = factory.get_dataset(folder=config['valid_dir'],
|
||||||
|
batch_size=config['batch_size'],
|
||||||
|
signature=config['signature_dynamic'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=config['dataset_in_memory'],
|
||||||
|
use_no_orient=config['remove_global_orientation'],
|
||||||
|
frames_file=config['frames_file_valid'] if 'frames_file_valid' in config.keys() else None,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
static_dataset_valid = StaticDataset(folder=config['valid_dir'],
|
||||||
|
signature=config['signature_static'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=True,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
|
||||||
model = AutoEncoder(config['cond_ae'])
|
model = AutoEncoder(config['cond_ae'])
|
||||||
optimizer = tf.optimizers.Adam(learning_rate=config['lr'])
|
optimizer = tf.optimizers.Adam(learning_rate=config['lr'])
|
||||||
|
train_accumulator = Accumulator()
|
||||||
|
valid_accumulator = Accumulator()
|
||||||
|
|
||||||
ckpt_enc = tf.train.Checkpoint(model=model.encoder)
|
ckpt_enc = tf.train.Checkpoint(model=model.encoder)
|
||||||
manager_enc = tf.train.CheckpointManager(ckpt_enc, 'checkpoints/' + config['name'] + '_enc', max_to_keep=20)
|
manager_enc = tf.train.CheckpointManager(ckpt_enc, 'checkpoints/iccv/' + config['name'] + '_enc', max_to_keep=20)
|
||||||
ckpt_dec = tf.train.Checkpoint(model=model.decoder)
|
ckpt_dec = tf.train.Checkpoint(model=model.decoder)
|
||||||
manager_dec = tf.train.CheckpointManager(ckpt_dec, 'checkpoints/' + config['name'] + '_dec', max_to_keep=20)
|
manager_dec = tf.train.CheckpointManager(ckpt_dec, 'checkpoints/iccv/' + config['name'] + '_dec', max_to_keep=20)
|
||||||
|
|
||||||
if testing:
|
if testing:
|
||||||
test()
|
test()
|
||||||
|
|||||||
+62
-25
@@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
from configs.config_ae_static import config
|
import sys
|
||||||
|
from configs.iccv.config_ae_static_25p import config
|
||||||
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
||||||
|
|
||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
@@ -32,20 +33,24 @@ else:
|
|||||||
from tf_utils import check_tf_version, allow_memory_growth
|
from tf_utils import check_tf_version, allow_memory_growth
|
||||||
from dataset import DatasetFactory, StaticDataset
|
from dataset import DatasetFactory, StaticDataset
|
||||||
from custom_utils.custom_utils import batch_to_dict, plot_3d
|
from custom_utils.custom_utils import batch_to_dict, plot_3d
|
||||||
from models.cond_encoder import AutoEncoder
|
from models.cond_encoder import AutoEncoderNew as AutoEncoder
|
||||||
|
from custom_utils.custom_utils import Accumulator
|
||||||
|
|
||||||
|
|
||||||
def init_wandb():
|
def init_wandb():
|
||||||
run = wandb.init(project='ae', name=config['name'], notes=config['notes'], dir='/home/workspace/local-data/temp')
|
run = wandb.init(project='ae', name=config['name'], notes=config['notes'], dir='/tmp', tags=config['tags'])
|
||||||
artifact = wandb.Artifact('code', type='code')
|
artifact = wandb.Artifact('code', type='code')
|
||||||
artifact.add_file('auto_encoder_static.py')
|
artifact.add_file('auto_encoder_static.py')
|
||||||
artifact.add_file('losses.py')
|
artifact.add_file('losses.py')
|
||||||
artifact.add_file('configs/config_base.py')
|
|
||||||
artifact.add_file('configs/config_ae_static.py')
|
|
||||||
artifact.add_file('models/base.py')
|
artifact.add_file('models/base.py')
|
||||||
artifact.add_file('models/cond_encoder.py')
|
artifact.add_file('models/cond_encoder.py')
|
||||||
artifact.add_file('dataset.py')
|
artifact.add_file('dataset.py')
|
||||||
artifact.add_file('convnext/models/convnext_tf.py')
|
artifact.add_file('convnext/models/convnext_tf.py')
|
||||||
|
config_file_names = [key for key in sys.modules.keys() if key.startswith('configs.')]
|
||||||
|
for config_file_name in config_file_names:
|
||||||
|
file_name = '/'.join(config_file_name.split('.')) + '.py'
|
||||||
|
if os.path.exists(file_name):
|
||||||
|
artifact.add_file(file_name)
|
||||||
run.log_artifact(artifact)
|
run.log_artifact(artifact)
|
||||||
|
|
||||||
uv2mesh = UV2Mesh(res=256, is_skirt=config['is_skirt'], is_smpl_orig=config['is_cape'])
|
uv2mesh = UV2Mesh(res=256, is_skirt=config['is_skirt'], is_smpl_orig=config['is_cape'])
|
||||||
@@ -123,27 +128,33 @@ def train():
|
|||||||
for batch in dataset_train:
|
for batch in dataset_train:
|
||||||
batch = static_dataset_train.expand_batch(batch_to_dict(batch, config['signature_dynamic']))
|
batch = static_dataset_train.expand_batch(batch_to_dict(batch, config['signature_dynamic']))
|
||||||
train_loss = train_step(batch)
|
train_loss = train_step(batch)
|
||||||
|
train_accumulator.update(train_loss)
|
||||||
|
|
||||||
data_valid = valid_iterator.get_next()
|
if step % 25 == 0:
|
||||||
data_valid = static_dataset_valid.expand_batch(batch_to_dict(data_valid, config['signature_dynamic']))
|
data_valid = valid_iterator.get_next()
|
||||||
valid_loss = valid_step(data_valid)
|
data_valid = static_dataset_valid.expand_batch(batch_to_dict(data_valid, config['signature_dynamic']))
|
||||||
|
valid_loss = valid_step(data_valid)
|
||||||
|
valid_accumulator.update(valid_loss)
|
||||||
|
|
||||||
to_log = dict({ **train_loss, **valid_loss, **{ 'current_step': step } })
|
if step % 1000 == 0 or (step < 1000 and step % 100 == 0):
|
||||||
if step % 5000 == 0 or (step < 5000 and step % 500 == 0):
|
to_log = dict({ **train_loss, **valid_loss, **{ 'current_step': step } })
|
||||||
train_figs = plot_everything(batch, 'train')
|
if step % 5000 == 0 or (step < 5000 and step % 1000 == 0):
|
||||||
valid_figs = plot_everything(data_valid, 'valid')
|
train_figs = plot_everything(batch, 'train')
|
||||||
to_log = { **to_log, **train_figs, **valid_figs }
|
valid_figs = plot_everything(data_valid, 'valid')
|
||||||
if step == 0:
|
to_log = { **to_log, **train_figs, **valid_figs }
|
||||||
to_log = { **to_log, **{ 'model/summary': wandb.Html(get_summary_html(model)) } }
|
if step == 0:
|
||||||
|
to_log = { **to_log, **{ 'model/summary': wandb.Html(get_summary_html(model)) } }
|
||||||
|
|
||||||
|
|
||||||
wandb.log(to_log, step=step)
|
wandb.log(to_log, step=step)
|
||||||
|
train_accumulator.reset()
|
||||||
|
valid_accumulator.reset()
|
||||||
|
|
||||||
if step % 10000 == 0:
|
if step % 10000 == 0:
|
||||||
manager_enc.save(checkpoint_number=step)
|
manager_enc.save(checkpoint_number=step)
|
||||||
manager_dec.save(checkpoint_number=step)
|
manager_dec.save(checkpoint_number=step)
|
||||||
|
|
||||||
print(step)
|
print(step)
|
||||||
|
|
||||||
step += 1
|
step += 1
|
||||||
|
|
||||||
@@ -184,7 +195,7 @@ def test():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
init_wandb()
|
init_wandb()
|
||||||
allow_memory_growth()
|
# allow_memory_growth()
|
||||||
parser = argparse.ArgumentParser(description='')
|
parser = argparse.ArgumentParser(description='')
|
||||||
parser.add_argument('--name', type=str)
|
parser.add_argument('--name', type=str)
|
||||||
args = vars(parser.parse_args())
|
args = vars(parser.parse_args())
|
||||||
@@ -198,22 +209,48 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
factory = DatasetFactory()
|
factory = DatasetFactory()
|
||||||
|
|
||||||
dataset_train = factory.get_dataset(folder=config['train_dir'], batch_size=config['batch_size'], signature=config['signature_dynamic'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=config['dataset_in_memory'], is_cape=config['is_cape'])
|
dataset_train = factory.get_dataset(folder=config['train_dir'],
|
||||||
static_dataset_train = StaticDataset(folder=config['train_dir'], signature=config['signature_static'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=True, is_cape=config['is_cape'])
|
batch_size=config['batch_size'],
|
||||||
dataset_valid = factory.get_dataset(folder=config['valid_dir'], batch_size=config['batch_size'], signature=config['signature_dynamic'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=config['dataset_in_memory'], is_cape=config['is_cape'])
|
signature=config['signature_dynamic'],
|
||||||
static_dataset_valid = StaticDataset(folder=config['valid_dir'], signature=config['signature_static'], use_filled=config['use_filled'], resolutions=[config['resolution']], in_memory=True, is_cape=config['is_cape'])
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=config['dataset_in_memory'],
|
||||||
|
use_no_orient=config['remove_global_orientation'],
|
||||||
|
frames_file=config['frames_file'] if 'frames_file' in config.keys() else None,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
static_dataset_train = StaticDataset(folder=config['train_dir'],
|
||||||
|
signature=config['signature_static'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=True,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
|
||||||
|
dataset_valid = factory.get_dataset(folder=config['valid_dir'],
|
||||||
|
batch_size=config['batch_size'],
|
||||||
|
signature=config['signature_dynamic'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=config['dataset_in_memory'],
|
||||||
|
use_no_orient=config['remove_global_orientation'],
|
||||||
|
frames_file=config['frames_file_valid'] if 'frames_file_valid' in config.keys() else None,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
static_dataset_valid = StaticDataset(folder=config['valid_dir'],
|
||||||
|
signature=config['signature_static'],
|
||||||
|
resolutions=[config['resolution']],
|
||||||
|
in_memory=True,
|
||||||
|
is_cape=config['is_cape'])
|
||||||
|
|
||||||
model : AutoEncoder = AutoEncoder(config['cond_ae'])
|
model : AutoEncoder = AutoEncoder(config['cond_ae'])
|
||||||
optimizer = tf.optimizers.Adam(learning_rate=config['lr'])
|
optimizer = tf.optimizers.Adam(learning_rate=config['lr'])
|
||||||
|
|
||||||
|
train_accumulator = Accumulator()
|
||||||
|
valid_accumulator = Accumulator()
|
||||||
|
|
||||||
if config['pretrained_model'] != '':
|
if config['pretrained_model'] != '':
|
||||||
load_model(model.encoder, config['pretrained_model'] + '_enc')
|
load_model(model.encoder, config['pretrained_model'] + '_enc')
|
||||||
load_model(model.decoder, config['pretrained_model'] + '_dec')
|
load_model(model.decoder, config['pretrained_model'] + '_dec')
|
||||||
|
|
||||||
ckpt_enc = tf.train.Checkpoint(model=model.encoder)
|
ckpt_enc = tf.train.Checkpoint(model=model.encoder)
|
||||||
manager_enc = tf.train.CheckpointManager(ckpt_enc, 'checkpoints/' + config['name'] + '_enc', max_to_keep=20)
|
manager_enc = tf.train.CheckpointManager(ckpt_enc, 'checkpoints/iccv/' + config['name'] + '_enc', max_to_keep=20)
|
||||||
ckpt_dec = tf.train.Checkpoint(model=model.decoder)
|
ckpt_dec = tf.train.Checkpoint(model=model.decoder)
|
||||||
manager_dec = tf.train.CheckpointManager(ckpt_dec, 'checkpoints/' + config['name'] + '_dec', max_to_keep=20)
|
manager_dec = tf.train.CheckpointManager(ckpt_dec, 'checkpoints/iccv/' + config['name'] + '_dec', max_to_keep=20)
|
||||||
|
|
||||||
# test()
|
# test()
|
||||||
train()
|
train()
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
from configs.iccv.config_abl_pyr_32_64_128_seq import config
|
||||||
|
|
||||||
|
os.environ["CUDA_VISIBLE_DEVICES"] = config['gpu']
|
||||||
|
import tensorflow as tf
|
||||||
|
|
||||||
|
gpus = tf.config.experimental.list_physical_devices('GPU')
|
||||||
|
if gpus:
|
||||||
|
try:
|
||||||
|
# Currently, memory growth needs to be the same across GPUs
|
||||||
|
for gpu in gpus:
|
||||||
|
tf.config.experimental.set_memory_growth(gpu, True)
|
||||||
|
logical_gpus = tf.config.experimental.list_logical_devices('GPU')
|
||||||
|
print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")
|
||||||
|
except RuntimeError as e:
|
||||||
|
# Memory growth must be set before GPUs have been initialized
|
||||||
|
print(e)
|
||||||
|
|
||||||
|
import csv
|
||||||
|
import glob
|
||||||
|
import time
|
||||||
|
import argparse
|
||||||
|
import wandb
|
||||||
|
from tqdm import tqdm
|
||||||
|
import random
|
||||||
|
import numpy as np
|
||||||
|
import plotly.graph_objects as go
|
||||||
|
import plotly.express as ex
|
||||||
|
from losses import collision_loss, normal_loss
|
||||||
|
if config['is_skirt']:
|
||||||
|
from losses import edge_loss_skirt as edge_loss
|
||||||
|
else:
|
||||||
|
from losses import edge_loss
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# from postprocessing import fix_collision
|
||||||
|
# from losses import collision_ratio, kl_loss #, concept_loss
|
||||||
|
# # from losses import collision_penalty as collision_penalty
|
||||||
|
# from losses import collision_loss as collision_penalty
|
||||||
|
# from custom_utils.custom_utils import batch_to_dict, load_model, plot_3d, UV2Mesh, get_summary_html, maskFacesBatch, _maskFaces, plot_3d_collision
|
||||||
|
# from custom_utils.smpl import SMPL
|
||||||
|
# from custom_utils.supersmpl_io import writeOBJ
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# uv2mesh = UV2Mesh(res=256, is_skirt=config['is_skirt'], is_adaptive=False)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
parser = argparse.ArgumentParser(description='')
|
||||||
|
parser.add_argument('--name', type=str)
|
||||||
|
args = vars(parser.parse_args())
|
||||||
|
|
||||||
|
print(config['name'])
|
||||||
|
|
||||||
|
# smpl = SMPL(use_one_hot=config['use_one_hot'])
|
||||||
|
skirt_modifier = '_skirt' if config['is_skirt'] else ''
|
||||||
|
|
||||||
|
error_type = 'euclidean' # 'euclidean' 'collision' edge normal
|
||||||
|
|
||||||
|
folder = config['test_dir']
|
||||||
|
|
||||||
|
checkpoint_name = config['name']
|
||||||
|
# iteration = '200000'
|
||||||
|
|
||||||
|
F = np.load("custom_utils/smpl_faces" + skirt_modifier + ".npy").astype(np.int32)
|
||||||
|
garment_type_table = np.load('custom_data/garment_type_table_test.npy', allow_pickle=True).item()
|
||||||
|
|
||||||
|
|
||||||
|
output_folder = '/home/workspace/local-data/results/iccv/' + checkpoint_name + '-'
|
||||||
|
# check if there is a folder that starts with this name using glob
|
||||||
|
folders = glob.glob(output_folder + '*')
|
||||||
|
assert len(folders) == 1, f'There should be only one checkpoint that starts with this name, but found {len(folders)}'
|
||||||
|
output_folder = folders[0]
|
||||||
|
iteration = output_folder.split('-')[-1]
|
||||||
|
|
||||||
|
|
||||||
|
# faces_folder = '/home/workspace/data/results/support/faces' + ('_skirt' if config['is_skirt'] else '')
|
||||||
|
# ids = os.listdir(faces_folder)
|
||||||
|
# ids = [id.split('.')[0] for id in ids]
|
||||||
|
# faces = {id : np.load(faces_folder + '/' + id + '.npy') for id in ids }
|
||||||
|
|
||||||
|
print('Reading masks...')
|
||||||
|
masks_folder = '/home/workspace/local-data' + ('' if config['is_skirt'] else '_127') + '/test' + ('_skirt' if config['is_skirt'] else '') + '_ready' + ('_2' if config['is_skirt'] else '') + '/mesh_mask'
|
||||||
|
ids = os.listdir(masks_folder)
|
||||||
|
ids = [id.split('.')[0] for id in ids]
|
||||||
|
masks = {id : np.load(masks_folder + '/' + id + '.npy') for id in ids }
|
||||||
|
|
||||||
|
frames = os.listdir(output_folder)
|
||||||
|
frames = [frame for frame in frames if not frame.endswith('_fixed_coll.npy')]
|
||||||
|
# frames = frames[:100]
|
||||||
|
|
||||||
|
# print('Reading bodies...')
|
||||||
|
# bodies_folder = '/home/workspace/local-data' + ('' if config['is_skirt'] else '_127') + '/test' + ('_skirt' if config['is_skirt'] else '') + '_ready' + ('_2' if config['is_skirt'] else '') + '/mesh_posed_body_no_orient'
|
||||||
|
# bodies = {frame : np.load(bodies_folder + '/' + frame[:-1] + 'z')['mesh_posed_body_no_orient'] for frame in tqdm(frames) }
|
||||||
|
|
||||||
|
if config['remove_global_orientation']:
|
||||||
|
gt_name = 'mesh_posed_no_orient'
|
||||||
|
else:
|
||||||
|
gt_name = 'mesh_posed'
|
||||||
|
|
||||||
|
orig_folder = '/home/workspace/local-data' + ('' if config['is_skirt'] else '_127') + '/test' + ('_skirt' if config['is_skirt'] else '') + '_ready' + ('_2' if config['is_skirt'] else '') + '/' + gt_name
|
||||||
|
|
||||||
|
errors = dict()
|
||||||
|
if config['is_skirt']:
|
||||||
|
per_garment_errors = { 'Tshirt': [], 'Dress': [], 'Skirt': [], 'Top': [] }
|
||||||
|
else:
|
||||||
|
per_garment_errors = { 'Tshirt': [], 'Jumpsuit': [], 'Trousers': [], 'Top': [] }
|
||||||
|
|
||||||
|
for frame in tqdm(frames):
|
||||||
|
id = frame.split('_')[0]
|
||||||
|
frame_nr = frame.split('.')[0].split('_')[1]
|
||||||
|
gt = np.load(os.path.join(orig_folder, id + '_' + frame_nr + '.npz'))[gt_name][masks[id], :].astype(np.float32)
|
||||||
|
pred = np.load(os.path.join(output_folder, id + '_' + frame_nr + '.npy'))
|
||||||
|
if error_type == 'edge':
|
||||||
|
pred_unmasked = np.zeros((1, 14475, 3), dtype=np.float32)
|
||||||
|
pred_unmasked[0, masks[id], :] = pred
|
||||||
|
gt_unmasked = np.zeros((1, 14475, 3), dtype=np.float32)
|
||||||
|
gt_unmasked[0, masks[id], :] = gt
|
||||||
|
metric = edge_loss(gt_unmasked, pred_unmasked, masks[id][None,:].astype(np.float32)).numpy()[0]
|
||||||
|
elif error_type == 'euclidean':
|
||||||
|
metric = np.mean(np.sqrt(np.sum((gt - pred) ** 2, axis=-1)))
|
||||||
|
elif error_type == 'collision':
|
||||||
|
pred_unmasked = np.zeros((1, 14475, 3), dtype=np.float32)
|
||||||
|
pred_unmasked[0, masks[id], :] = pred
|
||||||
|
metric = collision_loss(pred_unmasked, bodies[frame][None,:,:], masks[id][None,:].astype(np.float32))[0].numpy()[0]
|
||||||
|
elif error_type == 'normal':
|
||||||
|
pred_unmasked = np.zeros((1, 14475, 3), dtype=np.float32)
|
||||||
|
pred_unmasked[0, masks[id], :] = pred
|
||||||
|
gt_unmasked = np.zeros((1, 14475, 3), dtype=np.float32)
|
||||||
|
gt_unmasked[0, masks[id], :] = gt
|
||||||
|
metric = normal_loss(gt_unmasked, pred_unmasked, masks[id][None,:].astype(np.float32)).numpy()
|
||||||
|
else:
|
||||||
|
raise ValueError('Error type not supported')
|
||||||
|
|
||||||
|
errors[id + '_' + frame_nr] = metric
|
||||||
|
per_garment_errors[garment_type_table[id]].append(metric)
|
||||||
|
|
||||||
|
|
||||||
|
for key in per_garment_errors.keys():
|
||||||
|
print(key + ': ' + str(np.mean(per_garment_errors[key])))
|
||||||
|
|
||||||
|
with open(f'/home/workspace/data/results/errors/iccv/{checkpoint_name}-{iteration}-{error_type}.csv', mode='w') as f:
|
||||||
|
file_writer = csv.writer(f, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
|
||||||
|
|
||||||
|
for key in sorted(errors.keys()):
|
||||||
|
file_writer.writerow([key, errors[key]])
|
||||||
|
|
||||||
|
# x = gt
|
||||||
|
# y = pred
|
||||||
|
# fig = go.Figure(data=[
|
||||||
|
# go.Mesh3d(
|
||||||
|
# x=x[:,0],
|
||||||
|
# y=x[:,1],
|
||||||
|
# z=x[:,2],
|
||||||
|
# i = faces[id][:,0],
|
||||||
|
# j = faces[id][:,1],
|
||||||
|
# k = faces[id][:,2],
|
||||||
|
# ),
|
||||||
|
# go.Mesh3d(
|
||||||
|
# x=y[:,0],
|
||||||
|
# y=y[:,1],
|
||||||
|
# z=y[:,2],
|
||||||
|
# i = faces[id][:,0],
|
||||||
|
# j = faces[id][:,1],
|
||||||
|
# k = faces[id][:,2],
|
||||||
|
# ),
|
||||||
|
# ])
|
||||||
|
|
||||||
|
# fig.update_layout(scene_aspectmode='manual',
|
||||||
|
# scene_aspectratio=dict(x=1, y=1, z=1))
|
||||||
|
# fig.update_layout(
|
||||||
|
# scene = dict(
|
||||||
|
# xaxis = dict(nticks=4, range=[-1,1],),
|
||||||
|
# yaxis = dict(nticks=4, range=[-1,1],),
|
||||||
|
# zaxis = dict(nticks=4, range=[-1,1],),)
|
||||||
|
# )
|
||||||
|
|
||||||
|
# fig.show()
|
||||||
|
|
||||||
|
# print()
|
||||||
|
|
||||||
|
# print()
|
||||||
|
|
||||||
+1
-1
@@ -659,7 +659,7 @@ if __name__ == '__main__':
|
|||||||
# create_posed_body()
|
# create_posed_body()
|
||||||
# create_static()
|
# create_static()
|
||||||
# create_unposed()
|
# create_unposed()
|
||||||
# create_posed()
|
create_posed()
|
||||||
# verify()
|
# verify()
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,99 @@
|
|||||||
|
import os
|
||||||
|
import tqdm
|
||||||
|
import random
|
||||||
|
import numpy as np
|
||||||
|
import pandas as pd
|
||||||
|
import plotly.graph_objects as go
|
||||||
|
|
||||||
|
from sklearn.cluster import KMeans, MiniBatchKMeans
|
||||||
|
|
||||||
|
|
||||||
|
def generate_clusters(folder, n_cluster):
|
||||||
|
frames = os.listdir(os.path.join(folder, 'pose_shape'))
|
||||||
|
frames = [frame.split('.')[0] for frame in frames]
|
||||||
|
# random.shuffle(frames)
|
||||||
|
# frames = frames[:5000]
|
||||||
|
|
||||||
|
all_poses = np.zeros((len(frames), 69), np.float32)
|
||||||
|
|
||||||
|
i = 0
|
||||||
|
for frame in tqdm.tqdm(frames):
|
||||||
|
# id, frame_nr = frame.split('_')
|
||||||
|
# frame_nr = frame_nr.split('.')[0]
|
||||||
|
|
||||||
|
pose_shape = np.load(os.path.join(folder, 'pose_shape', frame + '.npy'))
|
||||||
|
pose = pose_shape[3:72]
|
||||||
|
|
||||||
|
all_poses[i, :] = pose
|
||||||
|
|
||||||
|
i+= 1
|
||||||
|
|
||||||
|
|
||||||
|
# kmeans = KMeans(n_clusters=20, random_state=0).fit(all_poses)
|
||||||
|
kmeans = MiniBatchKMeans(n_clusters=n_cluster, random_state=0, verbose=1).fit(all_poses)
|
||||||
|
|
||||||
|
data = {'frame': frames, 'label': kmeans.labels_}
|
||||||
|
|
||||||
|
df = pd.DataFrame(data)
|
||||||
|
df.to_csv('custom_data/' + folder.split('/')[-1] + '_pose_cluster_' + str(n_cluster) + '.csv', index=False)
|
||||||
|
|
||||||
|
|
||||||
|
def sample_from_cluster(file, n_sample, output_file):
|
||||||
|
df = pd.read_csv(file)
|
||||||
|
samples = df.groupby('label', group_keys=False).apply(lambda x: x.sample(n_sample))
|
||||||
|
|
||||||
|
sampled_frames = np.asarray(samples['frame'].array)
|
||||||
|
|
||||||
|
with open(os.path.join(folder, output_file), 'w') as f:
|
||||||
|
for i, frame in enumerate(sampled_frames):
|
||||||
|
f.write(frame + '\n')
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
folder = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
is_skirt = True
|
||||||
|
F = np.load("custom_utils/smpl_faces" + ("_skirt" if is_skirt == 1 else "") + ".npy")
|
||||||
|
|
||||||
|
generate_clusters(folder, 20)
|
||||||
|
# sample_from_cluster('custom_data/test_skirt_ready_pose_cluster_20.csv', 10, '/home/workspace/data/dataset/test_skirt_ready/frames_pose_cluster_20_sample_10.txt')
|
||||||
|
|
||||||
|
|
||||||
|
# samples = df.groupby('label', group_keys=False).apply(lambda x: x.sample())
|
||||||
|
|
||||||
|
# sampled_frames = np.asarray(samples['frame'].array)
|
||||||
|
# sampled_labels = np.asarray(samples['label'].array)
|
||||||
|
|
||||||
|
# for i in range(sampled_frames.shape[0]):
|
||||||
|
# body_no_orient = np.load(os.path.join(folder, 'mesh_posed_body_no_orient', sampled_frames[i] + '.npz')); body_no_orient = body_no_orient['mesh_posed_body_no_orient']
|
||||||
|
|
||||||
|
# x = body_no_orient
|
||||||
|
# fig = go.Figure(data=[
|
||||||
|
# go.Mesh3d(
|
||||||
|
# # 8 vertices of a cube
|
||||||
|
# x=x[:,0],
|
||||||
|
# y=x[:,1],
|
||||||
|
# z=x[:,2],
|
||||||
|
# # i, j and k give the vertices of triangles
|
||||||
|
# i = F[:,0],
|
||||||
|
# j = F[:,1],
|
||||||
|
# k = F[:,2],
|
||||||
|
# text='cluster: ' + str(sampled_labels[i])
|
||||||
|
# ),
|
||||||
|
# ])
|
||||||
|
|
||||||
|
# fig.update_layout(scene_aspectmode='manual',
|
||||||
|
# scene_aspectratio=dict(x=1, y=1, z=1))
|
||||||
|
# fig.update_layout(
|
||||||
|
# scene = dict(
|
||||||
|
# xaxis = dict(nticks=4, range=[-1.5,1.5],),
|
||||||
|
# yaxis = dict(nticks=4, range=[-1.5,1.5],),
|
||||||
|
# zaxis = dict(nticks=4, range=[-1.5,1.5],),)
|
||||||
|
# )
|
||||||
|
|
||||||
|
# fig.show()
|
||||||
|
|
||||||
|
# print()
|
||||||
|
|
||||||
|
|
||||||
|
print()
|
||||||
+304
@@ -0,0 +1,304 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
os.environ["CUDA_VISIBLE_DEVICES"] = '6'
|
||||||
|
import tensorflow as tf
|
||||||
|
|
||||||
|
gpus = tf.config.experimental.list_physical_devices('GPU')
|
||||||
|
if gpus:
|
||||||
|
try:
|
||||||
|
# Currently, memory growth needs to be the same across GPUs
|
||||||
|
for gpu in gpus:
|
||||||
|
tf.config.experimental.set_memory_growth(gpu, True)
|
||||||
|
logical_gpus = tf.config.experimental.list_logical_devices('GPU')
|
||||||
|
print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")
|
||||||
|
except RuntimeError as e:
|
||||||
|
# Memory growth must be set before GPUs have been initialized
|
||||||
|
print(e)
|
||||||
|
|
||||||
|
import tqdm
|
||||||
|
import shutil
|
||||||
|
import random
|
||||||
|
import numpy as np
|
||||||
|
import trimesh as tm
|
||||||
|
import plotly.express as ex
|
||||||
|
import plotly.graph_objects as go
|
||||||
|
from custom_utils.custom_utils import _maskFaces, save_stl
|
||||||
|
from custom_utils.smpl import SMPL
|
||||||
|
from plotly.subplots import make_subplots
|
||||||
|
from scipy.spatial.transform import Rotation as R
|
||||||
|
|
||||||
|
|
||||||
|
def plot_fixed(mesh, faces, colors):
|
||||||
|
fig = go.Figure()
|
||||||
|
|
||||||
|
fig.add_trace(go.Mesh3d(
|
||||||
|
x=mesh[:,0],
|
||||||
|
y=mesh[:,2],
|
||||||
|
z=mesh[:,1],
|
||||||
|
i = faces[:,0],
|
||||||
|
j = faces[:,1],
|
||||||
|
k = faces[:,2],
|
||||||
|
text="",
|
||||||
|
vertexcolor=colors,
|
||||||
|
lighting={ 'ambient':0.8, 'diffuse':0.5, 'roughness':0.5 },
|
||||||
|
|
||||||
|
),)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
fig.update_layout(scene_aspectmode='manual', scene_aspectratio=dict(x=1, y=1, z=1))
|
||||||
|
helper = dict(xaxis = dict(range=[-1,1], showbackground=False, showticklabels=False, showaxeslabels=False, showspikes=False, visible=False),
|
||||||
|
yaxis = dict(range=[-1,1], showbackground=False, showticklabels=False, showaxeslabels=False, showspikes=False, visible=False),
|
||||||
|
zaxis = dict(range=[-1,1], showbackground=False, showticklabels=False, showaxeslabels=False, showspikes=False, visible=False),)
|
||||||
|
fig.update_layout(scene = helper)
|
||||||
|
|
||||||
|
camera = dict(
|
||||||
|
up=dict(x=0, y=0, z=1),
|
||||||
|
center=dict(x=0, y=0, z=-0.05),
|
||||||
|
eye=dict(x=0.3, y=1.0, z=0.05)
|
||||||
|
)
|
||||||
|
|
||||||
|
fig.update_layout(scene_camera=camera, width=800, height=1100, autosize=False,
|
||||||
|
margin=dict(l=0, r=0, b=0, t=0, pad=0)
|
||||||
|
)
|
||||||
|
|
||||||
|
return fig
|
||||||
|
|
||||||
|
|
||||||
|
def plot_fixed_all(gt, cape, ours, error_cape, error_ours, faces, colors):
|
||||||
|
fig = make_subplots(rows=1, cols=3, start_cell="top-left", specs = [ [{ 'type': 'scene' } for _ in range(3)] ], horizontal_spacing=0)
|
||||||
|
|
||||||
|
fig.add_trace(go.Mesh3d(
|
||||||
|
x=gt[:,0],
|
||||||
|
y=gt[:,2],
|
||||||
|
z=gt[:,1],
|
||||||
|
i = faces[:,0],
|
||||||
|
j = faces[:,1],
|
||||||
|
k = faces[:,2],
|
||||||
|
text='GT',
|
||||||
|
vertexcolor=colors,
|
||||||
|
lighting={ 'ambient':0.8, 'diffuse':0.5, 'roughness':0.5 },
|
||||||
|
),
|
||||||
|
row=1, col=1)
|
||||||
|
|
||||||
|
fig.add_trace(go.Mesh3d(
|
||||||
|
x=cape[:,0],
|
||||||
|
y=cape[:,2],
|
||||||
|
z=cape[:,1],
|
||||||
|
i = faces[:,0],
|
||||||
|
j = faces[:,1],
|
||||||
|
k = faces[:,2],
|
||||||
|
text=str(error_cape),
|
||||||
|
vertexcolor=colors,
|
||||||
|
lighting={ 'ambient':0.8, 'diffuse':0.5, 'roughness':0.5 },
|
||||||
|
),
|
||||||
|
row=1, col=2)
|
||||||
|
|
||||||
|
|
||||||
|
fig.add_trace(go.Mesh3d(
|
||||||
|
x=ours[:,0],
|
||||||
|
y=ours[:,2],
|
||||||
|
z=ours[:,1],
|
||||||
|
i = faces[:,0],
|
||||||
|
j = faces[:,1],
|
||||||
|
k = faces[:,2],
|
||||||
|
text=str(error_ours),
|
||||||
|
vertexcolor=colors,
|
||||||
|
lighting={ 'ambient':0.8, 'diffuse':0.5, 'roughness':0.5 },
|
||||||
|
),
|
||||||
|
row=1, col=3)
|
||||||
|
|
||||||
|
|
||||||
|
fig.update_layout(scene_aspectmode='manual', scene_aspectratio=dict(x=1, y=1, z=1),
|
||||||
|
scene2_aspectmode='manual', scene2_aspectratio=dict(x=1, y=1, z=1),
|
||||||
|
scene3_aspectmode='manual', scene3_aspectratio=dict(x=1, y=1, z=1))
|
||||||
|
helper = dict(xaxis = dict(range=[-1,1], showbackground=False, showticklabels=False, showaxeslabels=False, showspikes=False, visible=False),
|
||||||
|
yaxis = dict(range=[-1,1], showbackground=False, showticklabels=False, showaxeslabels=False, showspikes=False, visible=False),
|
||||||
|
zaxis = dict(range=[-1,1], showbackground=False, showticklabels=False, showaxeslabels=False, showspikes=False, visible=False),)
|
||||||
|
fig.update_layout(scene = helper,
|
||||||
|
scene2 = helper,
|
||||||
|
scene3 = helper)
|
||||||
|
|
||||||
|
camera = dict(
|
||||||
|
up=dict(x=0, y=0, z=1),
|
||||||
|
center=dict(x=0, y=-0.3, z=-0.05),
|
||||||
|
eye=dict(x=0.5, y=1.2, z=0.05)
|
||||||
|
)
|
||||||
|
|
||||||
|
fig.update_layout(scene_camera=camera, width=2000, height=1100, autosize=False, margin=dict(l=0, r=0, b=0, t=0, pad=0),
|
||||||
|
scene2_camera=camera,
|
||||||
|
scene3_camera=camera)
|
||||||
|
|
||||||
|
return fig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def custom_imshow(img):
|
||||||
|
fig = ex.imshow(np.flip(img, axis=0))
|
||||||
|
fig.update_layout(margin=dict(l=0, r=0, b=0, t=0, pad=0), width=img.shape[1], height=img.shape[0])
|
||||||
|
fig.update_xaxes(visible=False)
|
||||||
|
fig.update_yaxes(visible=False)
|
||||||
|
|
||||||
|
return fig
|
||||||
|
|
||||||
|
|
||||||
|
def read_obj(path):
|
||||||
|
with open(path, 'r') as f:
|
||||||
|
obj = tm.exchange.obj.load_obj(f, skip_materials=True, maintain_order=True)
|
||||||
|
verts = obj['vertices']
|
||||||
|
return verts
|
||||||
|
|
||||||
|
|
||||||
|
def read_frames_file(file):
|
||||||
|
with open(file, 'r') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
frames = ['_'.join(line.strip().split('.')[:-1]) for line in lines]
|
||||||
|
|
||||||
|
# frames_lookup = dict()
|
||||||
|
|
||||||
|
return frames
|
||||||
|
|
||||||
|
|
||||||
|
def get_cape_errors(file, frames):
|
||||||
|
out = dict()
|
||||||
|
errors = np.load(file).mean(-1)
|
||||||
|
|
||||||
|
for frame, error in zip(frames, errors):
|
||||||
|
out[frame] = error
|
||||||
|
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def get_errors(file):
|
||||||
|
out = dict()
|
||||||
|
with open(file, 'r') as f:
|
||||||
|
for line in f:
|
||||||
|
frame, error = line.split(' ')
|
||||||
|
out[frame] = float(error)
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def read_gt(folder, frame):
|
||||||
|
split = frame.split('_')
|
||||||
|
file = '_'.join(split[:-1]) + '.' + split[-1] + '.npz'
|
||||||
|
data = np.load(os.path.join(folder, file))['mesh_posed']
|
||||||
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
def add_global_orientation(mesh, frame, folder, inverse=False):
|
||||||
|
split = frame.split('_')
|
||||||
|
file = '_'.join(split[:-1]) + '.' + split[-1] + '.npy'
|
||||||
|
pose_shape = np.load(os.path.join(folder, file))
|
||||||
|
|
||||||
|
rodr = smpl.run_rodrigues(pose_shape[:72][np.newaxis,:].astype(np.float32)).numpy()
|
||||||
|
|
||||||
|
r = R.from_matrix(rodr[0, 0, :, :])
|
||||||
|
out = r.apply(mesh, inverse=inverse)
|
||||||
|
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
folder_f = 'CAPE/results/CAPE-affineconv_nz18_pose24_clotype8_female/test_reconstruction_objs_dataset_female_4clotypes'
|
||||||
|
folder_m = 'CAPE/results/CAPE-affineconv_nz18_pose24_clotype8_male/test_reconstruction_objs_dataset_male_4clotypes'
|
||||||
|
|
||||||
|
frames_file_f = '/home/workspace/data/dataset/cape_processed/datasets/dataset_female_4clotypes_frames.txt'
|
||||||
|
frames_file_m = '/home/workspace/data/dataset/cape_processed/datasets/dataset_male_4clotypes_frames.txt'
|
||||||
|
|
||||||
|
frames_f = read_frames_file(frames_file_f)
|
||||||
|
frames_f_to_i = { frame: i for i, frame in enumerate(frames_f) }
|
||||||
|
errors_cape_f = get_cape_errors('CAPE/results/CAPE-affineconv_nz18_pose24_clotype8_female/errors.npy', frames_f)
|
||||||
|
errors_cape_f = dict(reversed(sorted(errors_cape_f.items(), key=lambda item: item[1])))
|
||||||
|
frames_m = read_frames_file(frames_file_m)
|
||||||
|
frames_m_to_i = { frame: i for i, frame in enumerate(frames_m) }
|
||||||
|
errors_cape_m = get_cape_errors('CAPE/results/CAPE-affineconv_nz18_pose24_clotype8_male/errors.npy', frames_m)
|
||||||
|
errors_cape_m = dict(reversed(sorted(errors_cape_m.items(), key=lambda item: item[1])))
|
||||||
|
|
||||||
|
errors_f = get_errors('temp/archive/error_abl_2_pyr_64_128_256_512_cape_f.txt')
|
||||||
|
errors_m = get_errors('temp/archive/error_abl_2_pyr_64_128_256_512_cape_m.txt')
|
||||||
|
|
||||||
|
folder_pyr_f = '/home/workspace/data/results/cape/abl_2_pyr_64_128_256_512_cape_f'
|
||||||
|
folder_pyr_m = '/home/workspace/data/results/cape/abl_2_pyr_64_128_256_512_cape_m'
|
||||||
|
|
||||||
|
gt_folder_f = '/home/workspace/local-data/cape_processed/test/female/mesh_posed'
|
||||||
|
gt_folder_m = '/home/workspace/local-data/cape_processed/test/male/mesh_posed'
|
||||||
|
|
||||||
|
pose_folder_m = '/home/workspace/local-data/cape_processed/test/male/pose_shape'
|
||||||
|
pose_folder_f = '/home/workspace/local-data/cape_processed/test/female/pose_shape'
|
||||||
|
|
||||||
|
|
||||||
|
smpl = SMPL(orig_smpl=True)
|
||||||
|
# verts_idx = smpl.to_keep
|
||||||
|
clothing_verts_idx = np.load(os.path.join('CAPE', 'data', 'clothing_verts_idx.npy'))
|
||||||
|
cape_mask = np.zeros((6890), bool)
|
||||||
|
cape_mask[clothing_verts_idx] = True
|
||||||
|
cape_mask = cape_mask[smpl.to_keep]
|
||||||
|
J0 = np.load('custom_data/smpl_root_joint.npy')
|
||||||
|
|
||||||
|
|
||||||
|
_, faces = _maskFaces(np.zeros((3638, 3)), np.load('custom_utils/smpl_faces_orig.npy'), cape_mask)
|
||||||
|
faces = faces.astype(np.int32)
|
||||||
|
colors = np.ones((3627, 3), np.int8) * 230
|
||||||
|
|
||||||
|
gender = 'female'
|
||||||
|
|
||||||
|
if gender == 'male':
|
||||||
|
folder_cape = folder_m
|
||||||
|
errors_cape = errors_cape_m
|
||||||
|
folder = folder_pyr_m
|
||||||
|
errors = errors_m
|
||||||
|
frames_to_i = frames_m_to_i
|
||||||
|
gt_folder = gt_folder_m
|
||||||
|
pose_folder = pose_folder_m
|
||||||
|
else:
|
||||||
|
folder_cape = folder_f
|
||||||
|
errors_cape = errors_cape_f
|
||||||
|
folder = folder_pyr_f
|
||||||
|
errors = errors_f
|
||||||
|
frames_to_i = frames_f_to_i
|
||||||
|
gt_folder = gt_folder_f
|
||||||
|
pose_folder = pose_folder_f
|
||||||
|
|
||||||
|
all_errors_1 = []
|
||||||
|
all_errors_2 = []
|
||||||
|
|
||||||
|
for key in tqdm.tqdm(errors_cape.keys()):
|
||||||
|
# count = 0
|
||||||
|
# while True:
|
||||||
|
if os.path.exists(f'temp/cape_stl/{key}_gt.stl'):
|
||||||
|
continue
|
||||||
|
# key = random.choice(list(errors_cape.keys()))
|
||||||
|
cape = read_obj(os.path.join(folder_cape, '{:0>4d}.obj'.format(frames_to_i[key])))[clothing_verts_idx, :] - J0[np.newaxis, :]
|
||||||
|
split = key.split('_')
|
||||||
|
file = '_'.join(split[:-1]) + '.' + split[-1] + '.npy'
|
||||||
|
pose_shape_path = os.path.join(pose_folder, file)
|
||||||
|
if not os.path.exists(pose_shape_path):
|
||||||
|
continue
|
||||||
|
cape = add_global_orientation(cape, key, pose_folder, inverse=True)
|
||||||
|
if not os.path.exists(os.path.join(folder, key + '_posed.npy')):
|
||||||
|
continue
|
||||||
|
ours = np.load(os.path.join(folder, key + '_posed.npy'))[cape_mask, :]
|
||||||
|
# ours = add_global_orientation(ours, key, pose_folder)
|
||||||
|
gt = read_gt(gt_folder, key)[cape_mask, :]
|
||||||
|
gt = add_global_orientation(gt, key, pose_folder, inverse=True)
|
||||||
|
|
||||||
|
# error_1 = np.sqrt(((gt - cape) ** 2).sum(-1)).mean()
|
||||||
|
# error_2 = np.sqrt(((gt - ours) ** 2).sum(-1)).mean()
|
||||||
|
|
||||||
|
# all_errors_1.append(error_1)
|
||||||
|
# all_errors_2.append(error_2)
|
||||||
|
|
||||||
|
# print(np.mean(all_errors_1))
|
||||||
|
# print(np.mean(all_errors_2))
|
||||||
|
|
||||||
|
# fig = plot_fixed_all(gt, cape, ours, errors_cape[key], errors[key], faces, colors)
|
||||||
|
# fig.write_image('temp/cape_2/' + key + '.png')
|
||||||
|
save_stl(f'temp/cape_stl/{key}_gt.stl', gt, faces)
|
||||||
|
save_stl(f'temp/cape_stl/{key}_cape.stl', cape, faces)
|
||||||
|
save_stl(f'temp/cape_stl/{key}_ours.stl', ours, faces)
|
||||||
|
|
||||||
|
# print(count)
|
||||||
|
# count += 1
|
||||||
|
|
||||||
|
print()
|
||||||
@@ -0,0 +1,273 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
from configs.config_abl_all_skirt import config as config_a
|
||||||
|
from configs.config_abl_extra_loss_skirt import config as config_b
|
||||||
|
from configs.config_abl_norm_skirt import config as config_c
|
||||||
|
|
||||||
|
os.environ["CUDA_VISIBLE_DEVICES"] = '6'
|
||||||
|
import tensorflow as tf
|
||||||
|
|
||||||
|
gpus = tf.config.experimental.list_physical_devices('GPU')
|
||||||
|
if gpus:
|
||||||
|
try:
|
||||||
|
# Currently, memory growth needs to be the same across GPUs
|
||||||
|
for gpu in gpus:
|
||||||
|
tf.config.experimental.set_memory_growth(gpu, True)
|
||||||
|
logical_gpus = tf.config.experimental.list_logical_devices('GPU')
|
||||||
|
print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")
|
||||||
|
except RuntimeError as e:
|
||||||
|
# Memory growth must be set before GPUs have been initialized
|
||||||
|
print(e)
|
||||||
|
|
||||||
|
import glob
|
||||||
|
import time
|
||||||
|
import argparse
|
||||||
|
import wandb
|
||||||
|
import tqdm
|
||||||
|
import random
|
||||||
|
import numpy as np
|
||||||
|
import plotly.graph_objects as go
|
||||||
|
import plotly.express as ex
|
||||||
|
from PIL import Image
|
||||||
|
from postprocessing import fix_collision
|
||||||
|
|
||||||
|
if config_a['is_skirt']:
|
||||||
|
from losses import edge_loss_skirt as edge_loss
|
||||||
|
else:
|
||||||
|
from losses import edge_loss
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
from losses import collision_ratio, kl_loss #, concept_loss
|
||||||
|
# from losses import collision_penalty as collision_penalty
|
||||||
|
from losses import collision_loss as collision_penalty
|
||||||
|
from custom_utils.custom_utils import batch_to_dict, load_model, plot_3d, UV2Mesh, get_summary_html, maskFacesBatch, _maskFaces, plot_3d_collision
|
||||||
|
from dataset import DatasetFactory, StaticDataset
|
||||||
|
from custom_utils.smpl import SMPL
|
||||||
|
from models.cvae_model import CVAE
|
||||||
|
from custom_utils.supersmpl_io import writeOBJ
|
||||||
|
from plotly.subplots import make_subplots
|
||||||
|
|
||||||
|
|
||||||
|
uv2mesh = UV2Mesh(res=256, is_skirt=config_a['is_skirt'], is_adaptive=False)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def plot(mesh_gt, pred_a, pred_b, pred_c, body, mask):
|
||||||
|
fig = make_subplots(rows=1, cols=4, start_cell="top-left", specs = [ [{ 'type': 'scene' } for _ in range(4)] ])
|
||||||
|
|
||||||
|
_, faces_garment = _maskFaces(np.zeros((14475, 3), np.float32), F, mask)
|
||||||
|
faces = np.concatenate((F, faces_garment + 14475), axis=0)
|
||||||
|
mesh_gt = np.concatenate((body, mesh_gt[mask, :]), axis=0)
|
||||||
|
pred_a = np.concatenate((body, pred_a[mask, :]), axis=0)
|
||||||
|
pred_b = np.concatenate((body, pred_b[mask, :]), axis=0)
|
||||||
|
pred_c = np.concatenate((body, pred_c[mask, :]), axis=0)
|
||||||
|
|
||||||
|
colors = np.concatenate((np.ones_like(body, dtype=np.int32)*100, np.ones_like(mesh_gt, dtype=np.int32)*230), axis=0)
|
||||||
|
|
||||||
|
fig.add_trace(go.Mesh3d(
|
||||||
|
x=mesh_gt[:,0],
|
||||||
|
y=mesh_gt[:,2],
|
||||||
|
z=mesh_gt[:,1],
|
||||||
|
i = faces[:,0],
|
||||||
|
j = faces[:,1],
|
||||||
|
k = faces[:,2],
|
||||||
|
text="Ground Truth",
|
||||||
|
vertexcolor=colors,
|
||||||
|
),
|
||||||
|
row=1, col=1)
|
||||||
|
|
||||||
|
fig.add_trace(go.Mesh3d(
|
||||||
|
x=pred_a[:,0],
|
||||||
|
y=pred_a[:,2],
|
||||||
|
z=pred_a[:,1],
|
||||||
|
i = faces[:,0],
|
||||||
|
j = faces[:,1],
|
||||||
|
k = faces[:,2],
|
||||||
|
text="Pred A",
|
||||||
|
vertexcolor=colors,
|
||||||
|
),
|
||||||
|
row=1, col=2)
|
||||||
|
|
||||||
|
fig.add_trace(go.Mesh3d(
|
||||||
|
x=pred_b[:,0],
|
||||||
|
y=pred_b[:,2],
|
||||||
|
z=pred_b[:,1],
|
||||||
|
i = faces[:,0],
|
||||||
|
j = faces[:,1],
|
||||||
|
k = faces[:,2],
|
||||||
|
text="Pred B",
|
||||||
|
vertexcolor=colors,
|
||||||
|
),
|
||||||
|
row=1, col=3)
|
||||||
|
|
||||||
|
fig.add_trace(go.Mesh3d(
|
||||||
|
x=pred_c[:,0],
|
||||||
|
y=pred_c[:,2],
|
||||||
|
z=pred_c[:,1],
|
||||||
|
i = faces[:,0],
|
||||||
|
j = faces[:,1],
|
||||||
|
k = faces[:,2],
|
||||||
|
text="Pred C",
|
||||||
|
vertexcolor=colors,
|
||||||
|
),
|
||||||
|
row=1, col=4)
|
||||||
|
|
||||||
|
|
||||||
|
fig.update_layout(scene_aspectmode='manual', scene_aspectratio=dict(x=1, y=1, z=1),
|
||||||
|
scene2_aspectmode='manual', scene2_aspectratio=dict(x=1, y=1, z=1),
|
||||||
|
scene3_aspectmode='manual', scene3_aspectratio=dict(x=1, y=1, z=1),
|
||||||
|
scene4_aspectmode='manual', scene4_aspectratio=dict(x=1, y=1, z=1),
|
||||||
|
)
|
||||||
|
helper = dict(xaxis = dict(nticks=4, range=[-1,1],),
|
||||||
|
yaxis = dict(nticks=4, range=[-1,1],),
|
||||||
|
zaxis = dict(nticks=4, range=[-1,1],),)
|
||||||
|
fig.update_layout(scene = helper,
|
||||||
|
scene2 = helper,
|
||||||
|
scene3 = helper,
|
||||||
|
scene4 = helper,
|
||||||
|
)
|
||||||
|
|
||||||
|
return fig
|
||||||
|
|
||||||
|
def step(model, config, batch):
|
||||||
|
if config['use_skinning']:
|
||||||
|
uv_orig = batch['uv_unposed']
|
||||||
|
else:
|
||||||
|
uv_orig = batch['uv_posed']
|
||||||
|
|
||||||
|
pred, _, _ = model([uv_orig, batch['uv_static'], batch['uv_body_posed'], batch['uv_curvature'], batch['uv_mask']], training=False)
|
||||||
|
|
||||||
|
mesh_pred = uv2mesh(pred)
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
shape = batch['pose_shape'][:, 72:]
|
||||||
|
gender = tf.cast(tf.greater_equal(shape[:, 10] , 0.5), tf.int32)
|
||||||
|
shape_offsets = tf.stack([tf.gather(tf.tensordot(shape[i,:10][tf.newaxis, :], smpl.shapedirs[gender[i]], axes=[[1], [2]])[0,:,:], smpl.to_keep, axis=0) for i in range(shape.shape[0])])
|
||||||
|
|
||||||
|
mesh_pred_shaped = mesh_pred + shape_offsets * batch['mesh_mask'][:,:,tf.newaxis]
|
||||||
|
mesh_pred_posed = smpl.run_garment(batch['pose_shape'][:, :72], batch['pose_shape'][:, 72:], mesh_pred_shaped)
|
||||||
|
else:
|
||||||
|
mesh_pred_posed = mesh_pred
|
||||||
|
|
||||||
|
# mesh_pred_posed_fixed = fix_collision(mesh_pred_posed, batch['mesh_body_posed'], batch['mesh_mask'])
|
||||||
|
|
||||||
|
return mesh_pred_posed, None #mesh_pred_posed_fixed
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
# init_wandb()
|
||||||
|
parser = argparse.ArgumentParser(description='')
|
||||||
|
parser.add_argument('--name', type=str)
|
||||||
|
args = vars(parser.parse_args())
|
||||||
|
|
||||||
|
skirt_modifier = '_skirt' if config_a['is_skirt'] else ''
|
||||||
|
|
||||||
|
folder = config_a['test_dir']
|
||||||
|
smpl = SMPL(use_one_hot=False)
|
||||||
|
|
||||||
|
model_a = CVAE(config_a)
|
||||||
|
model_b = CVAE(config_b)
|
||||||
|
model_c = CVAE(config_c)
|
||||||
|
|
||||||
|
|
||||||
|
F = np.load("custom_utils/smpl_faces" + skirt_modifier + ".npy").astype(np.int32)
|
||||||
|
|
||||||
|
iteration = '70000'
|
||||||
|
|
||||||
|
load_model(model_a, 'checkpoints/' + config_a['name'], iteration=iteration)
|
||||||
|
load_model(model_b, 'checkpoints/' + config_b['name'], iteration=iteration)
|
||||||
|
load_model(model_c, 'checkpoints/' + config_c['name'], iteration=iteration)
|
||||||
|
# load_model(model, 'checkpoints/' + 'abl_all_120k')
|
||||||
|
|
||||||
|
assert config_a['remove_global_orientation'] == config_b['remove_global_orientation'] == config_c['remove_global_orientation']
|
||||||
|
|
||||||
|
factory = DatasetFactory()
|
||||||
|
dataset_a = factory.get_dataset(folder=config_a['test_dir'],
|
||||||
|
batch_size=config_a['batch_size'],
|
||||||
|
signature=config_a['signature_dynamic'],
|
||||||
|
resolutions=[config_a['resolution']],
|
||||||
|
in_memory=False,
|
||||||
|
do_repeat=False,
|
||||||
|
use_one_hot=config_a['use_one_hot'],
|
||||||
|
use_no_orient=config_a['remove_global_orientation'],
|
||||||
|
shuffle=False,
|
||||||
|
testing=True,
|
||||||
|
# frames_file='frames_abl.txt',
|
||||||
|
)
|
||||||
|
static_dataset_a = StaticDataset(folder=config_a['test_dir'],
|
||||||
|
signature=config_a['signature_static'],
|
||||||
|
resolutions=[config_a['resolution']],
|
||||||
|
in_memory=True)
|
||||||
|
|
||||||
|
dataset_b = factory.get_dataset(folder=config_b['test_dir'],
|
||||||
|
batch_size=config_b['batch_size'],
|
||||||
|
signature=config_b['signature_dynamic'],
|
||||||
|
resolutions=[config_b['resolution']],
|
||||||
|
in_memory=False,
|
||||||
|
do_repeat=False,
|
||||||
|
use_one_hot=config_b['use_one_hot'],
|
||||||
|
use_no_orient=config_b['remove_global_orientation'],
|
||||||
|
shuffle=False,
|
||||||
|
testing=True,
|
||||||
|
# frames_file='frames_abl.txt',
|
||||||
|
)
|
||||||
|
static_dataset_b = StaticDataset(folder=config_b['test_dir'],
|
||||||
|
signature=config_b['signature_static'],
|
||||||
|
resolutions=[config_b['resolution']],
|
||||||
|
in_memory=True)
|
||||||
|
|
||||||
|
dataset_c = factory.get_dataset(folder=config_c['test_dir'],
|
||||||
|
batch_size=config_c['batch_size'],
|
||||||
|
signature=config_c['signature_dynamic'],
|
||||||
|
resolutions=[config_c['resolution']],
|
||||||
|
in_memory=False,
|
||||||
|
do_repeat=False,
|
||||||
|
use_one_hot=config_c['use_one_hot'],
|
||||||
|
use_no_orient=config_c['remove_global_orientation'],
|
||||||
|
shuffle=False,
|
||||||
|
testing=True,
|
||||||
|
# frames_file='frames_abl.txt',
|
||||||
|
)
|
||||||
|
static_dataset_c = StaticDataset(folder=config_c['test_dir'],
|
||||||
|
signature=config_c['signature_static'],
|
||||||
|
resolutions=[config_c['resolution']],
|
||||||
|
in_memory=True)
|
||||||
|
|
||||||
|
iterator_a = iter(dataset_a)
|
||||||
|
iterator_b = iter(dataset_b)
|
||||||
|
iterator_c = iter(dataset_c)
|
||||||
|
|
||||||
|
|
||||||
|
faces_folder = '/home/workspace/data/results/support/faces' + ('_skirt' if config_a['is_skirt'] else '')
|
||||||
|
ids = os.listdir(faces_folder)
|
||||||
|
ids = [id.split('.')[0] for id in ids]
|
||||||
|
faces = {id : np.load(faces_folder + '/' + id + '.npy') for id in ids }
|
||||||
|
|
||||||
|
|
||||||
|
while True:
|
||||||
|
batch_a = iterator_a.get_next()
|
||||||
|
batch_b = iterator_b.get_next()
|
||||||
|
batch_c = iterator_c.get_next()
|
||||||
|
|
||||||
|
batch_a = static_dataset_a.expand_batch(batch_to_dict(batch_a, config_a['signature_dynamic']))
|
||||||
|
batch_b = static_dataset_b.expand_batch(batch_to_dict(batch_b, config_b['signature_dynamic']))
|
||||||
|
batch_c = static_dataset_c.expand_batch(batch_to_dict(batch_c, config_c['signature_dynamic']))
|
||||||
|
|
||||||
|
mesh_pred_posed_a, mesh_pred_posed_fixed_a = step(model_a, config_a, batch_a)
|
||||||
|
mesh_pred_posed_b, mesh_pred_posed_fixed_b = step(model_b, config_b, batch_b)
|
||||||
|
mesh_pred_posed_c, mesh_pred_posed_fixed_c = step(model_c, config_c, batch_c)
|
||||||
|
|
||||||
|
mesh_pred_posed_a = mesh_pred_posed_a.numpy()
|
||||||
|
mesh_pred_posed_b = mesh_pred_posed_b.numpy()
|
||||||
|
mesh_pred_posed_c = mesh_pred_posed_c.numpy()
|
||||||
|
mask = batch_a['mesh_mask'].numpy().astype(bool)
|
||||||
|
gt = batch_a['mesh_posed'].numpy()
|
||||||
|
body = batch_a['mesh_body_posed'].numpy()
|
||||||
|
|
||||||
|
for i in range(mask.shape[0]):
|
||||||
|
id, frame_nr = batch_a['id'][i].numpy().decode("utf-8"), batch_a['frame_nr'][i].numpy().decode("utf-8")
|
||||||
|
plot(gt[i], mesh_pred_posed_a[i], mesh_pred_posed_b[i], mesh_pred_posed_c[i], body[i], mask[i]).show()
|
||||||
|
|
||||||
|
print()
|
||||||
|
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import numpy as np
|
||||||
|
import trimesh as tm
|
||||||
|
from stl import mesh
|
||||||
|
|
||||||
|
# os.environ["CUDA_VISIBLE_DEVICES"] = '1'
|
||||||
|
# import tensorflow as tf
|
||||||
|
|
||||||
|
# gpus = tf.config.experimental.list_physical_devices('GPU')
|
||||||
|
# if gpus:
|
||||||
|
# try:
|
||||||
|
# # Currently, memory growth needs to be the same across GPUs
|
||||||
|
# for gpu in gpus:
|
||||||
|
# tf.config.experimental.set_memory_growth(gpu, True)
|
||||||
|
# logical_gpus = tf.config.experimental.list_logical_devices('GPU')
|
||||||
|
# print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")
|
||||||
|
# except RuntimeError as e:
|
||||||
|
# # Memory growth must be set before GPUs have been initialized
|
||||||
|
# print(e)
|
||||||
|
|
||||||
|
# from losses import collision_loss, normal_loss
|
||||||
|
|
||||||
|
|
||||||
|
# from losses import edge_loss_skirt as edge_loss
|
||||||
|
# from losses import edge_loss
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
frame = '04173_193' # '02276_232', '02978_242', '04173_193'
|
||||||
|
folder = 'examples/sampling_analysis'
|
||||||
|
# original_folder = '/home/workspace/data/dataset/local-cache/train_skirt'
|
||||||
|
original_folder = '/home/workspace/local-data/train'
|
||||||
|
# folder = 'examples/sampling'
|
||||||
|
|
||||||
|
id = frame.split('_')[0]
|
||||||
|
mask = np.load(os.path.join(original_folder, 'mesh_mask', f'{id}.npy'))
|
||||||
|
gt = np.load(os.path.join(folder, frame, f'{frame}_gt.npy'))
|
||||||
|
faces = np.load(os.path.join(folder, frame, f'{frame}_faces.npy'))
|
||||||
|
edges = tm.Trimesh(vertices=gt, faces=faces, validate=False, process=False).edges
|
||||||
|
edges_gt = np.linalg.norm(gt[edges[:, 0]] - gt[edges[:, 1]], axis=1)
|
||||||
|
area_gt = np.sum(np.linalg.norm(np.cross(gt[faces[:, 0]] - gt[faces[:, 1]], gt[faces[:, 0]] - gt[faces[:, 2]]), axis=1))
|
||||||
|
|
||||||
|
errors = []
|
||||||
|
vars = []
|
||||||
|
area_diffs = []
|
||||||
|
# for i in [1,2,4,10]:
|
||||||
|
for i in range(15):
|
||||||
|
sample = np.load(os.path.join(folder, frame, f'{frame}_{i}.npy'))
|
||||||
|
edges_sample = np.linalg.norm(sample[edges[:, 0]] - sample[edges[:, 1]], axis=1)
|
||||||
|
error = np.mean(np.abs(edges_sample - edges_gt))
|
||||||
|
var = np.var(np.abs(edges_sample - edges_gt))
|
||||||
|
errors.append(error)
|
||||||
|
vars.append(var)
|
||||||
|
|
||||||
|
area_sample = np.sum(np.linalg.norm(np.cross(sample[faces[:, 0]] - sample[faces[:, 1]], sample[faces[:, 0]] - sample[faces[:, 2]]), axis=1))
|
||||||
|
area_diff = np.abs(area_sample - area_gt)
|
||||||
|
area_diffs.append(area_diff)
|
||||||
|
|
||||||
|
print(np.array(errors).mean())
|
||||||
|
print(np.array(vars).mean())
|
||||||
|
print(np.array(area_diffs).mean())
|
||||||
|
print(area_gt)
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '1'
|
||||||
|
config['name'] = 'abl_10p'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['frames_file'] = 'frames_10p.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_10p_skin'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['frames_file'] = 'frames_10p.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'abl_25p'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['frames_file'] = 'frames_25p.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '1'
|
||||||
|
config['name'] = 'abl_25p_skin'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['frames_file'] = 'frames_25p.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,185 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_32'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/pyr_abl_32_430k'
|
||||||
|
config['pretrained_model_iteration'] = '430000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,185 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_4'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_128'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64, 128]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32_64'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '100000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/128_512_3'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_2'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_4'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_128_256'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64, 128, 256]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32_64_128'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '80000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/256_512'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_3'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_2'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_4'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,191 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_128_256_512'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/abl_2_pyr_32_64_128_256_512'
|
||||||
|
config['pretrained_model_iteration'] = '50000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64, 128, 256, 512]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32_64_128_256'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '70000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['upscale_enhancer_kernel_size'] = 3
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/256_512'#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
level['upscale_enhancer_kernel_size'] = 3
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_3'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
level['upscale_enhancer_kernel_size'] = 3
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_2'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
level['upscale_enhancer_kernel_size'] = 3
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_4'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
level['upscale_enhancer_kernel_size'] = 3
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_128_256_512_norm'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64, 128, 256, 512]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32_64_128_256'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '70000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = ''
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 1.0 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/256_512'#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_3'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_2'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_4'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_128_256_512_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['pyr_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64, 128, 256, 512]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32_64_128_256_skirt'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '70000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = ''
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/256_512_skirt'#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_skirt'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_skirt'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_skirt'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_128_256_512_test'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [256]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'x'
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_00761_0.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_00761_0.txt'
|
||||||
|
config['frames_file_test'] = 'frames_00761_0.txt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_128_256_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['pyr_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64, 128, 256]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32_64_128_skirt'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '80000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/256_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_skirt'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_skirt'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_skirt'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_128_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['pyr_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64, 128]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32_64_skirt'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/128_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_skirt'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_skirt'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,185 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_2'
|
||||||
|
config['notes'] = 'fixed noise handling, don\'t divide output by 100'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_4'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_32_64_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['pyr_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_32_skirt'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_skirt'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,191 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'abl_2_pyr_32_skin'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/pyr_abl_32_skin'
|
||||||
|
config['pretrained_model_iteration'] = '250000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (config['smpl_res'], 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,191 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_2_pyr_32_skin_2'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/pyr_abl_32_430k'
|
||||||
|
config['pretrained_model_iteration'] = '430000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (config['smpl_res'], 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,191 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_2_pyr_32_skin_norm'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
config['tags'] = ['pyr_non_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/pyr_abl_32_skin'
|
||||||
|
config['pretrained_model_iteration'] = '250000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (config['smpl_res'], 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_32_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['pyr_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/pyr_abl_32_skirt_2'
|
||||||
|
config['pretrained_model_iteration'] = '130000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_2_pyr_32_skirt_extra_loss'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['pyr_skirt_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = False # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/pyr_abl_32_extra_loss_skirt'
|
||||||
|
config['pretrained_model_iteration'] = '130000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,191 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'abl_2_pyr_64_128_256_512_cape_f'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_f_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128, 256, 512]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_64_128_256_cape_f'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '40000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = ''
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/256_512_cape_f'#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
level['upscale_enhancer_kernel_size'] = 3
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_cape_f'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
level['upscale_enhancer_kernel_size'] = 3
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_f'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
level['upscale_enhancer_kernel_size'] = 3
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,188 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_2_pyr_64_128_256_512_cape_m'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_m_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128, 256, 512]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_64_128_256_cape_m'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '40000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = ''
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/256_512_cape_m'#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_cape_m'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_m'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,188 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_64_128_256_cape_f'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_f_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128, 256]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_64_128_cape_f'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '40000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/256_512_cape_f'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_cape_f'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_f'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_2_pyr_64_128_256_cape_m'
|
||||||
|
config['notes'] = 'abl_2_pyr_64_128_cape_m at 40k'
|
||||||
|
config['tags'] = ['cape_m_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128, 256]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_64_128_cape_m'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/256_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_cape_m'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_m'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_2_pyr_64_128_256_cape_m_00032_SL'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_m_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128, 256]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_64_128_cape_m_00032_SL'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/256_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_00032_SL_train.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_00032_SL_test.txt'
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_cape_m'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_m'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,188 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_64_128_cape_f'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_f_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_64_cape_f'
|
||||||
|
config['pyramid']['pretrained_pyramid_iteration'] = '70000'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/128_512_cape_f'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_f'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_64_128_cape_m'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_m_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_64_cape_m'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/128_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_m'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'abl_2_pyr_64_128_cape_m_00032_SL'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_m_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/abl_2_pyr_64_cape_m_00032_SL'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/128_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_00032_SL_train.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_00032_SL_test.txt'
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_m'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_64_cape_f'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_f_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/pyr_abl_64_cape_f'
|
||||||
|
config['pretrained_model_iteration'] = '170000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_cape_f'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '1'
|
||||||
|
config['name'] = 'abl_2_pyr_64_cape_f_03223_SS'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_f_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_cape_f'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_03223_SS.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_03223_SS.txt'
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_2_pyr_64_cape_m'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_m_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/pyr_abl_64_cape_m'
|
||||||
|
config['pretrained_model_iteration'] = '170000'
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'abl_2_pyr_64_cape_m_00032_SL'
|
||||||
|
config['notes'] = ''
|
||||||
|
config['tags'] = ['cape_m_2']
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
config['pretrained_model_iteration'] = ''
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_00032_SL_train.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_00032_SL_test.txt'
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_50p_skin'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['frames_file'] = 'frames_50p.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'abl_abs'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'abl_abs_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'abl_all'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'abl_all'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
config['only_curvatures'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'al_all_post'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
# config['frames_file'] = 'frames_dress_30k.txt'
|
||||||
|
# config['frames_file_valid'] = 'frames_dress_30k.txt'
|
||||||
|
# config['frames_file_test'] = 'frames_dress_30k.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/post/static_post_2'
|
||||||
|
config['body_model'] = 'checkpoints/post/body_post_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/post/curv_post_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (config['smpl_res'], 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256, 64]
|
||||||
|
config['cvae']['decoder_depths'] = config['cvae']['encoder_depths']
|
||||||
|
config['cvae']['decoder_dims'] = config['cvae']['encoder_dims']
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae_static'] = dict()
|
||||||
|
config['cond_ae_static']['is_label'] = False
|
||||||
|
config['cond_ae_static']['kernel_size'] = 7
|
||||||
|
config['cond_ae_static']['bottleneck_size'] = 8
|
||||||
|
config['cond_ae_static']['encoder_depths'] = [3, 3, 3, 9, 3]
|
||||||
|
config['cond_ae_static']['encoder_dims'] = [16, 32, 64, 64, config['cond_ae_static']['bottleneck_size']]
|
||||||
|
config['cond_ae_static']['decoder_depths'] = config['cond_ae_static']['encoder_depths']
|
||||||
|
config['cond_ae_static']['decoder_dims'] = config['cond_ae_static']['encoder_dims']
|
||||||
|
config['cond_ae_static']['activation'] = 'tanh'
|
||||||
|
|
||||||
|
config['cond_ae_curv'] = dict()
|
||||||
|
config['cond_ae_curv']['is_label'] = True
|
||||||
|
config['cond_ae_curv']['kernel_size'] = 7
|
||||||
|
config['cond_ae_curv']['bottleneck_size'] = 40
|
||||||
|
config['cond_ae_curv']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae_curv']['encoder_dims'] = [16, 32, 64, 128, config['cond_ae_curv']['bottleneck_size']]
|
||||||
|
config['cond_ae_curv']['decoder_depths'] = config['cond_ae_curv']['encoder_depths']
|
||||||
|
config['cond_ae_curv']['decoder_dims'] = config['cond_ae_curv']['encoder_dims']
|
||||||
|
config['cond_ae_curv']['activation'] = 'tanh'
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['is_label'] = False
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 16
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [16, 32, 64, 128, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_depths'] = config['cond_ae_body']['encoder_depths']
|
||||||
|
config['cond_ae_body']['decoder_dims'] = config['cond_ae_body']['encoder_dims']
|
||||||
|
config['cond_ae_body']['activation'] = 'tanh'
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_all_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_skirt_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = False
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_curv'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = False
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_curv_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_skirt_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = False # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_extra_loss'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = False # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_extra_loss_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_skirt_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
config['block_collision_loss'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'abl_extra_loss_skirt_2'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_skirt_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_norm'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_norm_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_skirt_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_one_hot'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'abl_one_hot_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_skirt_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = False
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_orient'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = False
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '1'
|
||||||
|
config['name'] = 'abl_orient_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_no_shape_skirt_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'abl_overfit'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_00761_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/train'
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_00761.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_00761.txt'
|
||||||
|
config['frames_file_test'] = 'frames_00761.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
config['only_curvatures'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'abl_overfit_dress'
|
||||||
|
config['notes'] = 'remove other conditions from input as well'
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_dress_30k_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_dress_30k.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_dress_30k.txt'
|
||||||
|
config['frames_file_test'] = 'frames_dress_30k.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.01
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
config['only_curvatures'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'abl_overfit_dress_var'
|
||||||
|
config['notes'] = 'remove other conditions from input as well'
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_dress_30k_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_dress_30k.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_dress_30k.txt'
|
||||||
|
config['frames_file_test'] = 'frames_dress_30k.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/abl_overfit_dress'
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 1.0
|
||||||
|
config['balancing_activation_limit'] = 0.013
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
config['only_curvatures'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '1'
|
||||||
|
config['name'] = 'abl_overfit_dress_var_2'
|
||||||
|
config['notes'] = 'remove other conditions from input as well, divide values by 1000 before tanh'
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_dress_30k_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_dress_30k.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_dress_30k.txt'
|
||||||
|
config['frames_file_test'] = 'frames_dress_30k.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.1
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
config['only_curvatures'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '1'
|
||||||
|
config['name'] = 'abl_overfit_dress_var_3'
|
||||||
|
config['notes'] = 'remove other conditions from input as well, divide values by 1000 before tanh, continued from abl_overfit_dress_var_2'
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_dress_30k_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_dress_30k.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_dress_30k.txt'
|
||||||
|
config['frames_file_test'] = 'frames_dress_30k.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/abl_overfit_dress_var_2'
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 1.0
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
config['only_curvatures'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_overfit_jumpsuit'
|
||||||
|
config['notes'] = 'remove other conditions from input as well'
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_jumpsuit_30k_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/train'
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_jumpsuit_30k.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_jumpsuit_30k.txt'
|
||||||
|
config['frames_file_test'] = 'frames_jumpsuit_30k.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.01
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
config['only_curvatures'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
assert ablation_count == 1 or ablation_count == 0
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'abl_overfit_jumpsuit_2'
|
||||||
|
config['notes'] = 'remove other conditions from input as well'
|
||||||
|
|
||||||
|
config['avg_garment_path'] = 'custom_data/train_jumpsuit_30k_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/train'
|
||||||
|
|
||||||
|
config['frames_file'] = 'frames_jumpsuit_30k.txt'
|
||||||
|
config['frames_file_valid'] = 'frames_jumpsuit_30k.txt'
|
||||||
|
config['frames_file_test'] = 'frames_jumpsuit_30k.txt'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.01
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'pyr_abl_32'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,182 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'pyr_abl_32_2'
|
||||||
|
config['notes'] = 'fixed noise handling'
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,180 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'pyr_abl_32_64'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_32_430k'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_2'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_4'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,180 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'pyr_abl_32_64_2'
|
||||||
|
config['notes'] = 'dividing output by 100, not 10'
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_32_430k'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_2'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_4'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'pyr_abl_32_64_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_32_skirt_2'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_skirt'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'pyr_abl_32_64_skirt_2'
|
||||||
|
config['notes'] = 'dividing output by 100, not 10'
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32, 64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_32_skirt_2'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/32_512_skirt'#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'pyr_abl_32_cape_f'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_cape_f'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'pyr_abl_32_cape_m'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'pyr_abl_32_extra_loss_skirt'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,185 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'pyr_abl_32_skin'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['use_offsets'] = False
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (config['smpl_res'], 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = '' #checkpoints/curv_1
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,185 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '5'
|
||||||
|
config['name'] = 'pyr_abl_32_skin_offset'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['use_offsets'] = True
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_4'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (config['smpl_res'], 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['pyramid']['curvature_model'] = '' #checkpoints/curv_1
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'pyr_abl_32_skirt_2'
|
||||||
|
config['notes'] = 'continued from pyr_abl_32_skirt-180k'
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [32]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/32_512_skirt'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = True
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'pyr_abl_64_128_256_512_cape_f'
|
||||||
|
config['notes'] = 'removing activation from last layer and dividing output by 100, 30k pretrained prev level'
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128, 256, 512]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_64_128_256_cape_f_2'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = ''
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/256_512_cape_f'#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_cape_f'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_f'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '0'
|
||||||
|
config['name'] = 'pyr_abl_64_128_256_512_cape_f_2'
|
||||||
|
config['notes'] = 'removing activation from last layer and dividing output by 100, 80k pretrained prev level'
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128, 256, 512]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_64_128_256_cape_f_2'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = ''
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/256_512_cape_f'#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_cape_f'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_f'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'pyr_abl_64_128_256_cape_f_2'
|
||||||
|
config['notes'] = 'removing activation from last layer and dividing output by 100'
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128, 256]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_64_128_cape_f_2'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/256_512_cape_f'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/128_512_cape_f'#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_f'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '4'
|
||||||
|
config['name'] = 'pyr_abl_64_128_cape_f_2'
|
||||||
|
config['notes'] = 'removing activation from last layer and dividing output by 100'
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_64_cape_f'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/128_512_cape_f'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_f'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,183 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '1'
|
||||||
|
config['name'] = 'pyr_abl_64_128_cape_m'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64, 128]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = 'checkpoints/pyr_abl_64_cape_m'
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/128_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
config['pyramid']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = 'checkpoints/64_512_cape_m'#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,181 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'pyr_abl_64_cape_f'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_cape_f'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/female'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/female'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_f'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_f'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_f'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,182 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'pyr_abl_64_cape_m'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK IF SKIRT
|
||||||
|
# DON'T FORGET TO CHECK IF CAPE
|
||||||
|
# DON'T FORGET TO CHECK IF USING DOWNSCALE NONE OR _2
|
||||||
|
# DON'T FORGET TO CHECK UPSCALING and ENCODER CHECKPOINTS
|
||||||
|
|
||||||
|
config['use_skinning'] = True # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = False
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid'] = dict()
|
||||||
|
config['pyramid']['resolutions'] = [64]
|
||||||
|
config['pyramid']['pretrained_pyramid'] = ''
|
||||||
|
config['pyramid']['final_upscale_enhancer'] = 'checkpoints/64_512_cape_m'
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/cape_processed/train/male'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['test_dir'] = '/home/workspace/local-data/cape_processed/test/male'
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['is_cape'] = True
|
||||||
|
|
||||||
|
config['pyramid']['static_model'] = 'checkpoints/static_1_cape_m'
|
||||||
|
config['pyramid']['body_model'] = 'checkpoints/body_1_cape_m'
|
||||||
|
config['pyramid']['curvature_model'] = 'checkpoints/curv_1_cape_m'
|
||||||
|
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['resolution'] = None
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['lr'] = 0.0001
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
config['reg_loss_coeff'] = None # set to 0 if don't want to use edge+collision
|
||||||
|
config['avg_garment_path'] = ''
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_posed': (config['smpl_res'], 3,),
|
||||||
|
'mesh_unposed': (config['smpl_res'], 3,),
|
||||||
|
'uv_unposed': (512, 256, 3),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (config['smpl_res'],),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
config['pyramid']['is_label'] = False
|
||||||
|
config['pyramid']['latent_dim'] = config['latent_dim']
|
||||||
|
config['pyramid']['add_noise'] = True
|
||||||
|
|
||||||
|
config['pyramid']['loss_weights'] = [1,1,1,1,1]
|
||||||
|
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res != 512:
|
||||||
|
res_modifier = '_' + str(res)
|
||||||
|
config['signature_dynamic']['uv_body_posed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_unposed' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_dynamic']['uv_curvature' + res_modifier] = (res, res//2, 7)
|
||||||
|
config['signature_static']['uv_static' + res_modifier] = (res, res//2, 3)
|
||||||
|
config['signature_static']['uv_mask' + res_modifier] = (res, res//2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['pyramid']['freeze_encoders'] = True
|
||||||
|
|
||||||
|
config['pyramid']['levels'] = []
|
||||||
|
for res in config['pyramid']['resolutions']:
|
||||||
|
if res == 512:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 512
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (16, 8, 80)
|
||||||
|
level['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 256:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 256
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 7
|
||||||
|
level['encoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
level['decoder_input'] = (8, 4, 128)
|
||||||
|
level['decoder_depths'] = [9, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d256_512_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 128:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 128
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 128)
|
||||||
|
level['decoder_depths'] = [16, 9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d128_256_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 64:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 64
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 5
|
||||||
|
level['encoder_depths'] = [9, 9, 9]
|
||||||
|
level['encoder_dims'] = [64, 128, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9, 9]
|
||||||
|
level['decoder_dims'] = [256, 128, 64]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#checkpoints/up_3_d64_128_2'
|
||||||
|
level['upscale_enhancer_freeze'] = False
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
elif res == 32:
|
||||||
|
level = dict()
|
||||||
|
level['resolution'] = 32
|
||||||
|
level['latent_dim'] = config['latent_dim']
|
||||||
|
level['kernel_size'] = 3
|
||||||
|
level['encoder_depths'] = [9, 9]
|
||||||
|
level['encoder_dims'] = [256, 256]
|
||||||
|
level['decoder_input'] = (4, 2, 256)
|
||||||
|
level['decoder_depths'] = [9, 9]
|
||||||
|
level['decoder_dims'] = [256, 256]
|
||||||
|
level['avg_garment_path'] = ''
|
||||||
|
level['upscale_enhancer'] = ''#'checkpoints/up_3_d32_64_2'
|
||||||
|
level['upscale_enhancer_freeze'] = True
|
||||||
|
config['pyramid']['levels'].append(level)
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
|
||||||
|
config['gpu'] = '6'
|
||||||
|
config['name'] = 'abl_skin'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = False
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'abl_skin_no_orient'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = True
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'abl_skin_norm'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = True
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
config_a = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config_a['use_skinning'] = False # and deshaping
|
||||||
|
config_a['remove_global_orientation'] = True
|
||||||
|
config_a['use_curvature'] = True
|
||||||
|
config_a['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config_a['use_offsets'] = True
|
||||||
|
|
||||||
|
config_a['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config_a['use_skinning'], config_a['remove_global_orientation'], config_a['use_curvature'], config_a['use_extra_losses'], config_a['use_offsets']].count(False)
|
||||||
|
|
||||||
|
config_a['gpu'] = '4'
|
||||||
|
config_a['name'] = 'abl_skin_skirt'
|
||||||
|
config_a['notes'] = ''
|
||||||
|
|
||||||
|
config_a['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config_a['use_skinning']:
|
||||||
|
assert (config_a['use_offsets'] and config_a['avg_garment_path'] != '') or (not config_a['use_offsets'] and config_a['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config_a['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config_a['batch_size'] = 4
|
||||||
|
config_a['resolution'] = 512
|
||||||
|
config_a['is_skirt'] = True
|
||||||
|
config_a['dataset_in_memory'] = False
|
||||||
|
config_a['is_cape'] = False
|
||||||
|
|
||||||
|
config_a['train_dir'] = '/home/workspace/local-data/train_skirt'
|
||||||
|
config_a['valid_dir'] = '/home/workspace/local-data/valid_skirt'
|
||||||
|
config_a['test_dir'] = '/home/workspace/data/dataset/test_skirt_ready_2'
|
||||||
|
|
||||||
|
config_a['static_model'] = 'checkpoints/static_1_skirt'
|
||||||
|
config_a['body_model'] = 'checkpoints/body_1_skirt_2_2'
|
||||||
|
config_a['curvature_model'] = 'checkpoints/curv_1_skirt'
|
||||||
|
|
||||||
|
|
||||||
|
config_a['smpl_res'] = 14475
|
||||||
|
if config_a['is_cape']:
|
||||||
|
config_a['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config_a['latent_dim'] = 128
|
||||||
|
|
||||||
|
config_a['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config_a['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config_a['starting_balancing_coeff'] = 0.0001
|
||||||
|
|
||||||
|
config_a['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config_a['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config_a['use_skinning']:
|
||||||
|
config_a['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config_a['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config_a['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config_a['upscale_enhancer'] = ''
|
||||||
|
config_a['freeze_encoders'] = True
|
||||||
|
config_a['use_one_hot'] = False
|
||||||
|
|
||||||
|
config_a['cvae'] = dict()
|
||||||
|
config_a['cvae']['is_label'] = False
|
||||||
|
config_a['cvae']['latent_dim'] = config_a['latent_dim']
|
||||||
|
config_a['cvae']['add_noise'] = True
|
||||||
|
config_a['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config_a['cvae']['kernel_size'] = 7
|
||||||
|
config_a['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config_a['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config_a['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config_a['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config_a['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config_a['cond_ae'] = dict()
|
||||||
|
config_a['cond_ae']['is_label'] = False
|
||||||
|
config_a['cond_ae']['upscale_output'] = False
|
||||||
|
config_a['cond_ae']['latent_dim'] = config_a['latent_dim']
|
||||||
|
config_a['cond_ae']['kernel_size'] = 7
|
||||||
|
config_a['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config_a['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config_a['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config_a['cond_ae']['bottleneck_size']]
|
||||||
|
config_a['cond_ae']['decoder_input'] = (8, 4, config_a['cond_ae']['bottleneck_size'])
|
||||||
|
config_a['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config_a['cond_ae']['decoder_dims'] = [config_a['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config_a['cond_ae_body'] = dict()
|
||||||
|
config_a['cond_ae_body']['latent_dim'] = config_a['latent_dim']
|
||||||
|
config_a['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config_a['cond_ae_body']['upscale_output'] = True
|
||||||
|
config_a['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config_a['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config_a['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config_a['cond_ae_body']['bottleneck_size']]
|
||||||
|
config_a['cond_ae_body']['decoder_input'] = (4, 2, config_a['cond_ae_body']['bottleneck_size'])
|
||||||
|
config_a['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config_a['cond_ae_body']['decoder_dims'] = [config_a['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'abl_skin_var'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.01
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = False
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'abl_skin_var_2'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/abl_skin'
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.01
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = False
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
|
||||||
|
config['gpu'] = '3'
|
||||||
|
config['name'] = 'abl_skin_var_3'
|
||||||
|
config['notes'] = ''
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = 'checkpoints/abl_skin'
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 1.0
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = False
|
||||||
|
config['cvae']['noise_amount'] = 0.025
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
config = dict()
|
||||||
|
|
||||||
|
# DON'T FORGET TO RESET SSIM LOSS USAGE
|
||||||
|
# DON'T FORGET TO CHECK MODEL LOADING
|
||||||
|
# DON'T FORGET TO CHECK IF STORE IN MEMORY
|
||||||
|
# DON'T FORGET TO CHECK REG LOSS COEFF
|
||||||
|
# DON'T FORGET TO LOAD FINAL UPSCALER UNLESS HAVE LEVEL 512
|
||||||
|
# DON'T FORGET TO CHECK AVG GARMENT USED
|
||||||
|
|
||||||
|
config['use_skinning'] = False # and deshaping
|
||||||
|
config['remove_global_orientation'] = True
|
||||||
|
config['use_curvature'] = True
|
||||||
|
config['use_extra_losses'] = True # edge, collision, 3d mesh
|
||||||
|
config['use_offsets'] = True
|
||||||
|
|
||||||
|
config['use_norm_loss'] = False
|
||||||
|
|
||||||
|
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
|
||||||
|
|
||||||
|
config['gpu'] = '2'
|
||||||
|
config['name'] = 'abl_skin_var_4'
|
||||||
|
config['notes'] = 'lower noise, don\'t increase balancing coeff'
|
||||||
|
|
||||||
|
config['avg_garment_path'] = '' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
|
||||||
|
if config['use_skinning']:
|
||||||
|
assert (config['use_offsets'] and config['avg_garment_path'] != '') or (not config['use_offsets'] and config['avg_garment_path'] == '')
|
||||||
|
|
||||||
|
config['reg_loss_coeff'] = 0.1 # set to 0 if don't want to use edge+collision
|
||||||
|
|
||||||
|
config['batch_size'] = 4
|
||||||
|
config['resolution'] = 512
|
||||||
|
config['is_skirt'] = False
|
||||||
|
config['dataset_in_memory'] = False
|
||||||
|
config['is_cape'] = False
|
||||||
|
|
||||||
|
config['train_dir'] = '/home/workspace/local-data/train'
|
||||||
|
config['valid_dir'] = '/home/workspace/local-data/valid'
|
||||||
|
config['test_dir'] = '/home/workspace/data/dataset/test_ready'
|
||||||
|
|
||||||
|
config['static_model'] = 'checkpoints/static_1'
|
||||||
|
config['body_model'] = 'checkpoints/body_1'
|
||||||
|
config['curvature_model'] = 'checkpoints/curv_1'
|
||||||
|
|
||||||
|
|
||||||
|
config['smpl_res'] = 14475
|
||||||
|
if config['is_cape']:
|
||||||
|
config['smpl_res'] = 3638
|
||||||
|
|
||||||
|
config['latent_dim'] = 128
|
||||||
|
|
||||||
|
config['pretrained_model'] = ''
|
||||||
|
|
||||||
|
###############
|
||||||
|
config['lr'] = 0.0001# 0.0001
|
||||||
|
###############
|
||||||
|
config['starting_balancing_coeff'] = 0.01
|
||||||
|
config['balancing_activation_limit'] = 0.0
|
||||||
|
|
||||||
|
config['signature_dynamic'] = { 'id': (), 'frame_nr': (),
|
||||||
|
'pose_shape': (72 + 11,),
|
||||||
|
'uv_body_posed': (512, 256, 3),
|
||||||
|
'mesh_body_posed': (14475, 3,),
|
||||||
|
'mesh_posed': (14475, 3,),
|
||||||
|
'uv_curvature': (512, 256, 7),
|
||||||
|
}
|
||||||
|
config['signature_static'] = { 'uv_static': (512, 256, 3),
|
||||||
|
'mesh_mask': (14475,),
|
||||||
|
'uv_mask': (512, 256,),
|
||||||
|
}
|
||||||
|
|
||||||
|
if config['use_skinning']:
|
||||||
|
config['signature_dynamic']['uv_unposed'] = (512, 256, 3)
|
||||||
|
config['signature_dynamic']['mesh_unposed'] = (14475, 3,)
|
||||||
|
else:
|
||||||
|
config['signature_dynamic']['uv_posed'] = (512, 256, 3)
|
||||||
|
|
||||||
|
|
||||||
|
config['upscale_enhancer'] = ''
|
||||||
|
config['freeze_encoders'] = True
|
||||||
|
config['use_one_hot'] = False
|
||||||
|
|
||||||
|
config['cvae'] = dict()
|
||||||
|
config['cvae']['is_label'] = False
|
||||||
|
config['cvae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cvae']['add_noise'] = False
|
||||||
|
config['cvae']['noise_amount'] = 0.001
|
||||||
|
|
||||||
|
config['cvae']['kernel_size'] = 7
|
||||||
|
config['cvae']['encoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['encoder_dims'] = [32, 64, 128, 256]
|
||||||
|
config['cvae']['decoder_input'] = (16, 8, 80)
|
||||||
|
config['cvae']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cvae']['decoder_dims'] = [256, 128, 64, 16]
|
||||||
|
|
||||||
|
|
||||||
|
config['cond_ae'] = dict()
|
||||||
|
config['cond_ae']['is_label'] = False
|
||||||
|
config['cond_ae']['upscale_output'] = False
|
||||||
|
config['cond_ae']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae']['kernel_size'] = 7
|
||||||
|
config['cond_ae']['bottleneck_size'] = 64
|
||||||
|
config['cond_ae']['encoder_depths'] = [3, 3, 9, 9, 3]
|
||||||
|
config['cond_ae']['encoder_dims'] = [32, 64, 128, 256, config['cond_ae']['bottleneck_size']]
|
||||||
|
config['cond_ae']['decoder_input'] = (8, 4, config['cond_ae']['bottleneck_size'])
|
||||||
|
config['cond_ae']['decoder_depths'] = [3, 3, 9, 3, 3]
|
||||||
|
config['cond_ae']['decoder_dims'] = [config['cond_ae']['bottleneck_size'], 256, 128, 64, 16]
|
||||||
|
|
||||||
|
config['cond_ae_body'] = dict()
|
||||||
|
config['cond_ae_body']['latent_dim'] = config['latent_dim']
|
||||||
|
config['cond_ae_body']['kernel_size'] = 7
|
||||||
|
config['cond_ae_body']['upscale_output'] = True
|
||||||
|
config['cond_ae_body']['bottleneck_size'] = 512
|
||||||
|
config['cond_ae_body']['encoder_depths'] = [3, 3, 9, 9, 3, 3]
|
||||||
|
config['cond_ae_body']['encoder_dims'] = [32, 64, 128, 256, 256, config['cond_ae_body']['bottleneck_size']]
|
||||||
|
config['cond_ae_body']['decoder_input'] = (4, 2, config['cond_ae_body']['bottleneck_size'])
|
||||||
|
config['cond_ae_body']['decoder_depths'] = [3, 3, 9, 3]
|
||||||
|
config['cond_ae_body']['decoder_dims'] = [config['cond_ae_body']['bottleneck_size'], 128, 64, 16]
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user