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

yolov3_holli_1x1.py is not work. #46

Closed
refill opened this issue Apr 9, 2024 · 3 comments
Closed

yolov3_holli_1x1.py is not work. #46

refill opened this issue Apr 9, 2024 · 3 comments
Assignees

Comments

@refill
Copy link

refill commented Apr 9, 2024

Describe the bug

pytorch_yolov3_holli_1x1.py is not work.

(python_env) dn-dev@grayskull-dev:~/tt-buda-demos/model_demos$ python3 ./cv_demos/yolo_v3/pytorch_yolov3_holli_1x1.py
Traceback (most recent call last):
File "/home/dn-dev/tt-buda-demos/model_demos/./cv_demos/yolo_v3/pytorch_yolov3_holli_1x1.py", line 9, in
from cv_demos.yolo_v3.holli_src.yolov3 import *
File "/home/dn-dev/tt-buda-demos/model_demos/cv_demos/yolo_v3/holli_src/yolov3.py", line 5, in
from .yolov3_base import *
File "/home/dn-dev/tt-buda-demos/model_demos/cv_demos/yolo_v3/holli_src/yolov3_base.py", line 3, in
from collections import Iterable, OrderedDict, defaultdict
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/init.py)

Expected behavior

System (please complete the following information):

  • Device: E75
  • Host information: AMD Ryzen 5 7600
  • OS : 22.04
  • Version : v0.10.9.gs.240401-alpha

Additional context

  • python 3.10

The Iterable abstract class was removed from collections in Python 3.10. See the deprecation note in the 3.9 collections docs. In the section Removed of the 3.10 docs, the item

@milank94
Copy link
Collaborator

milank94 commented Apr 9, 2024

@refill The alpha releases will generally only contain a subset of new features or models for test. It wont be a stable release that supports all models.

I would encourage you to check out the Models Support Table to validated which version of the TT-Buda release supports which model.

@milank94 milank94 self-assigned this Apr 9, 2024
@milank94
Copy link
Collaborator

milank94 commented Apr 9, 2024

@refill fix for the Iterable import error will be patched in #47; however, YOLOv3 support is not guaranteed on alpha release v0.10.9-alpha. You can give it a try.

@refill-dn
Copy link

I checked code.
It works.
Thanks @milank94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants