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

请问您知道如何yolov5在训练中如何加入标签平滑(label smoothing)技巧吗? #19

Open
1 task done
Wanghe1997 opened this issue Nov 19, 2021 · 2 comments
Labels
question Further information is requested

Comments

@Wanghe1997
Copy link

Search before asking

Question

在代码中如何设置并实现呢?谢谢

Additional

No response

@Wanghe1997 Wanghe1997 added the question Further information is requested label Nov 19, 2021
@github-actions
Copy link

👋 你好 @Wanghe1997, 如有任何问题,请首先检查你的运行指令有没有问题,如果指令没有问题,请尝试更新作者仓库的最新代码:

  # 如果没下载官方代码
  $ git clone https://github.com/ultralytics/yolov5.git
  $ cd yolov5
  $ pip install -r requirements.txt
  # 如果已下载官方代码
  $ cd yolov5
  $ git reset --hard
  $ git pull
  $ pip install -r requirements.txt

更多请参考⭐️英文官方教程

依赖

Python版本3.6或更高,python依赖库都在requirements.txt 里面,直接pip install -r requirements.txt即可。
如果你使用Windows的话,尽量使用CUDA10.2和对应版本的pytorch,CUDA11+会有些许问题。

环境

下面是已经配置好环境的免费GPU训练环境:

@wudashuo
Copy link
Owner

代码是现成的,只是默认是0没开启而已

python train.py --label-smoothing 0.01

参数根据你的数据集自己慢慢调吧

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

No branches or pull requests

2 participants