Browse Source

Update tools.py

main
BBing 2 years ago
parent
commit
8c562294dc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/tools.py

+ 1
- 1
utils/tools.py View File

@@ -1,6 +1,6 @@
import numpy as np import numpy as np
import torch import torch
1
def adjust_learning_rate(optimizer, epoch, args): def adjust_learning_rate(optimizer, epoch, args):
# lr = args.learning_rate * (0.2 ** (epoch // 2)) # lr = args.learning_rate * (0.2 ** (epoch // 2))
if args.lradj=='type1': if args.lradj=='type1':


Loading…
Cancel
Save