Using Google translate, it seems that preds are empty, which would mean that your model is not returning anything in this line:
preds = model([img_tensor.to(device)])

Check your model’s forward method and make sure you are returning the output.
PS: Again, could you please translate your posts before posting them?