Comments (2)
hi, [pcb9382]
我也尝试导出模型到ONNX
I also tried exporting the model to ONNX.
期间报了好几个错
During this period, several errors were reported.
1. AttributeError: Can't get attribute 'StemBlock' on <module 'ultralytics.nn.modules' from '/home/pcb/.local/lib/python3.8/site-packages/ultralytics/nn/modules/init.py'>
在作者自己的ultralytics里是有StemBlock这个函数得,但导出时我们安装使用是官方的包 来自于 命令“pip install ultralytics”
There is a function called StemBlock in the author's own ultralytics, but when exporting, we install and use an official package from the command "pip install ultralytics"
解决办法:
solution:
copy :
xxx\yolov8-face\ultralytics\nn\modules\block.py
xxx\yolov8-face\ultralytics\nn\modules_init_.py
to :
xxx\anaconda\envs\yolov8\Lib\site-packages\ultralytics\nn\modules\block.py
xxx\anaconda\envs\yolov8\Lib\site-packages\ultralytics\nn\modules_init_.py
from yolov8-face.
I want to export the model as onnx opset 11
I succeeded, and all the steps to try are as follows:
- pip install torch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 -i https://pypi.doubanio.com/simple
answer from: we0091234/yolov8-plate#2
- pip install ultralytics==8.0.134 -i https://pypi.tuna.tsinghua.edu.cn/simple
version from: xxx/yolov8-face/ultralytics/init.py
copy :
xxx\yolov8-face\ultralytics\nn\modules\block.py
xxx\yolov8-face\ultralytics\nn\modules_init_.py
to :
xxx\anaconda\envs\yolov8\Lib\site-packages\ultralytics\nn\modules\block.py
xxx\anaconda\envs\yolov8\Lib\site-packages\ultralytics\nn\modules_init_.py
- code:
export.py
from ultralytics import YOLO
model = YOLO("xxx/yolov8n-face.pt")
success = model.export(format="onnx", opset=11, simplify=True)
from yolov8-face.
Related Issues (20)
- yolov8-lite-t yaml HOT 1
- C++ and TensorRT implementation of yolov5face yolov7face yolov8face
- request
- yolov8-lite-t AND yolov8-lite-s
- Can I know how the yamal file of yolov8-face-n is configured?
- Question: yolov8s and yolov8m weights
- CPP yolov8 detection boxes not right position HOT 6
- train model
- 5个关键点
- How does the predictor postprocess the preds of model while infering? Cant find implementation.
- 12 types of license plate recognition, implemented by C++ TneosrRT, with an accuracy rate of up to 99.5%!!!
- yolov8-face performance not as good as yolov7-face HOT 1
- widerface landmarks dataset HOT 1
- Can't load my own exported .onnx model from official yolov8n-face.pt, how to correctly export .pt to .onnx model? HOT 5
- Cannot use yolov8-lite-s HOT 3
- Using YOLOv5s with this repo HOT 1
- Can you provide 8s, 8m size face model? HOT 1
- 标注里没有landmark的框loss部分有做处理吗? HOT 1
- 数据集在哪里下载? HOT 1
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 yolov8-face.