Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't find Utils.py #16

Open
Ayayaya527 opened this issue Feb 23, 2019 · 1 comment
Open

I can't find Utils.py #16

Ayayaya527 opened this issue Feb 23, 2019 · 1 comment

Comments

@Ayayaya527
Copy link

Hi @xanderchf
Thanks for your code!
But I can't find the utils.py , It would be helpful if you can release this part of code.

Thanks!

@agustincl
Copy link

agustincl commented May 1, 2019

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']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants