Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yolov5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
yolov5
Commits
1b100cd5
提交
1b100cd5
authored
3月 29, 2021
作者:
Glenn Jocher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Created using Colaboratory (#2649)
上级
866bc7d6
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
tutorial.ipynb
tutorial.ipynb
+7
-7
没有找到文件。
tutorial.ipynb
浏览文件 @
1b100cd5
...
@@ -563,7 +563,7 @@
...
@@ -563,7 +563,7 @@
"clear_output()\n",
"clear_output()\n",
"print('Setup complete. Using torch %s %s' % (torch.__version__, torch.cuda.get_device_properties(0) if torch.cuda.is_available() else 'CPU'))"
"print('Setup complete. Using torch %s %s' % (torch.__version__, torch.cuda.get_device_properties(0) if torch.cuda.is_available() else 'CPU'))"
],
],
"execution_count":
1
,
"execution_count":
null
,
"outputs": [
"outputs": [
{
{
"output_type": "stream",
"output_type": "stream",
...
@@ -689,7 +689,7 @@
...
@@ -689,7 +689,7 @@
"torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/releases/download/v1.0/coco2017val.zip', 'tmp.zip')\n",
"torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/releases/download/v1.0/coco2017val.zip', 'tmp.zip')\n",
"!unzip -q tmp.zip -d ../ && rm tmp.zip"
"!unzip -q tmp.zip -d ../ && rm tmp.zip"
],
],
"execution_count":
2
,
"execution_count":
null
,
"outputs": [
"outputs": [
{
{
"output_type": "display_data",
"output_type": "display_data",
...
@@ -729,7 +729,7 @@
...
@@ -729,7 +729,7 @@
"# Run YOLOv5x on COCO val2017\n",
"# Run YOLOv5x on COCO val2017\n",
"!python test.py --weights yolov5x.pt --data coco.yaml --img 640 --iou 0.65"
"!python test.py --weights yolov5x.pt --data coco.yaml --img 640 --iou 0.65"
],
],
"execution_count":
3
,
"execution_count":
null
,
"outputs": [
"outputs": [
{
{
"output_type": "stream",
"output_type": "stream",
...
@@ -798,9 +798,9 @@
...
@@ -798,9 +798,9 @@
"source": [
"source": [
"# Download COCO test-dev2017\n",
"# Download COCO test-dev2017\n",
"torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/releases/download/v1.0/coco2017labels.zip', 'tmp.zip')\n",
"torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/releases/download/v1.0/coco2017labels.zip', 'tmp.zip')\n",
"!unzip -q tmp.zip -d ../ && rm tmp.zip
# unzip labels\n",
"!unzip -q tmp.zip -d ../ && rm tmp.zip # unzip labels\n",
"!f=\"test2017.zip\" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f && rm $f # 7GB, 41k images\n",
"!f=\"test2017.zip\" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f && rm $f # 7GB, 41k images\n",
"%mv ./test2017 .
/coco/images && mv ./coco ../ # move images to /coco and move /coco next to /yolov5
"
"%mv ./test2017 .
./coco/images # move to /coco
"
],
],
"execution_count": null,
"execution_count": null,
"outputs": []
"outputs": []
...
@@ -853,7 +853,7 @@
...
@@ -853,7 +853,7 @@
"torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/releases/download/v1.0/coco128.zip', 'tmp.zip')\n",
"torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/releases/download/v1.0/coco128.zip', 'tmp.zip')\n",
"!unzip -q tmp.zip -d ../ && rm tmp.zip"
"!unzip -q tmp.zip -d ../ && rm tmp.zip"
],
],
"execution_count":
4
,
"execution_count":
null
,
"outputs": [
"outputs": [
{
{
"output_type": "display_data",
"output_type": "display_data",
...
@@ -930,7 +930,7 @@
...
@@ -930,7 +930,7 @@
"# Train YOLOv5s on COCO128 for 3 epochs\n",
"# Train YOLOv5s on COCO128 for 3 epochs\n",
"!python train.py --img 640 --batch 16 --epochs 3 --data coco128.yaml --weights yolov5s.pt --nosave --cache"
"!python train.py --img 640 --batch 16 --epochs 3 --data coco128.yaml --weights yolov5s.pt --nosave --cache"
],
],
"execution_count":
5
,
"execution_count":
null
,
"outputs": [
"outputs": [
{
{
"output_type": "stream",
"output_type": "stream",
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论