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

Google Colaboratory sample notebook error (Unsupported TypeMeta in ATen) #492

Open
hirokinaito opened this issue Apr 25, 2024 · 5 comments

Comments

@hirokinaito
Copy link

Running the Google Colaboratory sample code (grounded_sam_colab_demo.ipynb) has been generating the following "Unsupported TypeMeta in ATen" error at detect method. This error occurred since this morning. It was working fine until yesterday.

Code:

annotated_frame, detected_boxes = detect(image, text_prompt="bench", model=groundingdino_model)
Image.fromarray(annotated_frame)

Error output:

FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers.
UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants.
UserWarning: None of the inputs have requires_grad=True. Gradients will be None
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
[<ipython-input-10-eb2d1c4b4783>](https://localhost:8080/#) in <cell line: 1>()
----> 1 annotated_frame, detected_boxes = detect(image, text_prompt="bench", model=groundingdino_model)
      2 Image.fromarray(annotated_frame)

24 frames
[/content/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/ms_deform_attn.py](https://localhost:8080/#) in forward(ctx, value, value_spatial_shapes, value_level_start_index, sampling_locations, attention_weights, im2col_step)
     51     ):
     52         ctx.im2col_step = im2col_step
---> 53         output = _C.ms_deform_attn_forward(
     54             value,
     55             value_spatial_shapes,

RuntimeError: Unsupported TypeMeta in ATen:  (please report this error)

My Google Colab runtime environment is GPU(T4).

Do you know a solution to this problem?

@kshitizagarwal-dev
Copy link

Getting the same error in colab

@Anika-Tahsin-S
Copy link

Same here. It was working just fine 3 days back. But now getting this error in colab.

'RuntimeError: Unsupported TypeMeta in ATen: (please report this error)'

@TikaToka
Copy link
Contributor

TikaToka commented May 3, 2024

Not in case of colab, but Remove the env and reinstalling it solved the problem for me.

@karimelgazar
Copy link

pip install --upgrade torch solved the issue for me

@BinaryKevin
Copy link

Same here. It was working just fine 3 days back. But now getting this error in colab.

'RuntimeError: Unsupported TypeMeta in ATen: (please report this error)'

Hi, have you solved this problem?

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

6 participants