-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
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
Hyperparameter evolution with optimizer key in hyps dict #346
Comments
@Zacchaeus14 yes, we've recently updated this region of the code, but we have not tested hyperparameter evolution with it. I will try to look over this. |
@Zacchaeus14 I've patched this specific problem, but hyperparameter evolution is not going to work the way things are currently due to the presence of the optimizer choice in the hyp dictionary. I'll leave this open with a TODO, but I don't have a timeline for you. In the meantime, do not evolve. |
Got it, thanks |
@Zacchaeus14 |
Really appreciate it! Your work definitely pushed the field forward! |
@Zacchaeus14 thanks! We should be adding a hyperparameter evolution tutorial as well in the next few days. I'm running it now on the coco128 dataset and it seems to be working well. I also just realized we should probably automatically saved the final result as evolved_hyps.yaml, and then you can train with this directly using the existing argparser updates:
Line 402 in 8056fe2
|
❔Question
When I evolve hyperparameters, tb_writer seems to be None.
Additional context
Apex recommended for faster mixed precision training: https://github.com/NVIDIA/apex
Namespace(batch_size=2, bucket='', cache_images=False, cfg='models/yolov5x.yaml', data='config/config.yaml', device='', epochs=10, evolve=True, hyp='', img_size=[1024], multi_scale=False, name='yolov5x_hyp', noautoanchor=False, nosave=False, notest=False, rect=False, resume=False, single_cls=False, weights='')
Using CUDA device0 _CudaDeviceProperties(name='Tesla P100-PCIE-16GB', total_memory=16280MB)
Hyperparameters {'optimizer': 'SGD', 'lr0': 0.01, 'momentum': 0.937, 'weight_decay': 0.0005, 'giou': 0.05, 'cls': 0.58, 'cls_pw': 1.0, 'obj': 1.0, 'obj_pw': 1.0, 'iou_t': 0.2, 'anchor_t': 4.0, 'fl_gamma': 0.0, 'hsv_h': 0.014, 'hsv_s': 0.68, 'hsv_v': 0.36, 'degrees': 0.0, 'translate': 0.0, 'scale': 0.5, 'shear': 0.0}
Traceback (most recent call last):
File "train.py", line 447, in
results = train(hyp.copy())
File "train.py", line 47, in train
log_dir = tb_writer.log_dir # run directory
AttributeError: 'NoneType' object has no attribute 'log_dir'
The text was updated successfully, but these errors were encountered: