Hi KFrank!
Thank you very much for your reply，I tried what you said
        if opt.use_adam:
            params += [{'params': self.awl.parameters(), 'weight_decay': 0}]
            self.optimizer = t.optim.Adam(params)
        else:
            params += [{'params': self.awl.parameters(), 'weight_decay': 0}]
            self.optimizer = t.optim.SGD(params, momentum=0.9)

But the error happened :
Traceback (most recent call last):
  File "train.py", line 138, in <module>
    fire.Fire()
  File "D:\Anaconda3\lib\site-packages\fire\core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "D:\Anaconda3\lib\site-packages\fire\core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "D:\Anaconda3\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "train.py", line 73, in train
    trainer = FasterRCNNTrainer(faster_rcnn).cuda()
  File "D:\python\monoSAR_rcnn\trainer.py", line 63, in __init__
    self.optimizer = self.faster_rcnn.get_optimizer()
  File "D:\python\monoSAR_rcnn\model\faster_rcnn.py", line 310, in get_optimizer
    self.optimizer = t.optim.SGD(params, momentum=0.9)
  File "D:\Anaconda3\lib\site-packages\torch\optim\sgd.py", line 68, in __init__
    super(SGD, self).__init__(params, defaults)
  File "D:\Anaconda3\lib\site-packages\torch\optim\optimizer.py", line 52, in __init__
    self.add_param_group(param_group)
  File "D:\Anaconda3\lib\site-packages\torch\optim\optimizer.py", line 237, in add_param_group
    raise ValueError("parameter group didn't specify a value of required optimization parameter " +
ValueError: parameter group didn't specify a value of required optimization parameter lr

Then I tried to print params，  here’s what print in the last part of this dict:
 {'params': [Parameter containing:
tensor([1., 1.], requires_grad=True)], 'lr': 0.001, 'weight_decay': 0.0005}, 
(this is loss.params){'params': <generator object Module.parameters at 0x00000226C29AEC10>, 'weight_decay': 0}]

So I wonder if this is the problem with loss.params?
Best.
tianle