facebookresearch / facebookresearch/sam2

TypeError: expected np.ndarray (got numpy.ndarray)

Open
#344 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

### The code from the Notebook (notebooks/image_predictor_example.ipynb) works fine in Google Collab:
![image](https://github.com/user-attachments/assets/72f0239d-94ca-4ef3-9f50-5eb3eb13a28b)

### But, when I'm trying to run in the server (NVIDIA A100-SXM4-40GB; CUDA Version: 12.5), there's a image processing issue.
![image](https://github.com/user-attachments/assets/3d8e7268-4446-4a7b-921c-d244284585a8)

**I did check the version and passing implicitly with numpy.array(), especially numpy versions are the same. I'm not sure why the issue persist!**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.