-
Notifications
You must be signed in to change notification settings - Fork 35
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
发现的几个问题:路径 #3
Comments
谢谢提出的问题。
|
我用 yolox-nano 训练的时候也遇到显存不够的情况了,因为之前还有别的模型在训练,现在重新在一块gpu 上再训练一次 |
可以试一下把多尺寸训练关闭,多尺寸训练占用显存变化较大。opt.random_size = (20, 21),另外train.sh里面传的有batch_size 这里也可以调小一下 |
(1)这里面多尺度训练要怎么改能,我现在面临的任务是 输入图像尺寸是 1280x720 ,但是检测目标一般在 20x20左右,并且一张图像里可能平均只有 3~4个左右目标。想问下 这里的 random_size 是啥意思。 (2)我现在把代码修改成,可以在指定gpu 跑,但是,跑起来还是发现 0 gpu会占用一部分显存大概 800M 显存,和训练指定的 gpu 是同一个 PID,不知道是怎么回事。 |
(1)多尺度opt.random_size = (a, b)表示随机选择从a到(b-1)的值x,然后x32为最终尺寸。所以设置opt.random_size = (20, 21)时只能选择x=20,这样输入尺寸只能是2032=640,这也就取消了多尺寸训练,可以参考https://github.com/zhangming8/yolox-pytorch/blob/main/train.py#L106 |
20210731 update: |
请问下百度云的yolox_coco文件是预训练模型还是在coco上训练好的,如果是已经在coco训练好的权重应该怎么获取imagenet的预训练模型呢 |
2 目标的类名,不需要写在config.py中吧,直接从数据中读
The text was updated successfully, but these errors were encountered: