checkpoint: update KhangTruong/Testing-model (periodic at epoch 4, step 7)
Browse files- README.md +3 -3
- checkpoints/checkpoint_best.pt +2 -2
- checkpoints/checkpoint_best_config.yaml +67 -50
- checkpoints/checkpoint_latest.pt +2 -2
- checkpoints/checkpoint_latest_config.yaml +74 -39
- checkpoints/checkpoint_periodic.pt +2 -2
- checkpoints/checkpoint_periodic_config.yaml +74 -39
- checkpoints/effective_config.yaml +70 -35
- config.yaml +74 -39
- manifest.json +6 -5
- versions/v1/checkpoint_best_config.yaml +67 -50
- versions/v1/checkpoint_latest_config.yaml +74 -39
- versions/v1/checkpoint_periodic_config.yaml +74 -39
- versions/v1/checkpoints/checkpoint_best.pt +2 -2
- versions/v1/checkpoints/checkpoint_latest.pt +2 -2
- versions/v1/checkpoints/checkpoint_periodic.pt +2 -2
- versions/v1/effective_config.yaml +70 -35
- versions/v1/manifest.json +6 -5
README.md
CHANGED
|
@@ -18,11 +18,11 @@ Official repository for **Testing-model** checkpoints, evaluated on AI-generated
|
|
| 18 |
|
| 19 |
| Version | Best Metric Score | Best Epoch | Updated |
|
| 20 |
| :--- | :--- | :--- | :--- |
|
| 21 |
-
| `v1` | 0.
|
| 22 |
|
| 23 |
- **Active Version:** `v1`
|
| 24 |
-
- **Best Validation Score:** `0.
|
| 25 |
-
- **Total Training Epochs:** `
|
| 26 |
|
| 27 |
---
|
| 28 |
|
|
|
|
| 18 |
|
| 19 |
| Version | Best Metric Score | Best Epoch | Updated |
|
| 20 |
| :--- | :--- | :--- | :--- |
|
| 21 |
+
| `v1` | 0.15213540285745106 | 10 | 2026-10-06 |
|
| 22 |
|
| 23 |
- **Active Version:** `v1`
|
| 24 |
+
- **Best Validation Score:** `0.15213540285745106` (Epoch `10`)
|
| 25 |
+
- **Total Training Epochs:** `10`
|
| 26 |
|
| 27 |
---
|
| 28 |
|
checkpoints/checkpoint_best.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7537716ccfb7cc5c6743eac53dcc70f8ccb9d968c1baaf5b9db58324f2030a71
|
| 3 |
+
size 839778939
|
checkpoints/checkpoint_best_config.yaml
CHANGED
|
@@ -1,61 +1,92 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
-
hub_repo: null
|
| 7 |
-
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
streaming: false
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
| 32 |
-
|
| 33 |
-
num_gpus: 1
|
| 34 |
-
_batch_size_scaled: true
|
| 35 |
model:
|
| 36 |
-
name:
|
| 37 |
in_channels: 3
|
| 38 |
out_channels: 1
|
| 39 |
features:
|
| 40 |
-
-
|
| 41 |
-
-
|
|
|
|
|
|
|
| 42 |
bilinear: true
|
| 43 |
-
dropout: 0.
|
| 44 |
-
aux_classifier:
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
loss:
|
| 48 |
mask_loss_type: combined
|
| 49 |
bce_weight: 0.5
|
| 50 |
dice_weight: 0.5
|
| 51 |
focal_weight: 0.5
|
| 52 |
focal_gamma: 2.0
|
| 53 |
-
focal_alpha: 0.
|
| 54 |
aux_loss_type: cross_entropy
|
| 55 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 56 |
training:
|
| 57 |
-
epochs:
|
| 58 |
-
learning_rate: 0.
|
| 59 |
weight_decay: 0.0001
|
| 60 |
optimizer: adamw
|
| 61 |
use_8bit_optimizer: false
|
|
@@ -63,41 +94,27 @@ training:
|
|
| 63 |
fallback_to_16bit: true
|
| 64 |
fallback_on_unsupported_8bit: true
|
| 65 |
scheduler: cosine
|
| 66 |
-
resume_lr_mode: auto
|
| 67 |
-
resume_lr: null
|
| 68 |
warmup_epochs: 1
|
| 69 |
min_lr: 1.0e-06
|
| 70 |
grad_clip_norm: 1.0
|
| 71 |
-
amp:
|
| 72 |
-
gradient_accumulation_steps:
|
| 73 |
-
data_parallel: false
|
| 74 |
-
use_hard_mining: false
|
| 75 |
auto_batch_size: true
|
| 76 |
empty_cache_per_epoch: true
|
| 77 |
save_best: true
|
| 78 |
save_latest: true
|
| 79 |
-
checkpoint_period:
|
| 80 |
eval_interval: 1
|
| 81 |
-
early_stopping_patience:
|
| 82 |
early_stopping_metric: val_iou
|
| 83 |
early_stopping_mode: max
|
| 84 |
-
push_to_hub: true
|
| 85 |
-
hub_repo: KhangTruong/Testing-model
|
| 86 |
-
hub_version: v1
|
| 87 |
-
batch_size: 2
|
| 88 |
-
hf_repo: KhangTruong/Testing-model
|
| 89 |
-
num_gpus: 1
|
| 90 |
-
hard_mining:
|
| 91 |
-
enabled: false
|
| 92 |
-
metric: median
|
| 93 |
-
reset_epochs: 5
|
| 94 |
bootstrapping:
|
| 95 |
enabled: false
|
| 96 |
run_bootstrap: false
|
| 97 |
-
epochs:
|
| 98 |
num_samples: 512
|
| 99 |
batch_size: null
|
| 100 |
-
learning_rate:
|
| 101 |
freeze_strategy: channel_stream
|
| 102 |
stream_ratio: 0.5
|
| 103 |
release_mode: restore
|
|
@@ -108,7 +125,7 @@ bootstrapping:
|
|
| 108 |
early_stopping: false
|
| 109 |
patience: 3
|
| 110 |
logging:
|
| 111 |
-
log_interval:
|
| 112 |
log_memory: true
|
| 113 |
measure_network: true
|
| 114 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
|
|
|
|
|
|
| 6 |
data:
|
| 7 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 8 |
streaming: false
|
| 9 |
image_size:
|
| 10 |
+
- 256
|
| 11 |
+
- 256
|
| 12 |
+
batch_size: 8
|
| 13 |
+
num_workers: 2
|
| 14 |
+
pin_memory: true
|
| 15 |
+
shuffle_buffer_size: 32
|
| 16 |
train_split: train
|
| 17 |
val_split: validation
|
| 18 |
+
test_split: validation
|
| 19 |
+
eval_split: validation
|
| 20 |
+
train_samples_per_epoch: -1
|
| 21 |
val_samples_per_epoch: -1
|
| 22 |
+
val_samples: -1
|
| 23 |
+
test_samples: -1
|
| 24 |
evaluate_on_test: true
|
| 25 |
augmentations:
|
| 26 |
horizontal_flip: 0.5
|
| 27 |
vertical_flip: 0.0
|
| 28 |
+
random_rotate90: 0.25
|
| 29 |
color_jitter: 0.0
|
| 30 |
+
prefetch_batches: 48
|
|
|
|
|
|
|
| 31 |
model:
|
| 32 |
+
name: diffusion_diff_minimized
|
| 33 |
in_channels: 3
|
| 34 |
out_channels: 1
|
| 35 |
features:
|
| 36 |
+
- 64
|
| 37 |
+
- 128
|
| 38 |
+
- 256
|
| 39 |
+
- 512
|
| 40 |
bilinear: true
|
| 41 |
+
dropout: 0.1
|
| 42 |
+
aux_classifier: true
|
| 43 |
num_classes: 3
|
| 44 |
gradient_checkpointing: false
|
| 45 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 46 |
+
vae_subfolder: vae
|
| 47 |
+
unet_subfolder: unet
|
| 48 |
+
diffuser_fp16: true
|
| 49 |
+
device_map: cuda
|
| 50 |
+
freeze_encoder: true
|
| 51 |
+
use_encoder_skips: false
|
| 52 |
+
use_perpendicular_skips: true
|
| 53 |
+
timesteps:
|
| 54 |
+
- 250
|
| 55 |
+
timestep_embed_dim: 32
|
| 56 |
+
sigma_embed_dim: 32
|
| 57 |
+
include_noisy_latents: true
|
| 58 |
+
include_added_noise: true
|
| 59 |
+
include_predicted_noise: true
|
| 60 |
+
include_noise_diff: true
|
| 61 |
+
include_z0: true
|
| 62 |
+
scaling_factor: 0.18215
|
| 63 |
+
decoder:
|
| 64 |
+
channels:
|
| 65 |
+
- 256
|
| 66 |
+
- 128
|
| 67 |
+
- 64
|
| 68 |
+
- 32
|
| 69 |
+
upsample_mode: bilinear
|
| 70 |
+
norm_layer: batchnorm
|
| 71 |
+
z_norm: groupnorm
|
| 72 |
+
activation: silu
|
| 73 |
+
dropout: 0.1
|
| 74 |
+
num_res_blocks: 1
|
| 75 |
+
input_rescale: true
|
| 76 |
loss:
|
| 77 |
mask_loss_type: combined
|
| 78 |
bce_weight: 0.5
|
| 79 |
dice_weight: 0.5
|
| 80 |
focal_weight: 0.5
|
| 81 |
focal_gamma: 2.0
|
| 82 |
+
focal_alpha: 0.75
|
| 83 |
aux_loss_type: cross_entropy
|
| 84 |
aux_weight: 0.2
|
| 85 |
+
pos_weight: 1.0
|
| 86 |
+
aux_classifier: true
|
| 87 |
training:
|
| 88 |
+
epochs: 10
|
| 89 |
+
learning_rate: 0.0003
|
| 90 |
weight_decay: 0.0001
|
| 91 |
optimizer: adamw
|
| 92 |
use_8bit_optimizer: false
|
|
|
|
| 94 |
fallback_to_16bit: true
|
| 95 |
fallback_on_unsupported_8bit: true
|
| 96 |
scheduler: cosine
|
|
|
|
|
|
|
| 97 |
warmup_epochs: 1
|
| 98 |
min_lr: 1.0e-06
|
| 99 |
grad_clip_norm: 1.0
|
| 100 |
+
amp: true
|
| 101 |
+
gradient_accumulation_steps: 4
|
|
|
|
|
|
|
| 102 |
auto_batch_size: true
|
| 103 |
empty_cache_per_epoch: true
|
| 104 |
save_best: true
|
| 105 |
save_latest: true
|
| 106 |
+
checkpoint_period: 1
|
| 107 |
eval_interval: 1
|
| 108 |
+
early_stopping_patience: 4
|
| 109 |
early_stopping_metric: val_iou
|
| 110 |
early_stopping_mode: max
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
bootstrapping:
|
| 112 |
enabled: false
|
| 113 |
run_bootstrap: false
|
| 114 |
+
epochs: 30
|
| 115 |
num_samples: 512
|
| 116 |
batch_size: null
|
| 117 |
+
learning_rate: 0.0005
|
| 118 |
freeze_strategy: channel_stream
|
| 119 |
stream_ratio: 0.5
|
| 120 |
release_mode: restore
|
|
|
|
| 125 |
early_stopping: false
|
| 126 |
patience: 3
|
| 127 |
logging:
|
| 128 |
+
log_interval: 20
|
| 129 |
log_memory: true
|
| 130 |
measure_network: true
|
| 131 |
post_processing:
|
checkpoints/checkpoint_latest.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91dc74c0b4bf4bdf528d475eabe0448157f00a7da3e9fc1a3822cd6cd364d465
|
| 3 |
+
size 822846163
|
checkpoints/checkpoint_latest_config.yaml
CHANGED
|
@@ -1,61 +1,97 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
-
streaming:
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
| 32 |
-
|
| 33 |
-
|
|
|
|
| 34 |
_batch_size_scaled: true
|
| 35 |
model:
|
| 36 |
-
name:
|
| 37 |
in_channels: 3
|
| 38 |
out_channels: 1
|
| 39 |
features:
|
| 40 |
-
-
|
| 41 |
-
-
|
|
|
|
|
|
|
| 42 |
bilinear: true
|
| 43 |
-
dropout: 0.
|
| 44 |
-
aux_classifier:
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
loss:
|
| 48 |
mask_loss_type: combined
|
| 49 |
bce_weight: 0.5
|
| 50 |
dice_weight: 0.5
|
| 51 |
focal_weight: 0.5
|
| 52 |
focal_gamma: 2.0
|
| 53 |
-
focal_alpha: 0.
|
| 54 |
aux_loss_type: cross_entropy
|
| 55 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 56 |
training:
|
| 57 |
-
epochs:
|
| 58 |
-
learning_rate: 0.
|
| 59 |
weight_decay: 0.0001
|
| 60 |
optimizer: adamw
|
| 61 |
use_8bit_optimizer: false
|
|
@@ -68,36 +104,35 @@ training:
|
|
| 68 |
warmup_epochs: 1
|
| 69 |
min_lr: 1.0e-06
|
| 70 |
grad_clip_norm: 1.0
|
| 71 |
-
amp:
|
| 72 |
-
gradient_accumulation_steps:
|
| 73 |
-
data_parallel:
|
| 74 |
-
use_hard_mining:
|
| 75 |
auto_batch_size: true
|
| 76 |
empty_cache_per_epoch: true
|
| 77 |
save_best: true
|
| 78 |
save_latest: true
|
| 79 |
-
checkpoint_period:
|
| 80 |
eval_interval: 1
|
| 81 |
-
early_stopping_patience:
|
| 82 |
early_stopping_metric: val_iou
|
| 83 |
early_stopping_mode: max
|
| 84 |
push_to_hub: true
|
| 85 |
hub_repo: KhangTruong/Testing-model
|
| 86 |
hub_version: v1
|
| 87 |
-
batch_size: 2
|
| 88 |
hf_repo: KhangTruong/Testing-model
|
| 89 |
-
num_gpus:
|
| 90 |
hard_mining:
|
| 91 |
-
enabled:
|
| 92 |
metric: median
|
| 93 |
reset_epochs: 5
|
| 94 |
bootstrapping:
|
| 95 |
enabled: false
|
| 96 |
run_bootstrap: false
|
| 97 |
-
epochs:
|
| 98 |
num_samples: 512
|
| 99 |
batch_size: null
|
| 100 |
-
learning_rate:
|
| 101 |
freeze_strategy: channel_stream
|
| 102 |
stream_ratio: 0.5
|
| 103 |
release_mode: restore
|
|
@@ -108,7 +143,7 @@ bootstrapping:
|
|
| 108 |
early_stopping: false
|
| 109 |
patience: 3
|
| 110 |
logging:
|
| 111 |
-
log_interval:
|
| 112 |
log_memory: true
|
| 113 |
measure_network: true
|
| 114 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 10 |
+
streaming: true
|
| 11 |
image_size:
|
| 12 |
+
- 256
|
| 13 |
+
- 256
|
| 14 |
+
batch_size: 128
|
| 15 |
+
num_workers: -1
|
| 16 |
+
pin_memory: true
|
| 17 |
+
shuffle_buffer_size: 32
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
+
test_split: validation
|
| 21 |
+
eval_split: validation
|
| 22 |
+
train_samples_per_epoch: -1
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
+
val_samples: -1
|
| 25 |
+
test_samples: -1
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
+
random_rotate90: 0.25
|
| 31 |
color_jitter: 0.0
|
| 32 |
+
prefetch_batches: 48
|
| 33 |
+
base_batch_size: 128
|
| 34 |
+
num_gpus: 2
|
| 35 |
_batch_size_scaled: true
|
| 36 |
model:
|
| 37 |
+
name: diffusion_diff_minimized
|
| 38 |
in_channels: 3
|
| 39 |
out_channels: 1
|
| 40 |
features:
|
| 41 |
+
- 64
|
| 42 |
+
- 128
|
| 43 |
+
- 256
|
| 44 |
+
- 512
|
| 45 |
bilinear: true
|
| 46 |
+
dropout: 0.1
|
| 47 |
+
aux_classifier: true
|
| 48 |
num_classes: 3
|
| 49 |
gradient_checkpointing: false
|
| 50 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 51 |
+
vae_subfolder: vae
|
| 52 |
+
unet_subfolder: unet
|
| 53 |
+
diffuser_fp16: true
|
| 54 |
+
device_map: cuda
|
| 55 |
+
freeze_encoder: true
|
| 56 |
+
use_encoder_skips: false
|
| 57 |
+
use_perpendicular_skips: true
|
| 58 |
+
timesteps:
|
| 59 |
+
- 250
|
| 60 |
+
timestep_embed_dim: 32
|
| 61 |
+
sigma_embed_dim: 32
|
| 62 |
+
include_noisy_latents: true
|
| 63 |
+
include_added_noise: true
|
| 64 |
+
include_predicted_noise: true
|
| 65 |
+
include_noise_diff: true
|
| 66 |
+
include_z0: true
|
| 67 |
+
scaling_factor: 0.18215
|
| 68 |
+
decoder:
|
| 69 |
+
channels:
|
| 70 |
+
- 256
|
| 71 |
+
- 128
|
| 72 |
+
- 64
|
| 73 |
+
- 32
|
| 74 |
+
upsample_mode: bilinear
|
| 75 |
+
norm_layer: batchnorm
|
| 76 |
+
z_norm: groupnorm
|
| 77 |
+
activation: silu
|
| 78 |
+
dropout: 0.1
|
| 79 |
+
num_res_blocks: 1
|
| 80 |
+
input_rescale: true
|
| 81 |
loss:
|
| 82 |
mask_loss_type: combined
|
| 83 |
bce_weight: 0.5
|
| 84 |
dice_weight: 0.5
|
| 85 |
focal_weight: 0.5
|
| 86 |
focal_gamma: 2.0
|
| 87 |
+
focal_alpha: 0.75
|
| 88 |
aux_loss_type: cross_entropy
|
| 89 |
aux_weight: 0.2
|
| 90 |
+
pos_weight: 1.0
|
| 91 |
+
aux_classifier: true
|
| 92 |
training:
|
| 93 |
+
epochs: 40
|
| 94 |
+
learning_rate: 0.0003
|
| 95 |
weight_decay: 0.0001
|
| 96 |
optimizer: adamw
|
| 97 |
use_8bit_optimizer: false
|
|
|
|
| 104 |
warmup_epochs: 1
|
| 105 |
min_lr: 1.0e-06
|
| 106 |
grad_clip_norm: 1.0
|
| 107 |
+
amp: true
|
| 108 |
+
gradient_accumulation_steps: 4
|
| 109 |
+
data_parallel: true
|
| 110 |
+
use_hard_mining: true
|
| 111 |
auto_batch_size: true
|
| 112 |
empty_cache_per_epoch: true
|
| 113 |
save_best: true
|
| 114 |
save_latest: true
|
| 115 |
+
checkpoint_period: 2m
|
| 116 |
eval_interval: 1
|
| 117 |
+
early_stopping_patience: 4
|
| 118 |
early_stopping_metric: val_iou
|
| 119 |
early_stopping_mode: max
|
| 120 |
push_to_hub: true
|
| 121 |
hub_repo: KhangTruong/Testing-model
|
| 122 |
hub_version: v1
|
|
|
|
| 123 |
hf_repo: KhangTruong/Testing-model
|
| 124 |
+
num_gpus: 2
|
| 125 |
hard_mining:
|
| 126 |
+
enabled: true
|
| 127 |
metric: median
|
| 128 |
reset_epochs: 5
|
| 129 |
bootstrapping:
|
| 130 |
enabled: false
|
| 131 |
run_bootstrap: false
|
| 132 |
+
epochs: 30
|
| 133 |
num_samples: 512
|
| 134 |
batch_size: null
|
| 135 |
+
learning_rate: 0.0005
|
| 136 |
freeze_strategy: channel_stream
|
| 137 |
stream_ratio: 0.5
|
| 138 |
release_mode: restore
|
|
|
|
| 143 |
early_stopping: false
|
| 144 |
patience: 3
|
| 145 |
logging:
|
| 146 |
+
log_interval: 20
|
| 147 |
log_memory: true
|
| 148 |
measure_network: true
|
| 149 |
post_processing:
|
checkpoints/checkpoint_periodic.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99c5b4384e04a2ed1d16b1246daf544da5140734f99ca2483e4554edcdb227ac
|
| 3 |
+
size 822847589
|
checkpoints/checkpoint_periodic_config.yaml
CHANGED
|
@@ -1,61 +1,97 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
-
streaming:
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
| 32 |
-
|
| 33 |
-
|
|
|
|
| 34 |
_batch_size_scaled: true
|
| 35 |
model:
|
| 36 |
-
name:
|
| 37 |
in_channels: 3
|
| 38 |
out_channels: 1
|
| 39 |
features:
|
| 40 |
-
-
|
| 41 |
-
-
|
|
|
|
|
|
|
| 42 |
bilinear: true
|
| 43 |
-
dropout: 0.
|
| 44 |
-
aux_classifier:
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
loss:
|
| 48 |
mask_loss_type: combined
|
| 49 |
bce_weight: 0.5
|
| 50 |
dice_weight: 0.5
|
| 51 |
focal_weight: 0.5
|
| 52 |
focal_gamma: 2.0
|
| 53 |
-
focal_alpha: 0.
|
| 54 |
aux_loss_type: cross_entropy
|
| 55 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 56 |
training:
|
| 57 |
-
epochs:
|
| 58 |
-
learning_rate: 0.
|
| 59 |
weight_decay: 0.0001
|
| 60 |
optimizer: adamw
|
| 61 |
use_8bit_optimizer: false
|
|
@@ -68,36 +104,35 @@ training:
|
|
| 68 |
warmup_epochs: 1
|
| 69 |
min_lr: 1.0e-06
|
| 70 |
grad_clip_norm: 1.0
|
| 71 |
-
amp:
|
| 72 |
-
gradient_accumulation_steps:
|
| 73 |
-
data_parallel:
|
| 74 |
-
use_hard_mining:
|
| 75 |
auto_batch_size: true
|
| 76 |
empty_cache_per_epoch: true
|
| 77 |
save_best: true
|
| 78 |
save_latest: true
|
| 79 |
-
checkpoint_period:
|
| 80 |
eval_interval: 1
|
| 81 |
-
early_stopping_patience:
|
| 82 |
early_stopping_metric: val_iou
|
| 83 |
early_stopping_mode: max
|
| 84 |
push_to_hub: true
|
| 85 |
hub_repo: KhangTruong/Testing-model
|
| 86 |
hub_version: v1
|
| 87 |
-
batch_size: 2
|
| 88 |
hf_repo: KhangTruong/Testing-model
|
| 89 |
-
num_gpus:
|
| 90 |
hard_mining:
|
| 91 |
-
enabled:
|
| 92 |
metric: median
|
| 93 |
reset_epochs: 5
|
| 94 |
bootstrapping:
|
| 95 |
enabled: false
|
| 96 |
run_bootstrap: false
|
| 97 |
-
epochs:
|
| 98 |
num_samples: 512
|
| 99 |
batch_size: null
|
| 100 |
-
learning_rate:
|
| 101 |
freeze_strategy: channel_stream
|
| 102 |
stream_ratio: 0.5
|
| 103 |
release_mode: restore
|
|
@@ -108,7 +143,7 @@ bootstrapping:
|
|
| 108 |
early_stopping: false
|
| 109 |
patience: 3
|
| 110 |
logging:
|
| 111 |
-
log_interval:
|
| 112 |
log_memory: true
|
| 113 |
measure_network: true
|
| 114 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 10 |
+
streaming: true
|
| 11 |
image_size:
|
| 12 |
+
- 256
|
| 13 |
+
- 256
|
| 14 |
+
batch_size: 128
|
| 15 |
+
num_workers: -1
|
| 16 |
+
pin_memory: true
|
| 17 |
+
shuffle_buffer_size: 32
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
+
test_split: validation
|
| 21 |
+
eval_split: validation
|
| 22 |
+
train_samples_per_epoch: -1
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
+
val_samples: -1
|
| 25 |
+
test_samples: -1
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
+
random_rotate90: 0.25
|
| 31 |
color_jitter: 0.0
|
| 32 |
+
prefetch_batches: 48
|
| 33 |
+
base_batch_size: 128
|
| 34 |
+
num_gpus: 2
|
| 35 |
_batch_size_scaled: true
|
| 36 |
model:
|
| 37 |
+
name: diffusion_diff_minimized
|
| 38 |
in_channels: 3
|
| 39 |
out_channels: 1
|
| 40 |
features:
|
| 41 |
+
- 64
|
| 42 |
+
- 128
|
| 43 |
+
- 256
|
| 44 |
+
- 512
|
| 45 |
bilinear: true
|
| 46 |
+
dropout: 0.1
|
| 47 |
+
aux_classifier: true
|
| 48 |
num_classes: 3
|
| 49 |
gradient_checkpointing: false
|
| 50 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 51 |
+
vae_subfolder: vae
|
| 52 |
+
unet_subfolder: unet
|
| 53 |
+
diffuser_fp16: true
|
| 54 |
+
device_map: cuda
|
| 55 |
+
freeze_encoder: true
|
| 56 |
+
use_encoder_skips: false
|
| 57 |
+
use_perpendicular_skips: true
|
| 58 |
+
timesteps:
|
| 59 |
+
- 250
|
| 60 |
+
timestep_embed_dim: 32
|
| 61 |
+
sigma_embed_dim: 32
|
| 62 |
+
include_noisy_latents: true
|
| 63 |
+
include_added_noise: true
|
| 64 |
+
include_predicted_noise: true
|
| 65 |
+
include_noise_diff: true
|
| 66 |
+
include_z0: true
|
| 67 |
+
scaling_factor: 0.18215
|
| 68 |
+
decoder:
|
| 69 |
+
channels:
|
| 70 |
+
- 256
|
| 71 |
+
- 128
|
| 72 |
+
- 64
|
| 73 |
+
- 32
|
| 74 |
+
upsample_mode: bilinear
|
| 75 |
+
norm_layer: batchnorm
|
| 76 |
+
z_norm: groupnorm
|
| 77 |
+
activation: silu
|
| 78 |
+
dropout: 0.1
|
| 79 |
+
num_res_blocks: 1
|
| 80 |
+
input_rescale: true
|
| 81 |
loss:
|
| 82 |
mask_loss_type: combined
|
| 83 |
bce_weight: 0.5
|
| 84 |
dice_weight: 0.5
|
| 85 |
focal_weight: 0.5
|
| 86 |
focal_gamma: 2.0
|
| 87 |
+
focal_alpha: 0.75
|
| 88 |
aux_loss_type: cross_entropy
|
| 89 |
aux_weight: 0.2
|
| 90 |
+
pos_weight: 1.0
|
| 91 |
+
aux_classifier: true
|
| 92 |
training:
|
| 93 |
+
epochs: 40
|
| 94 |
+
learning_rate: 0.0003
|
| 95 |
weight_decay: 0.0001
|
| 96 |
optimizer: adamw
|
| 97 |
use_8bit_optimizer: false
|
|
|
|
| 104 |
warmup_epochs: 1
|
| 105 |
min_lr: 1.0e-06
|
| 106 |
grad_clip_norm: 1.0
|
| 107 |
+
amp: true
|
| 108 |
+
gradient_accumulation_steps: 4
|
| 109 |
+
data_parallel: true
|
| 110 |
+
use_hard_mining: true
|
| 111 |
auto_batch_size: true
|
| 112 |
empty_cache_per_epoch: true
|
| 113 |
save_best: true
|
| 114 |
save_latest: true
|
| 115 |
+
checkpoint_period: 2m
|
| 116 |
eval_interval: 1
|
| 117 |
+
early_stopping_patience: 4
|
| 118 |
early_stopping_metric: val_iou
|
| 119 |
early_stopping_mode: max
|
| 120 |
push_to_hub: true
|
| 121 |
hub_repo: KhangTruong/Testing-model
|
| 122 |
hub_version: v1
|
|
|
|
| 123 |
hf_repo: KhangTruong/Testing-model
|
| 124 |
+
num_gpus: 2
|
| 125 |
hard_mining:
|
| 126 |
+
enabled: true
|
| 127 |
metric: median
|
| 128 |
reset_epochs: 5
|
| 129 |
bootstrapping:
|
| 130 |
enabled: false
|
| 131 |
run_bootstrap: false
|
| 132 |
+
epochs: 30
|
| 133 |
num_samples: 512
|
| 134 |
batch_size: null
|
| 135 |
+
learning_rate: 0.0005
|
| 136 |
freeze_strategy: channel_stream
|
| 137 |
stream_ratio: 0.5
|
| 138 |
release_mode: restore
|
|
|
|
| 143 |
early_stopping: false
|
| 144 |
patience: 3
|
| 145 |
logging:
|
| 146 |
+
log_interval: 20
|
| 147 |
log_memory: true
|
| 148 |
measure_network: true
|
| 149 |
post_processing:
|
checkpoints/effective_config.yaml
CHANGED
|
@@ -1,58 +1,94 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
-
streaming:
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
|
|
|
| 32 |
model:
|
| 33 |
-
name:
|
| 34 |
in_channels: 3
|
| 35 |
out_channels: 1
|
| 36 |
features:
|
| 37 |
-
-
|
| 38 |
-
-
|
|
|
|
|
|
|
| 39 |
bilinear: true
|
| 40 |
-
dropout: 0.
|
| 41 |
-
aux_classifier:
|
| 42 |
num_classes: 3
|
| 43 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
loss:
|
| 45 |
mask_loss_type: combined
|
| 46 |
bce_weight: 0.5
|
| 47 |
dice_weight: 0.5
|
| 48 |
focal_weight: 0.5
|
| 49 |
focal_gamma: 2.0
|
| 50 |
-
focal_alpha: 0.
|
| 51 |
aux_loss_type: cross_entropy
|
| 52 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 53 |
training:
|
| 54 |
-
epochs:
|
| 55 |
-
learning_rate: 0.
|
| 56 |
weight_decay: 0.0001
|
| 57 |
optimizer: adamw
|
| 58 |
use_8bit_optimizer: false
|
|
@@ -65,35 +101,34 @@ training:
|
|
| 65 |
warmup_epochs: 1
|
| 66 |
min_lr: 1.0e-06
|
| 67 |
grad_clip_norm: 1.0
|
| 68 |
-
amp:
|
| 69 |
-
gradient_accumulation_steps:
|
| 70 |
data_parallel: true
|
| 71 |
-
use_hard_mining:
|
| 72 |
auto_batch_size: true
|
| 73 |
empty_cache_per_epoch: true
|
| 74 |
save_best: true
|
| 75 |
save_latest: true
|
| 76 |
-
checkpoint_period:
|
| 77 |
eval_interval: 1
|
| 78 |
-
early_stopping_patience:
|
| 79 |
early_stopping_metric: val_iou
|
| 80 |
early_stopping_mode: max
|
| 81 |
push_to_hub: true
|
| 82 |
hub_repo: KhangTruong/Testing-model
|
| 83 |
hub_version: v1
|
| 84 |
-
batch_size: 2
|
| 85 |
hf_repo: KhangTruong/Testing-model
|
| 86 |
hard_mining:
|
| 87 |
-
enabled:
|
| 88 |
metric: median
|
| 89 |
reset_epochs: 5
|
| 90 |
bootstrapping:
|
| 91 |
enabled: false
|
| 92 |
run_bootstrap: false
|
| 93 |
-
epochs:
|
| 94 |
num_samples: 512
|
| 95 |
batch_size: null
|
| 96 |
-
learning_rate:
|
| 97 |
freeze_strategy: channel_stream
|
| 98 |
stream_ratio: 0.5
|
| 99 |
release_mode: restore
|
|
@@ -104,7 +139,7 @@ bootstrapping:
|
|
| 104 |
early_stopping: false
|
| 105 |
patience: 3
|
| 106 |
logging:
|
| 107 |
-
log_interval:
|
| 108 |
log_memory: true
|
| 109 |
measure_network: true
|
| 110 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 10 |
+
streaming: true
|
| 11 |
image_size:
|
| 12 |
+
- 256
|
| 13 |
+
- 256
|
| 14 |
+
batch_size: 128
|
| 15 |
+
num_workers: -1
|
| 16 |
+
pin_memory: true
|
| 17 |
+
shuffle_buffer_size: 32
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
+
test_split: validation
|
| 21 |
+
eval_split: validation
|
| 22 |
+
train_samples_per_epoch: -1
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
+
val_samples: -1
|
| 25 |
+
test_samples: -1
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
+
random_rotate90: 0.25
|
| 31 |
color_jitter: 0.0
|
| 32 |
+
prefetch_batches: 48
|
| 33 |
model:
|
| 34 |
+
name: diffusion_diff_minimized
|
| 35 |
in_channels: 3
|
| 36 |
out_channels: 1
|
| 37 |
features:
|
| 38 |
+
- 64
|
| 39 |
+
- 128
|
| 40 |
+
- 256
|
| 41 |
+
- 512
|
| 42 |
bilinear: true
|
| 43 |
+
dropout: 0.1
|
| 44 |
+
aux_classifier: true
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
| 47 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 48 |
+
vae_subfolder: vae
|
| 49 |
+
unet_subfolder: unet
|
| 50 |
+
diffuser_fp16: true
|
| 51 |
+
device_map: cuda
|
| 52 |
+
freeze_encoder: true
|
| 53 |
+
use_encoder_skips: false
|
| 54 |
+
use_perpendicular_skips: true
|
| 55 |
+
timesteps:
|
| 56 |
+
- 250
|
| 57 |
+
timestep_embed_dim: 32
|
| 58 |
+
sigma_embed_dim: 32
|
| 59 |
+
include_noisy_latents: true
|
| 60 |
+
include_added_noise: true
|
| 61 |
+
include_predicted_noise: true
|
| 62 |
+
include_noise_diff: true
|
| 63 |
+
include_z0: true
|
| 64 |
+
scaling_factor: 0.18215
|
| 65 |
+
decoder:
|
| 66 |
+
channels:
|
| 67 |
+
- 256
|
| 68 |
+
- 128
|
| 69 |
+
- 64
|
| 70 |
+
- 32
|
| 71 |
+
upsample_mode: bilinear
|
| 72 |
+
norm_layer: batchnorm
|
| 73 |
+
z_norm: groupnorm
|
| 74 |
+
activation: silu
|
| 75 |
+
dropout: 0.1
|
| 76 |
+
num_res_blocks: 1
|
| 77 |
+
input_rescale: true
|
| 78 |
loss:
|
| 79 |
mask_loss_type: combined
|
| 80 |
bce_weight: 0.5
|
| 81 |
dice_weight: 0.5
|
| 82 |
focal_weight: 0.5
|
| 83 |
focal_gamma: 2.0
|
| 84 |
+
focal_alpha: 0.75
|
| 85 |
aux_loss_type: cross_entropy
|
| 86 |
aux_weight: 0.2
|
| 87 |
+
pos_weight: 1.0
|
| 88 |
+
aux_classifier: true
|
| 89 |
training:
|
| 90 |
+
epochs: 40
|
| 91 |
+
learning_rate: 0.0003
|
| 92 |
weight_decay: 0.0001
|
| 93 |
optimizer: adamw
|
| 94 |
use_8bit_optimizer: false
|
|
|
|
| 101 |
warmup_epochs: 1
|
| 102 |
min_lr: 1.0e-06
|
| 103 |
grad_clip_norm: 1.0
|
| 104 |
+
amp: true
|
| 105 |
+
gradient_accumulation_steps: 4
|
| 106 |
data_parallel: true
|
| 107 |
+
use_hard_mining: true
|
| 108 |
auto_batch_size: true
|
| 109 |
empty_cache_per_epoch: true
|
| 110 |
save_best: true
|
| 111 |
save_latest: true
|
| 112 |
+
checkpoint_period: 2m
|
| 113 |
eval_interval: 1
|
| 114 |
+
early_stopping_patience: 4
|
| 115 |
early_stopping_metric: val_iou
|
| 116 |
early_stopping_mode: max
|
| 117 |
push_to_hub: true
|
| 118 |
hub_repo: KhangTruong/Testing-model
|
| 119 |
hub_version: v1
|
|
|
|
| 120 |
hf_repo: KhangTruong/Testing-model
|
| 121 |
hard_mining:
|
| 122 |
+
enabled: true
|
| 123 |
metric: median
|
| 124 |
reset_epochs: 5
|
| 125 |
bootstrapping:
|
| 126 |
enabled: false
|
| 127 |
run_bootstrap: false
|
| 128 |
+
epochs: 30
|
| 129 |
num_samples: 512
|
| 130 |
batch_size: null
|
| 131 |
+
learning_rate: 0.0005
|
| 132 |
freeze_strategy: channel_stream
|
| 133 |
stream_ratio: 0.5
|
| 134 |
release_mode: restore
|
|
|
|
| 139 |
early_stopping: false
|
| 140 |
patience: 3
|
| 141 |
logging:
|
| 142 |
+
log_interval: 20
|
| 143 |
log_memory: true
|
| 144 |
measure_network: true
|
| 145 |
post_processing:
|
config.yaml
CHANGED
|
@@ -1,61 +1,97 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
-
streaming:
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
| 32 |
-
|
| 33 |
-
|
|
|
|
| 34 |
_batch_size_scaled: true
|
| 35 |
model:
|
| 36 |
-
name:
|
| 37 |
in_channels: 3
|
| 38 |
out_channels: 1
|
| 39 |
features:
|
| 40 |
-
-
|
| 41 |
-
-
|
|
|
|
|
|
|
| 42 |
bilinear: true
|
| 43 |
-
dropout: 0.
|
| 44 |
-
aux_classifier:
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
loss:
|
| 48 |
mask_loss_type: combined
|
| 49 |
bce_weight: 0.5
|
| 50 |
dice_weight: 0.5
|
| 51 |
focal_weight: 0.5
|
| 52 |
focal_gamma: 2.0
|
| 53 |
-
focal_alpha: 0.
|
| 54 |
aux_loss_type: cross_entropy
|
| 55 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 56 |
training:
|
| 57 |
-
epochs:
|
| 58 |
-
learning_rate: 0.
|
| 59 |
weight_decay: 0.0001
|
| 60 |
optimizer: adamw
|
| 61 |
use_8bit_optimizer: false
|
|
@@ -68,36 +104,35 @@ training:
|
|
| 68 |
warmup_epochs: 1
|
| 69 |
min_lr: 1.0e-06
|
| 70 |
grad_clip_norm: 1.0
|
| 71 |
-
amp:
|
| 72 |
-
gradient_accumulation_steps:
|
| 73 |
-
data_parallel:
|
| 74 |
-
use_hard_mining:
|
| 75 |
auto_batch_size: true
|
| 76 |
empty_cache_per_epoch: true
|
| 77 |
save_best: true
|
| 78 |
save_latest: true
|
| 79 |
-
checkpoint_period:
|
| 80 |
eval_interval: 1
|
| 81 |
-
early_stopping_patience:
|
| 82 |
early_stopping_metric: val_iou
|
| 83 |
early_stopping_mode: max
|
| 84 |
push_to_hub: true
|
| 85 |
hub_repo: KhangTruong/Testing-model
|
| 86 |
hub_version: v1
|
| 87 |
-
batch_size: 2
|
| 88 |
hf_repo: KhangTruong/Testing-model
|
| 89 |
-
num_gpus:
|
| 90 |
hard_mining:
|
| 91 |
-
enabled:
|
| 92 |
metric: median
|
| 93 |
reset_epochs: 5
|
| 94 |
bootstrapping:
|
| 95 |
enabled: false
|
| 96 |
run_bootstrap: false
|
| 97 |
-
epochs:
|
| 98 |
num_samples: 512
|
| 99 |
batch_size: null
|
| 100 |
-
learning_rate:
|
| 101 |
freeze_strategy: channel_stream
|
| 102 |
stream_ratio: 0.5
|
| 103 |
release_mode: restore
|
|
@@ -108,7 +143,7 @@ bootstrapping:
|
|
| 108 |
early_stopping: false
|
| 109 |
patience: 3
|
| 110 |
logging:
|
| 111 |
-
log_interval:
|
| 112 |
log_memory: true
|
| 113 |
measure_network: true
|
| 114 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 10 |
+
streaming: true
|
| 11 |
image_size:
|
| 12 |
+
- 256
|
| 13 |
+
- 256
|
| 14 |
+
batch_size: 128
|
| 15 |
+
num_workers: -1
|
| 16 |
+
pin_memory: true
|
| 17 |
+
shuffle_buffer_size: 32
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
+
test_split: validation
|
| 21 |
+
eval_split: validation
|
| 22 |
+
train_samples_per_epoch: -1
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
+
val_samples: -1
|
| 25 |
+
test_samples: -1
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
+
random_rotate90: 0.25
|
| 31 |
color_jitter: 0.0
|
| 32 |
+
prefetch_batches: 48
|
| 33 |
+
base_batch_size: 128
|
| 34 |
+
num_gpus: 2
|
| 35 |
_batch_size_scaled: true
|
| 36 |
model:
|
| 37 |
+
name: diffusion_diff_minimized
|
| 38 |
in_channels: 3
|
| 39 |
out_channels: 1
|
| 40 |
features:
|
| 41 |
+
- 64
|
| 42 |
+
- 128
|
| 43 |
+
- 256
|
| 44 |
+
- 512
|
| 45 |
bilinear: true
|
| 46 |
+
dropout: 0.1
|
| 47 |
+
aux_classifier: true
|
| 48 |
num_classes: 3
|
| 49 |
gradient_checkpointing: false
|
| 50 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 51 |
+
vae_subfolder: vae
|
| 52 |
+
unet_subfolder: unet
|
| 53 |
+
diffuser_fp16: true
|
| 54 |
+
device_map: cuda
|
| 55 |
+
freeze_encoder: true
|
| 56 |
+
use_encoder_skips: false
|
| 57 |
+
use_perpendicular_skips: true
|
| 58 |
+
timesteps:
|
| 59 |
+
- 250
|
| 60 |
+
timestep_embed_dim: 32
|
| 61 |
+
sigma_embed_dim: 32
|
| 62 |
+
include_noisy_latents: true
|
| 63 |
+
include_added_noise: true
|
| 64 |
+
include_predicted_noise: true
|
| 65 |
+
include_noise_diff: true
|
| 66 |
+
include_z0: true
|
| 67 |
+
scaling_factor: 0.18215
|
| 68 |
+
decoder:
|
| 69 |
+
channels:
|
| 70 |
+
- 256
|
| 71 |
+
- 128
|
| 72 |
+
- 64
|
| 73 |
+
- 32
|
| 74 |
+
upsample_mode: bilinear
|
| 75 |
+
norm_layer: batchnorm
|
| 76 |
+
z_norm: groupnorm
|
| 77 |
+
activation: silu
|
| 78 |
+
dropout: 0.1
|
| 79 |
+
num_res_blocks: 1
|
| 80 |
+
input_rescale: true
|
| 81 |
loss:
|
| 82 |
mask_loss_type: combined
|
| 83 |
bce_weight: 0.5
|
| 84 |
dice_weight: 0.5
|
| 85 |
focal_weight: 0.5
|
| 86 |
focal_gamma: 2.0
|
| 87 |
+
focal_alpha: 0.75
|
| 88 |
aux_loss_type: cross_entropy
|
| 89 |
aux_weight: 0.2
|
| 90 |
+
pos_weight: 1.0
|
| 91 |
+
aux_classifier: true
|
| 92 |
training:
|
| 93 |
+
epochs: 40
|
| 94 |
+
learning_rate: 0.0003
|
| 95 |
weight_decay: 0.0001
|
| 96 |
optimizer: adamw
|
| 97 |
use_8bit_optimizer: false
|
|
|
|
| 104 |
warmup_epochs: 1
|
| 105 |
min_lr: 1.0e-06
|
| 106 |
grad_clip_norm: 1.0
|
| 107 |
+
amp: true
|
| 108 |
+
gradient_accumulation_steps: 4
|
| 109 |
+
data_parallel: true
|
| 110 |
+
use_hard_mining: true
|
| 111 |
auto_batch_size: true
|
| 112 |
empty_cache_per_epoch: true
|
| 113 |
save_best: true
|
| 114 |
save_latest: true
|
| 115 |
+
checkpoint_period: 2m
|
| 116 |
eval_interval: 1
|
| 117 |
+
early_stopping_patience: 4
|
| 118 |
early_stopping_metric: val_iou
|
| 119 |
early_stopping_mode: max
|
| 120 |
push_to_hub: true
|
| 121 |
hub_repo: KhangTruong/Testing-model
|
| 122 |
hub_version: v1
|
|
|
|
| 123 |
hf_repo: KhangTruong/Testing-model
|
| 124 |
+
num_gpus: 2
|
| 125 |
hard_mining:
|
| 126 |
+
enabled: true
|
| 127 |
metric: median
|
| 128 |
reset_epochs: 5
|
| 129 |
bootstrapping:
|
| 130 |
enabled: false
|
| 131 |
run_bootstrap: false
|
| 132 |
+
epochs: 30
|
| 133 |
num_samples: 512
|
| 134 |
batch_size: null
|
| 135 |
+
learning_rate: 0.0005
|
| 136 |
freeze_strategy: channel_stream
|
| 137 |
stream_ratio: 0.5
|
| 138 |
release_mode: restore
|
|
|
|
| 143 |
early_stopping: false
|
| 144 |
patience: 3
|
| 145 |
logging:
|
| 146 |
+
log_interval: 20
|
| 147 |
log_memory: true
|
| 148 |
measure_network: true
|
| 149 |
post_processing:
|
manifest.json
CHANGED
|
@@ -5,12 +5,13 @@
|
|
| 5 |
"versions_meta": {
|
| 6 |
"v1": {
|
| 7 |
"version": "v1",
|
| 8 |
-
"best_score": "0.
|
| 9 |
-
"best_epoch": "
|
| 10 |
-
"total_epochs": "
|
| 11 |
-
"step": "
|
| 12 |
-
"updated_at": "2026-10-06T13:
|
| 13 |
"files": [
|
|
|
|
| 14 |
"checkpoint_latest.pt",
|
| 15 |
"checkpoint_periodic.pt"
|
| 16 |
]
|
|
|
|
| 5 |
"versions_meta": {
|
| 6 |
"v1": {
|
| 7 |
"version": "v1",
|
| 8 |
+
"best_score": "0.15213540285745106",
|
| 9 |
+
"best_epoch": "10",
|
| 10 |
+
"total_epochs": "10",
|
| 11 |
+
"step": "152730",
|
| 12 |
+
"updated_at": "2026-10-06T13:24:10.086971+00:00",
|
| 13 |
"files": [
|
| 14 |
+
"checkpoint_best.pt",
|
| 15 |
"checkpoint_latest.pt",
|
| 16 |
"checkpoint_periodic.pt"
|
| 17 |
]
|
versions/v1/checkpoint_best_config.yaml
CHANGED
|
@@ -1,61 +1,92 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
-
hub_repo: null
|
| 7 |
-
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
streaming: false
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
| 32 |
-
|
| 33 |
-
num_gpus: 1
|
| 34 |
-
_batch_size_scaled: true
|
| 35 |
model:
|
| 36 |
-
name:
|
| 37 |
in_channels: 3
|
| 38 |
out_channels: 1
|
| 39 |
features:
|
| 40 |
-
-
|
| 41 |
-
-
|
|
|
|
|
|
|
| 42 |
bilinear: true
|
| 43 |
-
dropout: 0.
|
| 44 |
-
aux_classifier:
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
loss:
|
| 48 |
mask_loss_type: combined
|
| 49 |
bce_weight: 0.5
|
| 50 |
dice_weight: 0.5
|
| 51 |
focal_weight: 0.5
|
| 52 |
focal_gamma: 2.0
|
| 53 |
-
focal_alpha: 0.
|
| 54 |
aux_loss_type: cross_entropy
|
| 55 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 56 |
training:
|
| 57 |
-
epochs:
|
| 58 |
-
learning_rate: 0.
|
| 59 |
weight_decay: 0.0001
|
| 60 |
optimizer: adamw
|
| 61 |
use_8bit_optimizer: false
|
|
@@ -63,41 +94,27 @@ training:
|
|
| 63 |
fallback_to_16bit: true
|
| 64 |
fallback_on_unsupported_8bit: true
|
| 65 |
scheduler: cosine
|
| 66 |
-
resume_lr_mode: auto
|
| 67 |
-
resume_lr: null
|
| 68 |
warmup_epochs: 1
|
| 69 |
min_lr: 1.0e-06
|
| 70 |
grad_clip_norm: 1.0
|
| 71 |
-
amp:
|
| 72 |
-
gradient_accumulation_steps:
|
| 73 |
-
data_parallel: false
|
| 74 |
-
use_hard_mining: false
|
| 75 |
auto_batch_size: true
|
| 76 |
empty_cache_per_epoch: true
|
| 77 |
save_best: true
|
| 78 |
save_latest: true
|
| 79 |
-
checkpoint_period:
|
| 80 |
eval_interval: 1
|
| 81 |
-
early_stopping_patience:
|
| 82 |
early_stopping_metric: val_iou
|
| 83 |
early_stopping_mode: max
|
| 84 |
-
push_to_hub: true
|
| 85 |
-
hub_repo: KhangTruong/Testing-model
|
| 86 |
-
hub_version: v1
|
| 87 |
-
batch_size: 2
|
| 88 |
-
hf_repo: KhangTruong/Testing-model
|
| 89 |
-
num_gpus: 1
|
| 90 |
-
hard_mining:
|
| 91 |
-
enabled: false
|
| 92 |
-
metric: median
|
| 93 |
-
reset_epochs: 5
|
| 94 |
bootstrapping:
|
| 95 |
enabled: false
|
| 96 |
run_bootstrap: false
|
| 97 |
-
epochs:
|
| 98 |
num_samples: 512
|
| 99 |
batch_size: null
|
| 100 |
-
learning_rate:
|
| 101 |
freeze_strategy: channel_stream
|
| 102 |
stream_ratio: 0.5
|
| 103 |
release_mode: restore
|
|
@@ -108,7 +125,7 @@ bootstrapping:
|
|
| 108 |
early_stopping: false
|
| 109 |
patience: 3
|
| 110 |
logging:
|
| 111 |
-
log_interval:
|
| 112 |
log_memory: true
|
| 113 |
measure_network: true
|
| 114 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
|
|
|
|
|
|
| 6 |
data:
|
| 7 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 8 |
streaming: false
|
| 9 |
image_size:
|
| 10 |
+
- 256
|
| 11 |
+
- 256
|
| 12 |
+
batch_size: 8
|
| 13 |
+
num_workers: 2
|
| 14 |
+
pin_memory: true
|
| 15 |
+
shuffle_buffer_size: 32
|
| 16 |
train_split: train
|
| 17 |
val_split: validation
|
| 18 |
+
test_split: validation
|
| 19 |
+
eval_split: validation
|
| 20 |
+
train_samples_per_epoch: -1
|
| 21 |
val_samples_per_epoch: -1
|
| 22 |
+
val_samples: -1
|
| 23 |
+
test_samples: -1
|
| 24 |
evaluate_on_test: true
|
| 25 |
augmentations:
|
| 26 |
horizontal_flip: 0.5
|
| 27 |
vertical_flip: 0.0
|
| 28 |
+
random_rotate90: 0.25
|
| 29 |
color_jitter: 0.0
|
| 30 |
+
prefetch_batches: 48
|
|
|
|
|
|
|
| 31 |
model:
|
| 32 |
+
name: diffusion_diff_minimized
|
| 33 |
in_channels: 3
|
| 34 |
out_channels: 1
|
| 35 |
features:
|
| 36 |
+
- 64
|
| 37 |
+
- 128
|
| 38 |
+
- 256
|
| 39 |
+
- 512
|
| 40 |
bilinear: true
|
| 41 |
+
dropout: 0.1
|
| 42 |
+
aux_classifier: true
|
| 43 |
num_classes: 3
|
| 44 |
gradient_checkpointing: false
|
| 45 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 46 |
+
vae_subfolder: vae
|
| 47 |
+
unet_subfolder: unet
|
| 48 |
+
diffuser_fp16: true
|
| 49 |
+
device_map: cuda
|
| 50 |
+
freeze_encoder: true
|
| 51 |
+
use_encoder_skips: false
|
| 52 |
+
use_perpendicular_skips: true
|
| 53 |
+
timesteps:
|
| 54 |
+
- 250
|
| 55 |
+
timestep_embed_dim: 32
|
| 56 |
+
sigma_embed_dim: 32
|
| 57 |
+
include_noisy_latents: true
|
| 58 |
+
include_added_noise: true
|
| 59 |
+
include_predicted_noise: true
|
| 60 |
+
include_noise_diff: true
|
| 61 |
+
include_z0: true
|
| 62 |
+
scaling_factor: 0.18215
|
| 63 |
+
decoder:
|
| 64 |
+
channels:
|
| 65 |
+
- 256
|
| 66 |
+
- 128
|
| 67 |
+
- 64
|
| 68 |
+
- 32
|
| 69 |
+
upsample_mode: bilinear
|
| 70 |
+
norm_layer: batchnorm
|
| 71 |
+
z_norm: groupnorm
|
| 72 |
+
activation: silu
|
| 73 |
+
dropout: 0.1
|
| 74 |
+
num_res_blocks: 1
|
| 75 |
+
input_rescale: true
|
| 76 |
loss:
|
| 77 |
mask_loss_type: combined
|
| 78 |
bce_weight: 0.5
|
| 79 |
dice_weight: 0.5
|
| 80 |
focal_weight: 0.5
|
| 81 |
focal_gamma: 2.0
|
| 82 |
+
focal_alpha: 0.75
|
| 83 |
aux_loss_type: cross_entropy
|
| 84 |
aux_weight: 0.2
|
| 85 |
+
pos_weight: 1.0
|
| 86 |
+
aux_classifier: true
|
| 87 |
training:
|
| 88 |
+
epochs: 10
|
| 89 |
+
learning_rate: 0.0003
|
| 90 |
weight_decay: 0.0001
|
| 91 |
optimizer: adamw
|
| 92 |
use_8bit_optimizer: false
|
|
|
|
| 94 |
fallback_to_16bit: true
|
| 95 |
fallback_on_unsupported_8bit: true
|
| 96 |
scheduler: cosine
|
|
|
|
|
|
|
| 97 |
warmup_epochs: 1
|
| 98 |
min_lr: 1.0e-06
|
| 99 |
grad_clip_norm: 1.0
|
| 100 |
+
amp: true
|
| 101 |
+
gradient_accumulation_steps: 4
|
|
|
|
|
|
|
| 102 |
auto_batch_size: true
|
| 103 |
empty_cache_per_epoch: true
|
| 104 |
save_best: true
|
| 105 |
save_latest: true
|
| 106 |
+
checkpoint_period: 1
|
| 107 |
eval_interval: 1
|
| 108 |
+
early_stopping_patience: 4
|
| 109 |
early_stopping_metric: val_iou
|
| 110 |
early_stopping_mode: max
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
bootstrapping:
|
| 112 |
enabled: false
|
| 113 |
run_bootstrap: false
|
| 114 |
+
epochs: 30
|
| 115 |
num_samples: 512
|
| 116 |
batch_size: null
|
| 117 |
+
learning_rate: 0.0005
|
| 118 |
freeze_strategy: channel_stream
|
| 119 |
stream_ratio: 0.5
|
| 120 |
release_mode: restore
|
|
|
|
| 125 |
early_stopping: false
|
| 126 |
patience: 3
|
| 127 |
logging:
|
| 128 |
+
log_interval: 20
|
| 129 |
log_memory: true
|
| 130 |
measure_network: true
|
| 131 |
post_processing:
|
versions/v1/checkpoint_latest_config.yaml
CHANGED
|
@@ -1,61 +1,97 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
-
streaming:
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
| 32 |
-
|
| 33 |
-
|
|
|
|
| 34 |
_batch_size_scaled: true
|
| 35 |
model:
|
| 36 |
-
name:
|
| 37 |
in_channels: 3
|
| 38 |
out_channels: 1
|
| 39 |
features:
|
| 40 |
-
-
|
| 41 |
-
-
|
|
|
|
|
|
|
| 42 |
bilinear: true
|
| 43 |
-
dropout: 0.
|
| 44 |
-
aux_classifier:
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
loss:
|
| 48 |
mask_loss_type: combined
|
| 49 |
bce_weight: 0.5
|
| 50 |
dice_weight: 0.5
|
| 51 |
focal_weight: 0.5
|
| 52 |
focal_gamma: 2.0
|
| 53 |
-
focal_alpha: 0.
|
| 54 |
aux_loss_type: cross_entropy
|
| 55 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 56 |
training:
|
| 57 |
-
epochs:
|
| 58 |
-
learning_rate: 0.
|
| 59 |
weight_decay: 0.0001
|
| 60 |
optimizer: adamw
|
| 61 |
use_8bit_optimizer: false
|
|
@@ -68,36 +104,35 @@ training:
|
|
| 68 |
warmup_epochs: 1
|
| 69 |
min_lr: 1.0e-06
|
| 70 |
grad_clip_norm: 1.0
|
| 71 |
-
amp:
|
| 72 |
-
gradient_accumulation_steps:
|
| 73 |
-
data_parallel:
|
| 74 |
-
use_hard_mining:
|
| 75 |
auto_batch_size: true
|
| 76 |
empty_cache_per_epoch: true
|
| 77 |
save_best: true
|
| 78 |
save_latest: true
|
| 79 |
-
checkpoint_period:
|
| 80 |
eval_interval: 1
|
| 81 |
-
early_stopping_patience:
|
| 82 |
early_stopping_metric: val_iou
|
| 83 |
early_stopping_mode: max
|
| 84 |
push_to_hub: true
|
| 85 |
hub_repo: KhangTruong/Testing-model
|
| 86 |
hub_version: v1
|
| 87 |
-
batch_size: 2
|
| 88 |
hf_repo: KhangTruong/Testing-model
|
| 89 |
-
num_gpus:
|
| 90 |
hard_mining:
|
| 91 |
-
enabled:
|
| 92 |
metric: median
|
| 93 |
reset_epochs: 5
|
| 94 |
bootstrapping:
|
| 95 |
enabled: false
|
| 96 |
run_bootstrap: false
|
| 97 |
-
epochs:
|
| 98 |
num_samples: 512
|
| 99 |
batch_size: null
|
| 100 |
-
learning_rate:
|
| 101 |
freeze_strategy: channel_stream
|
| 102 |
stream_ratio: 0.5
|
| 103 |
release_mode: restore
|
|
@@ -108,7 +143,7 @@ bootstrapping:
|
|
| 108 |
early_stopping: false
|
| 109 |
patience: 3
|
| 110 |
logging:
|
| 111 |
-
log_interval:
|
| 112 |
log_memory: true
|
| 113 |
measure_network: true
|
| 114 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 10 |
+
streaming: true
|
| 11 |
image_size:
|
| 12 |
+
- 256
|
| 13 |
+
- 256
|
| 14 |
+
batch_size: 128
|
| 15 |
+
num_workers: -1
|
| 16 |
+
pin_memory: true
|
| 17 |
+
shuffle_buffer_size: 32
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
+
test_split: validation
|
| 21 |
+
eval_split: validation
|
| 22 |
+
train_samples_per_epoch: -1
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
+
val_samples: -1
|
| 25 |
+
test_samples: -1
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
+
random_rotate90: 0.25
|
| 31 |
color_jitter: 0.0
|
| 32 |
+
prefetch_batches: 48
|
| 33 |
+
base_batch_size: 128
|
| 34 |
+
num_gpus: 2
|
| 35 |
_batch_size_scaled: true
|
| 36 |
model:
|
| 37 |
+
name: diffusion_diff_minimized
|
| 38 |
in_channels: 3
|
| 39 |
out_channels: 1
|
| 40 |
features:
|
| 41 |
+
- 64
|
| 42 |
+
- 128
|
| 43 |
+
- 256
|
| 44 |
+
- 512
|
| 45 |
bilinear: true
|
| 46 |
+
dropout: 0.1
|
| 47 |
+
aux_classifier: true
|
| 48 |
num_classes: 3
|
| 49 |
gradient_checkpointing: false
|
| 50 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 51 |
+
vae_subfolder: vae
|
| 52 |
+
unet_subfolder: unet
|
| 53 |
+
diffuser_fp16: true
|
| 54 |
+
device_map: cuda
|
| 55 |
+
freeze_encoder: true
|
| 56 |
+
use_encoder_skips: false
|
| 57 |
+
use_perpendicular_skips: true
|
| 58 |
+
timesteps:
|
| 59 |
+
- 250
|
| 60 |
+
timestep_embed_dim: 32
|
| 61 |
+
sigma_embed_dim: 32
|
| 62 |
+
include_noisy_latents: true
|
| 63 |
+
include_added_noise: true
|
| 64 |
+
include_predicted_noise: true
|
| 65 |
+
include_noise_diff: true
|
| 66 |
+
include_z0: true
|
| 67 |
+
scaling_factor: 0.18215
|
| 68 |
+
decoder:
|
| 69 |
+
channels:
|
| 70 |
+
- 256
|
| 71 |
+
- 128
|
| 72 |
+
- 64
|
| 73 |
+
- 32
|
| 74 |
+
upsample_mode: bilinear
|
| 75 |
+
norm_layer: batchnorm
|
| 76 |
+
z_norm: groupnorm
|
| 77 |
+
activation: silu
|
| 78 |
+
dropout: 0.1
|
| 79 |
+
num_res_blocks: 1
|
| 80 |
+
input_rescale: true
|
| 81 |
loss:
|
| 82 |
mask_loss_type: combined
|
| 83 |
bce_weight: 0.5
|
| 84 |
dice_weight: 0.5
|
| 85 |
focal_weight: 0.5
|
| 86 |
focal_gamma: 2.0
|
| 87 |
+
focal_alpha: 0.75
|
| 88 |
aux_loss_type: cross_entropy
|
| 89 |
aux_weight: 0.2
|
| 90 |
+
pos_weight: 1.0
|
| 91 |
+
aux_classifier: true
|
| 92 |
training:
|
| 93 |
+
epochs: 40
|
| 94 |
+
learning_rate: 0.0003
|
| 95 |
weight_decay: 0.0001
|
| 96 |
optimizer: adamw
|
| 97 |
use_8bit_optimizer: false
|
|
|
|
| 104 |
warmup_epochs: 1
|
| 105 |
min_lr: 1.0e-06
|
| 106 |
grad_clip_norm: 1.0
|
| 107 |
+
amp: true
|
| 108 |
+
gradient_accumulation_steps: 4
|
| 109 |
+
data_parallel: true
|
| 110 |
+
use_hard_mining: true
|
| 111 |
auto_batch_size: true
|
| 112 |
empty_cache_per_epoch: true
|
| 113 |
save_best: true
|
| 114 |
save_latest: true
|
| 115 |
+
checkpoint_period: 2m
|
| 116 |
eval_interval: 1
|
| 117 |
+
early_stopping_patience: 4
|
| 118 |
early_stopping_metric: val_iou
|
| 119 |
early_stopping_mode: max
|
| 120 |
push_to_hub: true
|
| 121 |
hub_repo: KhangTruong/Testing-model
|
| 122 |
hub_version: v1
|
|
|
|
| 123 |
hf_repo: KhangTruong/Testing-model
|
| 124 |
+
num_gpus: 2
|
| 125 |
hard_mining:
|
| 126 |
+
enabled: true
|
| 127 |
metric: median
|
| 128 |
reset_epochs: 5
|
| 129 |
bootstrapping:
|
| 130 |
enabled: false
|
| 131 |
run_bootstrap: false
|
| 132 |
+
epochs: 30
|
| 133 |
num_samples: 512
|
| 134 |
batch_size: null
|
| 135 |
+
learning_rate: 0.0005
|
| 136 |
freeze_strategy: channel_stream
|
| 137 |
stream_ratio: 0.5
|
| 138 |
release_mode: restore
|
|
|
|
| 143 |
early_stopping: false
|
| 144 |
patience: 3
|
| 145 |
logging:
|
| 146 |
+
log_interval: 20
|
| 147 |
log_memory: true
|
| 148 |
measure_network: true
|
| 149 |
post_processing:
|
versions/v1/checkpoint_periodic_config.yaml
CHANGED
|
@@ -1,61 +1,97 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
-
streaming:
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
| 32 |
-
|
| 33 |
-
|
|
|
|
| 34 |
_batch_size_scaled: true
|
| 35 |
model:
|
| 36 |
-
name:
|
| 37 |
in_channels: 3
|
| 38 |
out_channels: 1
|
| 39 |
features:
|
| 40 |
-
-
|
| 41 |
-
-
|
|
|
|
|
|
|
| 42 |
bilinear: true
|
| 43 |
-
dropout: 0.
|
| 44 |
-
aux_classifier:
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
loss:
|
| 48 |
mask_loss_type: combined
|
| 49 |
bce_weight: 0.5
|
| 50 |
dice_weight: 0.5
|
| 51 |
focal_weight: 0.5
|
| 52 |
focal_gamma: 2.0
|
| 53 |
-
focal_alpha: 0.
|
| 54 |
aux_loss_type: cross_entropy
|
| 55 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 56 |
training:
|
| 57 |
-
epochs:
|
| 58 |
-
learning_rate: 0.
|
| 59 |
weight_decay: 0.0001
|
| 60 |
optimizer: adamw
|
| 61 |
use_8bit_optimizer: false
|
|
@@ -68,36 +104,35 @@ training:
|
|
| 68 |
warmup_epochs: 1
|
| 69 |
min_lr: 1.0e-06
|
| 70 |
grad_clip_norm: 1.0
|
| 71 |
-
amp:
|
| 72 |
-
gradient_accumulation_steps:
|
| 73 |
-
data_parallel:
|
| 74 |
-
use_hard_mining:
|
| 75 |
auto_batch_size: true
|
| 76 |
empty_cache_per_epoch: true
|
| 77 |
save_best: true
|
| 78 |
save_latest: true
|
| 79 |
-
checkpoint_period:
|
| 80 |
eval_interval: 1
|
| 81 |
-
early_stopping_patience:
|
| 82 |
early_stopping_metric: val_iou
|
| 83 |
early_stopping_mode: max
|
| 84 |
push_to_hub: true
|
| 85 |
hub_repo: KhangTruong/Testing-model
|
| 86 |
hub_version: v1
|
| 87 |
-
batch_size: 2
|
| 88 |
hf_repo: KhangTruong/Testing-model
|
| 89 |
-
num_gpus:
|
| 90 |
hard_mining:
|
| 91 |
-
enabled:
|
| 92 |
metric: median
|
| 93 |
reset_epochs: 5
|
| 94 |
bootstrapping:
|
| 95 |
enabled: false
|
| 96 |
run_bootstrap: false
|
| 97 |
-
epochs:
|
| 98 |
num_samples: 512
|
| 99 |
batch_size: null
|
| 100 |
-
learning_rate:
|
| 101 |
freeze_strategy: channel_stream
|
| 102 |
stream_ratio: 0.5
|
| 103 |
release_mode: restore
|
|
@@ -108,7 +143,7 @@ bootstrapping:
|
|
| 108 |
early_stopping: false
|
| 109 |
patience: 3
|
| 110 |
logging:
|
| 111 |
-
log_interval:
|
| 112 |
log_memory: true
|
| 113 |
measure_network: true
|
| 114 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 10 |
+
streaming: true
|
| 11 |
image_size:
|
| 12 |
+
- 256
|
| 13 |
+
- 256
|
| 14 |
+
batch_size: 128
|
| 15 |
+
num_workers: -1
|
| 16 |
+
pin_memory: true
|
| 17 |
+
shuffle_buffer_size: 32
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
+
test_split: validation
|
| 21 |
+
eval_split: validation
|
| 22 |
+
train_samples_per_epoch: -1
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
+
val_samples: -1
|
| 25 |
+
test_samples: -1
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
+
random_rotate90: 0.25
|
| 31 |
color_jitter: 0.0
|
| 32 |
+
prefetch_batches: 48
|
| 33 |
+
base_batch_size: 128
|
| 34 |
+
num_gpus: 2
|
| 35 |
_batch_size_scaled: true
|
| 36 |
model:
|
| 37 |
+
name: diffusion_diff_minimized
|
| 38 |
in_channels: 3
|
| 39 |
out_channels: 1
|
| 40 |
features:
|
| 41 |
+
- 64
|
| 42 |
+
- 128
|
| 43 |
+
- 256
|
| 44 |
+
- 512
|
| 45 |
bilinear: true
|
| 46 |
+
dropout: 0.1
|
| 47 |
+
aux_classifier: true
|
| 48 |
num_classes: 3
|
| 49 |
gradient_checkpointing: false
|
| 50 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 51 |
+
vae_subfolder: vae
|
| 52 |
+
unet_subfolder: unet
|
| 53 |
+
diffuser_fp16: true
|
| 54 |
+
device_map: cuda
|
| 55 |
+
freeze_encoder: true
|
| 56 |
+
use_encoder_skips: false
|
| 57 |
+
use_perpendicular_skips: true
|
| 58 |
+
timesteps:
|
| 59 |
+
- 250
|
| 60 |
+
timestep_embed_dim: 32
|
| 61 |
+
sigma_embed_dim: 32
|
| 62 |
+
include_noisy_latents: true
|
| 63 |
+
include_added_noise: true
|
| 64 |
+
include_predicted_noise: true
|
| 65 |
+
include_noise_diff: true
|
| 66 |
+
include_z0: true
|
| 67 |
+
scaling_factor: 0.18215
|
| 68 |
+
decoder:
|
| 69 |
+
channels:
|
| 70 |
+
- 256
|
| 71 |
+
- 128
|
| 72 |
+
- 64
|
| 73 |
+
- 32
|
| 74 |
+
upsample_mode: bilinear
|
| 75 |
+
norm_layer: batchnorm
|
| 76 |
+
z_norm: groupnorm
|
| 77 |
+
activation: silu
|
| 78 |
+
dropout: 0.1
|
| 79 |
+
num_res_blocks: 1
|
| 80 |
+
input_rescale: true
|
| 81 |
loss:
|
| 82 |
mask_loss_type: combined
|
| 83 |
bce_weight: 0.5
|
| 84 |
dice_weight: 0.5
|
| 85 |
focal_weight: 0.5
|
| 86 |
focal_gamma: 2.0
|
| 87 |
+
focal_alpha: 0.75
|
| 88 |
aux_loss_type: cross_entropy
|
| 89 |
aux_weight: 0.2
|
| 90 |
+
pos_weight: 1.0
|
| 91 |
+
aux_classifier: true
|
| 92 |
training:
|
| 93 |
+
epochs: 40
|
| 94 |
+
learning_rate: 0.0003
|
| 95 |
weight_decay: 0.0001
|
| 96 |
optimizer: adamw
|
| 97 |
use_8bit_optimizer: false
|
|
|
|
| 104 |
warmup_epochs: 1
|
| 105 |
min_lr: 1.0e-06
|
| 106 |
grad_clip_norm: 1.0
|
| 107 |
+
amp: true
|
| 108 |
+
gradient_accumulation_steps: 4
|
| 109 |
+
data_parallel: true
|
| 110 |
+
use_hard_mining: true
|
| 111 |
auto_batch_size: true
|
| 112 |
empty_cache_per_epoch: true
|
| 113 |
save_best: true
|
| 114 |
save_latest: true
|
| 115 |
+
checkpoint_period: 2m
|
| 116 |
eval_interval: 1
|
| 117 |
+
early_stopping_patience: 4
|
| 118 |
early_stopping_metric: val_iou
|
| 119 |
early_stopping_mode: max
|
| 120 |
push_to_hub: true
|
| 121 |
hub_repo: KhangTruong/Testing-model
|
| 122 |
hub_version: v1
|
|
|
|
| 123 |
hf_repo: KhangTruong/Testing-model
|
| 124 |
+
num_gpus: 2
|
| 125 |
hard_mining:
|
| 126 |
+
enabled: true
|
| 127 |
metric: median
|
| 128 |
reset_epochs: 5
|
| 129 |
bootstrapping:
|
| 130 |
enabled: false
|
| 131 |
run_bootstrap: false
|
| 132 |
+
epochs: 30
|
| 133 |
num_samples: 512
|
| 134 |
batch_size: null
|
| 135 |
+
learning_rate: 0.0005
|
| 136 |
freeze_strategy: channel_stream
|
| 137 |
stream_ratio: 0.5
|
| 138 |
release_mode: restore
|
|
|
|
| 143 |
early_stopping: false
|
| 144 |
patience: 3
|
| 145 |
logging:
|
| 146 |
+
log_interval: 20
|
| 147 |
log_memory: true
|
| 148 |
measure_network: true
|
| 149 |
post_processing:
|
versions/v1/checkpoints/checkpoint_best.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7537716ccfb7cc5c6743eac53dcc70f8ccb9d968c1baaf5b9db58324f2030a71
|
| 3 |
+
size 839778939
|
versions/v1/checkpoints/checkpoint_latest.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91dc74c0b4bf4bdf528d475eabe0448157f00a7da3e9fc1a3822cd6cd364d465
|
| 3 |
+
size 115763584
|
versions/v1/checkpoints/checkpoint_periodic.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99c5b4384e04a2ed1d16b1246daf544da5140734f99ca2483e4554edcdb227ac
|
| 3 |
+
size 822847589
|
versions/v1/effective_config.yaml
CHANGED
|
@@ -1,58 +1,94 @@
|
|
| 1 |
project:
|
| 2 |
-
name:
|
| 3 |
seed: 42
|
| 4 |
-
device:
|
| 5 |
-
output_dir: /
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
-
dataset_name: KhangTruong/
|
| 10 |
-
streaming:
|
| 11 |
image_size:
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
batch_size:
|
| 15 |
-
num_workers:
|
| 16 |
-
pin_memory:
|
| 17 |
-
shuffle_buffer_size:
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
-
test_split:
|
| 21 |
-
eval_split:
|
| 22 |
-
train_samples_per_epoch:
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
-
val_samples:
|
| 25 |
-
test_samples:
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
-
random_rotate90: 0.
|
| 31 |
color_jitter: 0.0
|
|
|
|
| 32 |
model:
|
| 33 |
-
name:
|
| 34 |
in_channels: 3
|
| 35 |
out_channels: 1
|
| 36 |
features:
|
| 37 |
-
-
|
| 38 |
-
-
|
|
|
|
|
|
|
| 39 |
bilinear: true
|
| 40 |
-
dropout: 0.
|
| 41 |
-
aux_classifier:
|
| 42 |
num_classes: 3
|
| 43 |
gradient_checkpointing: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
loss:
|
| 45 |
mask_loss_type: combined
|
| 46 |
bce_weight: 0.5
|
| 47 |
dice_weight: 0.5
|
| 48 |
focal_weight: 0.5
|
| 49 |
focal_gamma: 2.0
|
| 50 |
-
focal_alpha: 0.
|
| 51 |
aux_loss_type: cross_entropy
|
| 52 |
aux_weight: 0.2
|
|
|
|
|
|
|
| 53 |
training:
|
| 54 |
-
epochs:
|
| 55 |
-
learning_rate: 0.
|
| 56 |
weight_decay: 0.0001
|
| 57 |
optimizer: adamw
|
| 58 |
use_8bit_optimizer: false
|
|
@@ -65,35 +101,34 @@ training:
|
|
| 65 |
warmup_epochs: 1
|
| 66 |
min_lr: 1.0e-06
|
| 67 |
grad_clip_norm: 1.0
|
| 68 |
-
amp:
|
| 69 |
-
gradient_accumulation_steps:
|
| 70 |
data_parallel: true
|
| 71 |
-
use_hard_mining:
|
| 72 |
auto_batch_size: true
|
| 73 |
empty_cache_per_epoch: true
|
| 74 |
save_best: true
|
| 75 |
save_latest: true
|
| 76 |
-
checkpoint_period:
|
| 77 |
eval_interval: 1
|
| 78 |
-
early_stopping_patience:
|
| 79 |
early_stopping_metric: val_iou
|
| 80 |
early_stopping_mode: max
|
| 81 |
push_to_hub: true
|
| 82 |
hub_repo: KhangTruong/Testing-model
|
| 83 |
hub_version: v1
|
| 84 |
-
batch_size: 2
|
| 85 |
hf_repo: KhangTruong/Testing-model
|
| 86 |
hard_mining:
|
| 87 |
-
enabled:
|
| 88 |
metric: median
|
| 89 |
reset_epochs: 5
|
| 90 |
bootstrapping:
|
| 91 |
enabled: false
|
| 92 |
run_bootstrap: false
|
| 93 |
-
epochs:
|
| 94 |
num_samples: 512
|
| 95 |
batch_size: null
|
| 96 |
-
learning_rate:
|
| 97 |
freeze_strategy: channel_stream
|
| 98 |
stream_ratio: 0.5
|
| 99 |
release_mode: restore
|
|
@@ -104,7 +139,7 @@ bootstrapping:
|
|
| 104 |
early_stopping: false
|
| 105 |
patience: 3
|
| 106 |
logging:
|
| 107 |
-
log_interval:
|
| 108 |
log_memory: true
|
| 109 |
measure_network: true
|
| 110 |
post_processing:
|
|
|
|
| 1 |
project:
|
| 2 |
+
name: default
|
| 3 |
seed: 42
|
| 4 |
+
device: auto
|
| 5 |
+
output_dir: outputs/RUN/default
|
| 6 |
hub_repo: null
|
| 7 |
resume_repo: null
|
| 8 |
data:
|
| 9 |
+
dataset_name: KhangTruong/COCO-inpainted
|
| 10 |
+
streaming: true
|
| 11 |
image_size:
|
| 12 |
+
- 256
|
| 13 |
+
- 256
|
| 14 |
+
batch_size: 128
|
| 15 |
+
num_workers: -1
|
| 16 |
+
pin_memory: true
|
| 17 |
+
shuffle_buffer_size: 32
|
| 18 |
train_split: train
|
| 19 |
val_split: validation
|
| 20 |
+
test_split: validation
|
| 21 |
+
eval_split: validation
|
| 22 |
+
train_samples_per_epoch: -1
|
| 23 |
val_samples_per_epoch: -1
|
| 24 |
+
val_samples: -1
|
| 25 |
+
test_samples: -1
|
| 26 |
evaluate_on_test: true
|
| 27 |
augmentations:
|
| 28 |
horizontal_flip: 0.5
|
| 29 |
vertical_flip: 0.0
|
| 30 |
+
random_rotate90: 0.25
|
| 31 |
color_jitter: 0.0
|
| 32 |
+
prefetch_batches: 48
|
| 33 |
model:
|
| 34 |
+
name: diffusion_diff_minimized
|
| 35 |
in_channels: 3
|
| 36 |
out_channels: 1
|
| 37 |
features:
|
| 38 |
+
- 64
|
| 39 |
+
- 128
|
| 40 |
+
- 256
|
| 41 |
+
- 512
|
| 42 |
bilinear: true
|
| 43 |
+
dropout: 0.1
|
| 44 |
+
aux_classifier: true
|
| 45 |
num_classes: 3
|
| 46 |
gradient_checkpointing: false
|
| 47 |
+
pretrained_model_name_or_path: segmind/tiny-sd
|
| 48 |
+
vae_subfolder: vae
|
| 49 |
+
unet_subfolder: unet
|
| 50 |
+
diffuser_fp16: true
|
| 51 |
+
device_map: cuda
|
| 52 |
+
freeze_encoder: true
|
| 53 |
+
use_encoder_skips: false
|
| 54 |
+
use_perpendicular_skips: true
|
| 55 |
+
timesteps:
|
| 56 |
+
- 250
|
| 57 |
+
timestep_embed_dim: 32
|
| 58 |
+
sigma_embed_dim: 32
|
| 59 |
+
include_noisy_latents: true
|
| 60 |
+
include_added_noise: true
|
| 61 |
+
include_predicted_noise: true
|
| 62 |
+
include_noise_diff: true
|
| 63 |
+
include_z0: true
|
| 64 |
+
scaling_factor: 0.18215
|
| 65 |
+
decoder:
|
| 66 |
+
channels:
|
| 67 |
+
- 256
|
| 68 |
+
- 128
|
| 69 |
+
- 64
|
| 70 |
+
- 32
|
| 71 |
+
upsample_mode: bilinear
|
| 72 |
+
norm_layer: batchnorm
|
| 73 |
+
z_norm: groupnorm
|
| 74 |
+
activation: silu
|
| 75 |
+
dropout: 0.1
|
| 76 |
+
num_res_blocks: 1
|
| 77 |
+
input_rescale: true
|
| 78 |
loss:
|
| 79 |
mask_loss_type: combined
|
| 80 |
bce_weight: 0.5
|
| 81 |
dice_weight: 0.5
|
| 82 |
focal_weight: 0.5
|
| 83 |
focal_gamma: 2.0
|
| 84 |
+
focal_alpha: 0.75
|
| 85 |
aux_loss_type: cross_entropy
|
| 86 |
aux_weight: 0.2
|
| 87 |
+
pos_weight: 1.0
|
| 88 |
+
aux_classifier: true
|
| 89 |
training:
|
| 90 |
+
epochs: 40
|
| 91 |
+
learning_rate: 0.0003
|
| 92 |
weight_decay: 0.0001
|
| 93 |
optimizer: adamw
|
| 94 |
use_8bit_optimizer: false
|
|
|
|
| 101 |
warmup_epochs: 1
|
| 102 |
min_lr: 1.0e-06
|
| 103 |
grad_clip_norm: 1.0
|
| 104 |
+
amp: true
|
| 105 |
+
gradient_accumulation_steps: 4
|
| 106 |
data_parallel: true
|
| 107 |
+
use_hard_mining: true
|
| 108 |
auto_batch_size: true
|
| 109 |
empty_cache_per_epoch: true
|
| 110 |
save_best: true
|
| 111 |
save_latest: true
|
| 112 |
+
checkpoint_period: 2m
|
| 113 |
eval_interval: 1
|
| 114 |
+
early_stopping_patience: 4
|
| 115 |
early_stopping_metric: val_iou
|
| 116 |
early_stopping_mode: max
|
| 117 |
push_to_hub: true
|
| 118 |
hub_repo: KhangTruong/Testing-model
|
| 119 |
hub_version: v1
|
|
|
|
| 120 |
hf_repo: KhangTruong/Testing-model
|
| 121 |
hard_mining:
|
| 122 |
+
enabled: true
|
| 123 |
metric: median
|
| 124 |
reset_epochs: 5
|
| 125 |
bootstrapping:
|
| 126 |
enabled: false
|
| 127 |
run_bootstrap: false
|
| 128 |
+
epochs: 30
|
| 129 |
num_samples: 512
|
| 130 |
batch_size: null
|
| 131 |
+
learning_rate: 0.0005
|
| 132 |
freeze_strategy: channel_stream
|
| 133 |
stream_ratio: 0.5
|
| 134 |
release_mode: restore
|
|
|
|
| 139 |
early_stopping: false
|
| 140 |
patience: 3
|
| 141 |
logging:
|
| 142 |
+
log_interval: 20
|
| 143 |
log_memory: true
|
| 144 |
measure_network: true
|
| 145 |
post_processing:
|
versions/v1/manifest.json
CHANGED
|
@@ -5,12 +5,13 @@
|
|
| 5 |
"versions_meta": {
|
| 6 |
"v1": {
|
| 7 |
"version": "v1",
|
| 8 |
-
"best_score": "0.
|
| 9 |
-
"best_epoch": "
|
| 10 |
-
"total_epochs": "
|
| 11 |
-
"step": "
|
| 12 |
-
"updated_at": "2026-10-06T13:
|
| 13 |
"files": [
|
|
|
|
| 14 |
"checkpoint_latest.pt",
|
| 15 |
"checkpoint_periodic.pt"
|
| 16 |
]
|
|
|
|
| 5 |
"versions_meta": {
|
| 6 |
"v1": {
|
| 7 |
"version": "v1",
|
| 8 |
+
"best_score": "0.15213540285745106",
|
| 9 |
+
"best_epoch": "10",
|
| 10 |
+
"total_epochs": "10",
|
| 11 |
+
"step": "152730",
|
| 12 |
+
"updated_at": "2026-10-06T13:24:10.086971+00:00",
|
| 13 |
"files": [
|
| 14 |
+
"checkpoint_best.pt",
|
| 15 |
"checkpoint_latest.pt",
|
| 16 |
"checkpoint_periodic.pt"
|
| 17 |
]
|