Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yolov5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
yolov5
Commits
9d8ed37d
Unverified
提交
9d8ed37d
authored
5月 13, 2022
作者:
Glenn Jocher
提交者:
GitHub
5月 13, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename `utils/datasets.py` > `utils/dataloaders.py` (#7799)
上级
5a1ef325
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
detect.py
detect.py
+1
-1
export.py
export.py
+1
-1
common.py
models/common.py
+1
-1
train.py
train.py
+1
-1
autoanchor.py
utils/autoanchor.py
+1
-1
dataloaders.py
utils/dataloaders.py
+0
-0
wandb_utils.py
utils/loggers/wandb/wandb_utils.py
+1
-1
val.py
val.py
+1
-1
没有找到文件。
detect.py
浏览文件 @
9d8ed37d
...
@@ -39,7 +39,7 @@ if str(ROOT) not in sys.path:
...
@@ -39,7 +39,7 @@ if str(ROOT) not in sys.path:
ROOT
=
Path
(
os
.
path
.
relpath
(
ROOT
,
Path
.
cwd
()))
# relative
ROOT
=
Path
(
os
.
path
.
relpath
(
ROOT
,
Path
.
cwd
()))
# relative
from
models.common
import
DetectMultiBackend
from
models.common
import
DetectMultiBackend
from
utils.data
set
s
import
IMG_FORMATS
,
VID_FORMATS
,
LoadImages
,
LoadStreams
from
utils.data
loader
s
import
IMG_FORMATS
,
VID_FORMATS
,
LoadImages
,
LoadStreams
from
utils.general
import
(
LOGGER
,
check_file
,
check_img_size
,
check_imshow
,
check_requirements
,
colorstr
,
cv2
,
from
utils.general
import
(
LOGGER
,
check_file
,
check_img_size
,
check_imshow
,
check_requirements
,
colorstr
,
cv2
,
increment_path
,
non_max_suppression
,
print_args
,
scale_coords
,
strip_optimizer
,
xyxy2xywh
)
increment_path
,
non_max_suppression
,
print_args
,
scale_coords
,
strip_optimizer
,
xyxy2xywh
)
from
utils.plots
import
Annotator
,
colors
,
save_one_box
from
utils.plots
import
Annotator
,
colors
,
save_one_box
...
...
export.py
浏览文件 @
9d8ed37d
...
@@ -65,7 +65,7 @@ if platform.system() != 'Windows':
...
@@ -65,7 +65,7 @@ if platform.system() != 'Windows':
from
models.experimental
import
attempt_load
from
models.experimental
import
attempt_load
from
models.yolo
import
Detect
from
models.yolo
import
Detect
from
utils.data
set
s
import
LoadImages
from
utils.data
loader
s
import
LoadImages
from
utils.general
import
(
LOGGER
,
check_dataset
,
check_img_size
,
check_requirements
,
check_version
,
colorstr
,
from
utils.general
import
(
LOGGER
,
check_dataset
,
check_img_size
,
check_requirements
,
check_version
,
colorstr
,
file_size
,
print_args
,
url2file
)
file_size
,
print_args
,
url2file
)
from
utils.torch_utils
import
select_device
from
utils.torch_utils
import
select_device
...
...
models/common.py
浏览文件 @
9d8ed37d
...
@@ -21,7 +21,7 @@ import yaml
...
@@ -21,7 +21,7 @@ import yaml
from
PIL
import
Image
from
PIL
import
Image
from
torch.cuda
import
amp
from
torch.cuda
import
amp
from
utils.data
set
s
import
exif_transpose
,
letterbox
from
utils.data
loader
s
import
exif_transpose
,
letterbox
from
utils.general
import
(
LOGGER
,
check_requirements
,
check_suffix
,
check_version
,
colorstr
,
increment_path
,
from
utils.general
import
(
LOGGER
,
check_requirements
,
check_suffix
,
check_version
,
colorstr
,
increment_path
,
make_divisible
,
non_max_suppression
,
scale_coords
,
xywh2xyxy
,
xyxy2xywh
)
make_divisible
,
non_max_suppression
,
scale_coords
,
xywh2xyxy
,
xyxy2xywh
)
from
utils.plots
import
Annotator
,
colors
,
save_one_box
from
utils.plots
import
Annotator
,
colors
,
save_one_box
...
...
train.py
浏览文件 @
9d8ed37d
...
@@ -44,7 +44,7 @@ from models.yolo import Model
...
@@ -44,7 +44,7 @@ from models.yolo import Model
from
utils.autoanchor
import
check_anchors
from
utils.autoanchor
import
check_anchors
from
utils.autobatch
import
check_train_batch_size
from
utils.autobatch
import
check_train_batch_size
from
utils.callbacks
import
Callbacks
from
utils.callbacks
import
Callbacks
from
utils.data
set
s
import
create_dataloader
from
utils.data
loader
s
import
create_dataloader
from
utils.downloads
import
attempt_download
from
utils.downloads
import
attempt_download
from
utils.general
import
(
LOGGER
,
check_dataset
,
check_file
,
check_git_status
,
check_img_size
,
check_requirements
,
from
utils.general
import
(
LOGGER
,
check_dataset
,
check_file
,
check_git_status
,
check_img_size
,
check_requirements
,
check_suffix
,
check_version
,
check_yaml
,
colorstr
,
get_latest_run
,
increment_path
,
check_suffix
,
check_version
,
check_yaml
,
colorstr
,
get_latest_run
,
increment_path
,
...
...
utils/autoanchor.py
浏览文件 @
9d8ed37d
...
@@ -113,7 +113,7 @@ def kmean_anchors(dataset='./data/coco128.yaml', n=9, img_size=640, thr=4.0, gen
...
@@ -113,7 +113,7 @@ def kmean_anchors(dataset='./data/coco128.yaml', n=9, img_size=640, thr=4.0, gen
if
isinstance
(
dataset
,
str
):
# *.yaml file
if
isinstance
(
dataset
,
str
):
# *.yaml file
with
open
(
dataset
,
errors
=
'ignore'
)
as
f
:
with
open
(
dataset
,
errors
=
'ignore'
)
as
f
:
data_dict
=
yaml
.
safe_load
(
f
)
# model dict
data_dict
=
yaml
.
safe_load
(
f
)
# model dict
from
utils.data
set
s
import
LoadImagesAndLabels
from
utils.data
loader
s
import
LoadImagesAndLabels
dataset
=
LoadImagesAndLabels
(
data_dict
[
'train'
],
augment
=
True
,
rect
=
True
)
dataset
=
LoadImagesAndLabels
(
data_dict
[
'train'
],
augment
=
True
,
rect
=
True
)
# Get label wh
# Get label wh
...
...
utils/data
set
s.py
→
utils/data
loader
s.py
浏览文件 @
9d8ed37d
File moved
utils/loggers/wandb/wandb_utils.py
浏览文件 @
9d8ed37d
...
@@ -15,7 +15,7 @@ ROOT = FILE.parents[3] # YOLOv5 root directory
...
@@ -15,7 +15,7 @@ ROOT = FILE.parents[3] # YOLOv5 root directory
if
str
(
ROOT
)
not
in
sys
.
path
:
if
str
(
ROOT
)
not
in
sys
.
path
:
sys
.
path
.
append
(
str
(
ROOT
))
# add ROOT to PATH
sys
.
path
.
append
(
str
(
ROOT
))
# add ROOT to PATH
from
utils.data
set
s
import
LoadImagesAndLabels
,
img2label_paths
from
utils.data
loader
s
import
LoadImagesAndLabels
,
img2label_paths
from
utils.general
import
LOGGER
,
check_dataset
,
check_file
from
utils.general
import
LOGGER
,
check_dataset
,
check_file
try
:
try
:
...
...
val.py
浏览文件 @
9d8ed37d
...
@@ -37,7 +37,7 @@ ROOT = Path(os.path.relpath(ROOT, Path.cwd())) # relative
...
@@ -37,7 +37,7 @@ ROOT = Path(os.path.relpath(ROOT, Path.cwd())) # relative
from
models.common
import
DetectMultiBackend
from
models.common
import
DetectMultiBackend
from
utils.callbacks
import
Callbacks
from
utils.callbacks
import
Callbacks
from
utils.data
set
s
import
create_dataloader
from
utils.data
loader
s
import
create_dataloader
from
utils.general
import
(
LOGGER
,
check_dataset
,
check_img_size
,
check_requirements
,
check_yaml
,
from
utils.general
import
(
LOGGER
,
check_dataset
,
check_img_size
,
check_requirements
,
check_yaml
,
coco80_to_coco91_class
,
colorstr
,
increment_path
,
non_max_suppression
,
print_args
,
coco80_to_coco91_class
,
colorstr
,
increment_path
,
non_max_suppression
,
print_args
,
scale_coords
,
xywh2xyxy
,
xyxy2xywh
)
scale_coords
,
xywh2xyxy
,
xyxy2xywh
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论