MonoDepth-FPN-PyTorch icon indicating copy to clipboard operation
MonoDepth-FPN-PyTorch copied to clipboard

constants.py

Open dodler opened this issue 6 years ago • 2 comments

Hi, I can't find constants.py in the repository, however it does present in the imports, what can I do with that?

dodler avatar Dec 25 '18 08:12 dodler

And also, I can't find utils.py

dodler avatar Dec 25 '18 08:12 dodler

CONSTANTS You have a copy inside dataset directory

  • cp dataset/constants.py to your directory

UTILS Comment from utils.net_utils import adjust_learning_rate to # from utils.net_utils import adjust_learning_rate From https://github.com/jwyang/faster-rcnn.pytorch/blob/master/lib/model/utils/net_utils.py

Download the net_utils.py, or just define the adjust_learning_rate function

def adjust_learning_rate(optimizer, decay=0.1):
    """Sets the learning rate to the initial LR decayed by 0.5 every 20 epochs"""
    for param_group in optimizer.param_groups:
        param_group['lr'] = decay * param_group['lr']

agustincl avatar May 01 '19 11:05 agustincl