-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ add wadiqam pretrained models
- Loading branch information
Showing
8 changed files
with
164 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 16 additions & 13 deletions
29
...ns/train/WaDIQaM/train_WaDIQaM_FR_TID.yml → .../train/WaDIQaM/train_WaDIQaM_FR_kadid.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# general settings | ||
name: 005_WaDIQaM_FR_koniq | ||
model_type: WaDIQaMModel | ||
num_gpu: 1 # set num_gpu: 0 for cpu mode | ||
manual_seed: 123 | ||
|
||
# dataset and data loader settings | ||
datasets: | ||
train: | ||
name: koniq10k | ||
type: GeneralNRDataset | ||
dataroot_target: ./datasets/koniq10k/512x384 | ||
meta_info_file: ./datasets/meta_info/meta_info_KonIQ10kDataset.csv | ||
split_file: ./datasets/meta_info/koniq10k_official.pkl | ||
mos_range: [0, 100] | ||
lower_better: false | ||
mos_normalize: true | ||
|
||
# data loader | ||
use_shuffle: true | ||
num_worker_per_gpu: 12 | ||
batch_size_per_gpu: 64 | ||
dataset_enlarge_ratio: 1 | ||
prefetch_mode: cpu | ||
num_prefetch_queue: 128 | ||
|
||
val: | ||
name: koniq10k | ||
type: GeneralNRDataset | ||
dataroot_target: ./datasets/koniq10k/512x384 | ||
meta_info_file: ./datasets/meta_info/meta_info_KonIQ10kDataset.csv | ||
split_file: ./datasets/meta_info/koniq10k_official.pkl | ||
mos_range: [0, 100] | ||
lower_better: false | ||
mos_normalize: true | ||
|
||
num_worker_per_gpu: 4 | ||
batch_size_per_gpu: 32 | ||
|
||
# network structures | ||
network: | ||
type: WaDIQaM | ||
metric_type: NR | ||
pretrained_model_path: ./experiments/005_WaDIQaM_FR_kadid/models/net_best.pth | ||
load_feature_weight_only: True | ||
|
||
# path | ||
path: | ||
pretrain_network_g: ~ | ||
strict_load_g: true | ||
resume_state: ~ | ||
|
||
# training settings | ||
train: | ||
optim: | ||
type: Adam | ||
lr_basemodel: !!float 1e-4 | ||
lr_fc_layers: !!float 1e-4 | ||
lr: !!float 1e-4 | ||
|
||
scheduler: | ||
type: MultiStepLR | ||
milestones: [400, 800, 1200] | ||
gamma: 1 | ||
|
||
total_iter: 40000 # | ||
warmup_iter: -1 # no warm up | ||
|
||
# losses | ||
mos_loss_opt: | ||
type: PLCCLoss | ||
loss_weight: !!float 1.0 | ||
|
||
# validation settings | ||
val: | ||
val_freq: !!float 100 | ||
save_img: false | ||
pbar: true | ||
|
||
key_metric: srcc # if this metric improve, update all metrics. If not specified, each best metric results will be updated separately | ||
metrics: | ||
srcc: | ||
type: calculate_srcc | ||
|
||
plcc: | ||
type: calculate_plcc | ||
|
||
krcc: | ||
type: calculate_krcc | ||
|
||
# logging settings | ||
logger: | ||
print_freq: 20 | ||
save_checkpoint_freq: !!float 5e9 | ||
save_latest_freq: !!float 5e2 | ||
use_tb_logger: true | ||
wandb: | ||
project: ~ | ||
resume_id: ~ | ||
|
||
# dist training settings | ||
dist_params: | ||
backend: nccl | ||
port: 29500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters