nikunjkdtechnoland
commited on
Commit
·
518eb4f
1
Parent(s):
4604172
config add
Browse files- configs/config.yaml +49 -0
- configs/test.yaml +48 -0
configs/config.yaml
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# data parameters
|
| 2 |
+
dataset_name: imagenet
|
| 3 |
+
data_with_subfolder: True
|
| 4 |
+
train_data_path: /media/ouc/4T_A/datasets/ImageNet/ILSVRC2012_img_train/
|
| 5 |
+
val_data_path:
|
| 6 |
+
resume:
|
| 7 |
+
batch_size: 48
|
| 8 |
+
image_shape: [256, 256, 3]
|
| 9 |
+
mask_shape: [128, 128]
|
| 10 |
+
mask_batch_same: True
|
| 11 |
+
max_delta_shape: [32, 32]
|
| 12 |
+
margin: [0, 0]
|
| 13 |
+
discounted_mask: True
|
| 14 |
+
spatial_discounting_gamma: 0.9
|
| 15 |
+
random_crop: True
|
| 16 |
+
mask_type: hole # hole | mosaic
|
| 17 |
+
mosaic_unit_size: 12
|
| 18 |
+
|
| 19 |
+
# training parameters
|
| 20 |
+
expname: benchmark
|
| 21 |
+
cuda: False
|
| 22 |
+
gpu_ids: [0, 1, 2] # set the GPU ids to use, e.g. [0] or [1, 2]
|
| 23 |
+
num_workers: 4
|
| 24 |
+
lr: 0.0001
|
| 25 |
+
beta1: 0.5
|
| 26 |
+
beta2: 0.9
|
| 27 |
+
n_critic: 5
|
| 28 |
+
niter: 500000
|
| 29 |
+
print_iter: 100
|
| 30 |
+
viz_iter: 1000
|
| 31 |
+
viz_max_out: 16
|
| 32 |
+
snapshot_save_iter: 5000
|
| 33 |
+
|
| 34 |
+
# loss weight
|
| 35 |
+
coarse_l1_alpha: 1.2
|
| 36 |
+
l1_loss_alpha: 1.2
|
| 37 |
+
ae_loss_alpha: 1.2
|
| 38 |
+
global_wgan_loss_alpha: 1.
|
| 39 |
+
gan_loss_alpha: 0.001
|
| 40 |
+
wgan_gp_lambda: 10
|
| 41 |
+
|
| 42 |
+
# network parameters
|
| 43 |
+
netG:
|
| 44 |
+
input_dim: 3
|
| 45 |
+
ngf: 32
|
| 46 |
+
|
| 47 |
+
netD:
|
| 48 |
+
input_dim: 3
|
| 49 |
+
ndf: 64
|
configs/test.yaml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# data parameters
|
| 2 |
+
dataset_name: imagenet
|
| 3 |
+
data_with_subfolder: True
|
| 4 |
+
train_data_path: /media/ouc/4T_B/DuAngAng/datasets/ImageNet/ILSVRC2012_img_train/
|
| 5 |
+
val_data_path:
|
| 6 |
+
resume:
|
| 7 |
+
batch_size: 48
|
| 8 |
+
image_shape: [256, 256, 3]
|
| 9 |
+
mask_shape: [128, 128]
|
| 10 |
+
mask_batch_same: True
|
| 11 |
+
max_delta_shape: [32, 32]
|
| 12 |
+
margin: [0, 0]
|
| 13 |
+
discounted_mask: True
|
| 14 |
+
spatial_discounting_gamma: 0.9
|
| 15 |
+
random_crop: True
|
| 16 |
+
mask_type: hole # hole | mosaic
|
| 17 |
+
mosaic_unit_size: 12
|
| 18 |
+
|
| 19 |
+
# training parameters
|
| 20 |
+
expname: benchmark
|
| 21 |
+
cuda: False
|
| 22 |
+
gpu_ids: [0, 1, 2] # set the GPU ids to use, e.g. [0] or [1, 2]
|
| 23 |
+
num_workers: 4
|
| 24 |
+
lr: 0.0001
|
| 25 |
+
beta1: 0.5
|
| 26 |
+
beta2: 0.9
|
| 27 |
+
niter: 500000
|
| 28 |
+
print_iter: 100
|
| 29 |
+
viz_iter: 1000
|
| 30 |
+
viz_max_out: 16
|
| 31 |
+
snapshot_save_iter: 5000
|
| 32 |
+
|
| 33 |
+
# loss weight
|
| 34 |
+
coarse_l1_alpha: 1.2
|
| 35 |
+
l1_loss_alpha: 1.2
|
| 36 |
+
ae_loss_alpha: 1.2
|
| 37 |
+
global_wgan_loss_alpha: 1.
|
| 38 |
+
gan_loss_alpha: 0.001
|
| 39 |
+
wgan_gp_lambda: 10
|
| 40 |
+
|
| 41 |
+
# network parameters
|
| 42 |
+
netG:
|
| 43 |
+
input_dim: 5
|
| 44 |
+
ngf: 32
|
| 45 |
+
|
| 46 |
+
netD:
|
| 47 |
+
input_dim: 3
|
| 48 |
+
ndf: 64
|