You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi PytorchWildlife team! Thank you for the awesome update, we will be using the new Amazon model in production soon :)
When I upgraded an existing install of PytorchWildlife in an environment with many existing installations like ultralytics and yolo, I had no issues. However, when I try to install the package on a fresh python environment with nothing on it, I get this import error after a successful install:
import PytorchWildlife
Traceback (most recent call last):
File "", line 1, in
File "/mnt/c/Users/jennz/Documents/GitHub/akili.clearml.tasks/venv/lib/python3.12/site-packages/PytorchWildlife/init.py", line 9, in
from .models import *
File "/mnt/c/Users/jennz/Documents/GitHub/akili.clearml.tasks/venv/lib/python3.12/site-packages/PytorchWildlife/models/init.py", line 2, in
from .detection import *
File "/mnt/c/Users/jennz/Documents/GitHub/akili.clearml.tasks/venv/lib/python3.12/site-packages/PytorchWildlife/models/detection/init.py", line 1, in
from .ultralytics_based import *
File "/mnt/c/Users/jennz/Documents/GitHub/akili.clearml.tasks/venv/lib/python3.12/site-packages/PytorchWildlife/models/detection/ultralytics_based/init.py", line 1, in
from .yolov5_base import *
File "/mnt/c/Users/jennz/Documents/GitHub/akili.clearml.tasks/venv/lib/python3.12/site-packages/PytorchWildlife/models/detection/ultralytics_based/yolov5_base.py", line 17, in
from yolov5.utils.general import non_max_suppression, scale_coords
File "/mnt/c/Users/jennz/Documents/GitHub/akili.clearml.tasks/venv/lib/python3.12/site-packages/yolov5/init.py", line 2, in
import yolov5.export as export
File "/mnt/c/Users/jennz/Documents/GitHub/akili.clearml.tasks/venv/lib/python3.12/site-packages/yolov5/export.py", line 62, in
from yolov5.models.yolo import Detect
File "/mnt/c/Users/jennz/Documents/GitHub/akili.clearml.tasks/venv/lib/python3.12/site-packages/yolov5/models/yolo.py", line 25, in
from utils.autoanchor import check_anchor_order
ModuleNotFoundError: No module named 'utils.autoanchor'
I am using Windows Subsystem for Linux with a python 3.12 venv.
I asked my friend to try installing PytorchWildlife on a fresh python 3.10 venv on his Mac and he got this error after importing:
import PytorchWildlife
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "", line 1, in
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/PytorchWildlife/init.py", line 8, in
from .data import *
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/PytorchWildlife/data/init.py", line 1, in
from .datasets import *
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/PytorchWildlife/data/datasets.py", line 9, in
import torch
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/init.py", line 1477, in
from .functional import * # noqa: F403
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/functional.py", line 9, in
import torch.nn.functional as F
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/nn/init.py", line 1, in
from .modules import * # noqa: F403
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/nn/modules/init.py", line 35, in
from .transformer import TransformerEncoder, TransformerDecoder,
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/nn/modules/transformer.py", line 20, in
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
Creating new Ultralytics Settings v0.0.6 file ✅
View Ultralytics Settings with 'yolo settings' or at '/Users/velizarshulev/Library/Application Support/Ultralytics/settings.json'
Update Settings with 'yolo settings key=value', i.e. 'yolo settings runs_dir=path/to/dir'. For help see https://docs.ultralytics.com/quickstart/#ultralytics-settings.
Could you provide some insight on what is happening? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi PytorchWildlife team! Thank you for the awesome update, we will be using the new Amazon model in production soon :)
When I upgraded an existing install of PytorchWildlife in an environment with many existing installations like ultralytics and yolo, I had no issues. However, when I try to install the package on a fresh python environment with nothing on it, I get this import error after a successful install:
I am using Windows Subsystem for Linux with a python 3.12 venv.
I asked my friend to try installing PytorchWildlife on a fresh python 3.10 venv on his Mac and he got this error after importing:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "", line 1, in
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/PytorchWildlife/init.py", line 8, in
from .data import *
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/PytorchWildlife/data/init.py", line 1, in
from .datasets import *
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/PytorchWildlife/data/datasets.py", line 9, in
import torch
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/init.py", line 1477, in
from .functional import * # noqa: F403
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/functional.py", line 9, in
import torch.nn.functional as F
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/nn/init.py", line 1, in
from .modules import * # noqa: F403
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/nn/modules/init.py", line 35, in
from .transformer import TransformerEncoder, TransformerDecoder,
File "/Users/velizarshulev/Projects/ClaimCompass/test/env/lib/python3.10/site-packages/torch/nn/modules/transformer.py", line 20, in
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
Creating new Ultralytics Settings v0.0.6 file ✅
View Ultralytics Settings with 'yolo settings' or at '/Users/velizarshulev/Library/Application Support/Ultralytics/settings.json'
Update Settings with 'yolo settings key=value', i.e. 'yolo settings runs_dir=path/to/dir'. For help see https://docs.ultralytics.com/quickstart/#ultralytics-settings.
Could you provide some insight on what is happening? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions