I am new to the Image object detection. I was trying to implement the Object detection using DetrFeatureExtractor. When I try I am getting an error like " Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length. ". Previously it was working fine and few days ago it is getting break with this error.
The code I have been using :
` from transformers import DetrFeatureExtractor, DetrModel
from PIL import Image
import requests
To find the issue I tried various steps from the raised tickets, what I found was when the _returntensors="pt" it is raising the error. As suggested in the error, I tried with Padding = True, but the response was the same. When I try with None it is not throwing any error instead I got an error in the output as "'list' object has no attribute 'shape'".
Hi Team,
Good day.
I am new to the Image object detection. I was trying to implement the Object detection using DetrFeatureExtractor. When I try I am getting an error like " Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length. ". Previously it was working fine and few days ago it is getting break with this error.
The code I have been using :
` from transformers import DetrFeatureExtractor, DetrModel from PIL import Image import requests
To find the issue I tried various steps from the raised tickets, what I found was when the _returntensors="pt" it is raising the error. As suggested in the error, I tried with Padding = True, but the response was the same. When I try with None it is not throwing any error instead I got an error in the output as "'list' object has no attribute 'shape'".
the versions I am using for the solution:
Is there any way to resolve the issue? any help would be appreciated.