Comments (9)
你用的训练指令是什么?
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
@SpursLipu
谢谢回复
python3 train.py --data data/obj.data -pt --batch-size 16 --weights weights/yolov3.pt --cfg cfg/yolov3.cfg
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
我在训练的过程中没有遇到过这个问题,你可以检查一下你是用数据集的分类数是否与yolov3.cfg中的分类数相等(80类),-pt是使用在coco上进行预训练的.weights文件时使用的命令,不知道是不是和你的指令有冲突。
另外这个仓库中的detect.py程序是使用原图的分辨率进行检测的,你可以测试一下效果。
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
@SpursLipu
谢谢~
我的是7分类,我把 -pt去除也遇到了同样的问题
你师兄是缩放成256x416的?
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
你用multi-scale训练暂时就没问题了,我在排查你说的问题。
缩放都是使用原分辨率除以输入图片长边算出的缩放倍数进行缩放的,检测时的缩放是没有填充。
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
应该是解决了,你可以再试一下
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
@SpursLipu 非常感谢~
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
When i try to prune the model, I also encounter this error " YOLOLayer object has no attribute 'grid'". My comand is:
python train.py --data --batch-size --weights big_model/best.pt --cfg --sr --s 0.001 --prune 0 --single_cls
Can you give some suggestions? @SpursLipu
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
I have already solve this problem, you can download new version of this repository.
from yolov3v4-modelcompression-multidatasettraining-multibackbone.
Related Issues (20)
- normal裁剪模型后的微调报错shape'[52,29,3,3]' is invalid for input of size 13382
- Introducing articles related to pruning methods
- NameError: name 'Darknet' is not defined HOT 1
- AttributeError: module 'torch.distributed' has no attribute 'init_process_group' HOT 2
- 自己跑的VisDrone数据和你相差过大 HOT 2
- Question in the inference ?
- RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! HOT 3
- RuntimeError: size mismatch, m1: [8 x 1], m2: [8 x 1] at /pytorch/aten/src/THC/generic/THCTensorMathBlas.cu:283
- Compatibility with yolov4-tiny
- conv_b = torch.from_numpy(weights[ptr:ptr + num_b]).view_as(conv_layer.bias) RuntimeError: shape '[18]' is invalid for input of size 0 HOT 1
- pytorch model is not able to do detections.
- Is there a way to convert the best.pt model with -quantized 1 to .onnx?
- Set ONNX_EXPORT=True in models.py 运行detect.py 出错
- IndexError: list index out of range HOT 1
- [email protected]与最新版的u版yolov3框架相差8个点左右
- train.py 437行,为什么最终的loss要乘batch_size / 64?( loss *= batch_size / 64 # scale loss)
- 剪枝后精度太差 HOT 1
- 模型量化问题
- 稀疏模型
- 类型错误: forward() 缺少 1 个必需的位置参数:“x”
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov3v4-modelcompression-multidatasettraining-multibackbone.