Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuse not defined. #7

Closed
mad-fogs opened this issue Jun 1, 2020 · 2 comments
Closed

fuse not defined. #7

mad-fogs opened this issue Jun 1, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@mad-fogs
Copy link

mad-fogs commented Jun 1, 2020

when export_onnx is set to be true, error will be outcome:
AttributeError: 'Model' object has no attribute 'fuse'

@mad-fogs mad-fogs added the bug Something isn't working label Jun 1, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2020

Hello @mad-fogs, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Google Colab Notebook, Docker Image, and GCP Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as: - Cloud-based AI surveillance systems operating on hundreds of HD video streams in realtime. - Edge AI integrated into custom iOS and Android apps for realtime 30 FPS video inference. - Custom data training, hyperparameter evolution, and model exportation to any destination.

For more information please visit https://www.ultralytics.com.

@glenn-jocher
Copy link
Member

glenn-jocher commented Jun 1, 2020

@mad-fogs thank you for the bug report! This should be fixed in df7988d. We've moved onnx export functionality from detect.py into it's own file at ./models/onnx_export.py:
https://github.com/ultralytics/yolov5/blob/master/models/onnx_export.py

Example usage of the new file:

$ export PYTHONPATH="$PWD"
$ python models/onnx_export.py --weights ./weights/yolov5s.pt --img 640 --batch 1

.fuse() functionality is not available yet, so we've commented out this part in the new file and marked it as TODO.

zldrobit pushed a commit to zldrobit/yolov5 that referenced this issue Sep 3, 2022
add val_instseg.py&&remove useless code
manole-alexandru added a commit to manole-alexandru/yolov5-uolo that referenced this issue Mar 25, 2023
manole-alexandru added a commit to manole-alexandru/yolov5-uolo that referenced this issue Mar 25, 2023
manole-alexandru added a commit to manole-alexandru/yolov5-uolo that referenced this issue Mar 25, 2023
manole-alexandru added a commit to manole-alexandru/yolov5-uolo that referenced this issue Mar 26, 2023
@ShAmoNiA ShAmoNiA mentioned this issue Apr 8, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants