Circular reference caused by the load_from_ultralytics()
#368
Labels
bug / fix
Something isn't working
code quality
Code format and unit tests
dependencies
Pull requests that update a dependency file
Hi @mattpopovich , that's my bad, I mistakenly put the following two functions in the current position, and these two dependencies will cause the circular reference calls. I think it should be better to move
load_from_ultralytics()
into "yolort/models/_utils.py" and movecontains_any_tensor
into "yolort/utils/__init__.py" to solve this problem entirely.https://github.com/zhiqwang/yolov5-rt-stack/blob/9a27b916da21a0143eb5497ee7ec6dced69f2358/yolort/utils/update_module_state.py#L40
https://github.com/zhiqwang/yolov5-rt-stack/blob/9a27b916da21a0143eb5497ee7ec6dced69f2358/yolort/data/_helper.py#L52
I'll submit a PR to resolve this issue.
Originally posted by @zhiqwang in #367 (comment)
The text was updated successfully, but these errors were encountered: