This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ultralytics YOLOv5 🚀, AGPL-3.0 license | |
# Hyperparameters for low-augmentation COCO training from scratch | |
# python train.py --batch 64 --cfg yolov5n6.yaml --weights '' --data coco.yaml --img 640 --epochs 300 --linear | |
# See tutorials for hyperparameter evolution https://github.com/ultralytics/yolov5#tutorials | |
lr0: 0.001 # initial learning rate (SGD=1E-2, Adam=1E-3) | |
lrf: 0.01 # final OneCycleLR learning rate (lr0 * lrf) | |
# lr0: 0.0002 # initial learning rate (SGD=1E-2, Adam=1E-3) | |
# lrf: 0.2 # final OneCycleLR learning rate (lr0 * lrf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------------------------- | |
# ... some modules and imports is not showing here | |
# -------------------------------------------------------------------- | |
# REPAIR implementations | |
def is_batchnorm(module): # | |
return isinstance(module, nn.modules.batchnorm._BatchNorm) | |
# if we need to do with rotation? | |
# basic implementation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from collections import OrderedDict | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
from torchviz import make_dot | |
#-------------------------------------------------# |