Giter VIP home page Giter VIP logo

yolov8_with_dcnv3's Introduction

项目简介

在YOLOv8中替换卷积为DCNv3,实现有效涨点

YOLOv8代码地址:https://github.com/ultralytics/ultralytics

DCNv3代码地址:https://github.com/OpenGVLab/InternImage

本项目参考:https://blog.csdn.net/java1314777/article/details/134193399

开始使用

环境安装

pip uninstall ultralytics
cd ultralytics\ops_dcnv3
python setup.py install

注意一定要卸载ultralytics包

若setup.py安装出现问题,请升级gcc至8.0及以上版本(Linux)

训练及预测

自行配置并运行主目录中的train.py和predict.py 详情见https://github.com/ultralytics/ultralytics

yolov8_with_dcnv3's People

Contributors

jiangjh0908 avatar

Stargazers

 avatar  avatar  avatar  avatar silence avatar  avatar 肖鹏 avatar  avatar xieerwan avatar  avatar macro avatar  avatar  avatar  avatar  avatar Codefounder avatar  avatar  avatar  avatar  avatar JM Li avatar  avatar  avatar Zolio Marling avatar snacksister avatar John Doe avatar Ventura avatar 艾伦 avatar  avatar  avatar AquaT1C_H4cK avatar  avatar ialex32x avatar chaoqin avatar YiHungWONG avatar  avatar LingYuZhao avatar  avatar Lujia Jin avatar sun0717 avatar  avatar  avatar rookie-ljh avatar  avatar Lei avatar watermelon avatar dinosaur avatar Kunlun Zhu avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Kevins avatar  avatar Yigehaoren8848 avatar F-x avatar jiangsiyi avatar Beacas avatar Vicente Armstrong avatar  avatar su7-gaga avatar MijazzChan avatar chiefass avatar DiscoverTruth avatar Jian avatar  avatar Amen8 avatar azhu avatar maozi avatar  avatar  avatar  avatar  avatar  avatar  avatar Junbo Yang avatar  avatar Meta Luo avatar  avatar  avatar SharplyQ avatar  avatar Victor Teo avatar Jinge Li avatar  avatar  avatar  avatar

Watchers

 avatar

yolov8_with_dcnv3's Issues

setup运行失败

Search before asking

Question

setup运行失败
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
求解!谢谢

Additional

No response

RuntimeError: expected scalar type Half but found Float

Search before asking

  • I have searched the YOLOv8 issues and found no similar bug report.

YOLOv8 Component

No response

Bug

File "/home/lecomet/Yolov8_with_DCNv3/ultralytics/ops_dcnv3/functions/dcnv3_func.py", line 212, in dcnv3_core_pytorch
input_, sampling_grid_, mode='bilinear', padding_mode='zeros', align_corners=False)
File "/home/lecomet/anaconda3/envs/torch111/lib/python3.7/site-packages/torch/nn/functional.py", line 4201, in grid_sample
return torch.grid_sampler(input, grid, mode_enum, padding_mode_enum, align_corners)
RuntimeError: expected scalar type Half but found Float
我用的PYTHON=3.7 我把其中的出现的海象运算符 例如
if a := 15 > 10
改成这个
a = 15
if a > 10:
出现这个问题 请问跟这有关吗

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

删除调试信息

Search before asking

  • I have searched the YOLOv8 issues and found no similar feature requests.

Description

输入: torch.Size([8, 96, 84, 84]) 输入: torch.Size([8, 96, 84, 84]) 输入: torch.Size([8, 96, 84, 84]) 输入: torch.Size([8, 96, 84, 84]) 输入: torch.Size([8, 192, 42, 42]) 输入: torch.Size([8, 192, 42, 42]) 输入: torch.Size([8, 192, 42, 42]) 输入: torch.Size([8, 192, 42, 42]) 输入: torch.Size([8, 288, 21, 21]) 输入: torch.Size([8, 288, 21, 21]) 这个信息在哪个文件一直没找到,

Use case

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.