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
/home/dbox1028/.local/lib/python3.8/site-packages/torchvision/models/detection/anchor_utils.py:63: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xd . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem . (Triggered internally at /root/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device("cpu"),
Traceback (most recent call last):
File "examples/basic_usage.py", line 38, in
predictor.set_image(image)
File "/home/dbox1028/nanosam/nanosam/utils/predictor.py", line 154, in set_image
self.image_tensor = preprocess_image(image, self.image_encoder_size)
File "/home/dbox1028/nanosam/nanosam/utils/predictor.py", line 84, in preprocess_image
image_torch_resized = torch.from_numpy(image_np_resized).permute(2, 0, 1)
RuntimeError: Numpy is not available
The text was updated successfully, but these errors were encountered:
Hi, Thanks for the work. looks very promising
I am having some problem with basic example and actually with others as well. I get runtime error on Numpy as below
python3 examples/basic_usage.py \
/home/dbox1028/.local/lib/python3.8/site-packages/torchvision/models/detection/anchor_utils.py:63: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xd . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem . (Triggered internally at /root/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device("cpu"),
Traceback (most recent call last):
File "examples/basic_usage.py", line 38, in
predictor.set_image(image)
File "/home/dbox1028/nanosam/nanosam/utils/predictor.py", line 154, in set_image
self.image_tensor = preprocess_image(image, self.image_encoder_size)
File "/home/dbox1028/nanosam/nanosam/utils/predictor.py", line 84, in preprocess_image
image_torch_resized = torch.from_numpy(image_np_resized).permute(2, 0, 1)
RuntimeError: Numpy is not available
The text was updated successfully, but these errors were encountered: