Cannot change the parameters in config
Opened this issue · 1 comments
Hi, this is my first time asking questions on GitHub, please point out if anything is unclear
After changing the parameters in Config(), I cannot change them again (num_nb). My config is shown below:
class Config(): def __init__(self): self.det_head = 'pip' self.net_stride = 32 self.batch_size = 16 self.init_lr = 0.0001 self.num_epochs = 60 self.decay_steps = [30, 50] self.input_size = 256 self.backbone = 'resnet18' self.pretrained = True self.criterion_cls = 'l2' self.criterion_reg = 'l1' self.cls_loss_weight = 10 self.reg_loss_weight = 1 self.num_lms = 4 self.save_interval = self.num_epochs self.num_nb = 0 self.use_gpu = True self.gpu_id = 0
But when running run_train.sh, it showed the last parameter.
experiment_name: pip_32_16_60_r18_l2_l1_10_1_nb10 data_name: CFP det_head: pip net_stride: 32 batch_size: 16 init_lr: 0.0001 num_epochs: 60 decay_steps: [30, 50] input_size: 256 backbone: resnet18 pretrained: True criterion_cls: l2 criterion_reg: l1 cls_loss_weight: 10 reg_loss_weight: 1 num_lms: 4 save_interval: 60 _num_nb: 10_ use_gpu: True gpu_id: 2
I was confused for a long time,so I came to ask you.
Maybe you have changed the wrong config file? Please make sure the config file you loaded is the same one that you edited.