Skip to content

使用SAHI模块完成超分辨率以及小目标检测是应用示例,仅供参考。

Notifications You must be signed in to change notification settings

kivenyangming/SAHI-yolov5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

环境

·win + pycharm ·sahi==0.8.4 ·yolov5==5.0 ·pytorch==1.7.1+cu101

# 安装gpu版torch和torchvision
pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
# 
pip install yolov5
pip install sahi==0.8.4
pip install fiftyone imantics

RUN

  1. git clone https://github.com/kivenyangming/SAHI-yolov5.git

  2. tree:
    main.py
    README.md
    samll-vehicles1.jpg
    yolov5s6.pt

  3. vim main.py:


line4: yolov5_model_path  = yolov5_model_path = "C:\\Users\\kiven\\Desktop\\SAHI\\yolov5s6.pt"  # 放置你的权重地址
line10:  device="cuda:0",            # or 'cpu'

  1. please change your path and divice
  2. python main.py

About

使用SAHI模块完成超分辨率以及小目标检测是应用示例,仅供参考。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages