ValueError: The following `model_kwargs` are not used by the model: ['pixel_values', 'aspect_ratio_ids', 'aspect_ratio_mask'] (note: typos in the generate arguments will also show up in this list)
#66
by
saraibr99
- opened
is anyone having such issue when calling generate output?
Same code as provided:
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/0052a70beed5bf71b92610a43a52df6d286cd5f3/diffusers/rabbit.jpg"
image = Image.open(requests.get(url, stream=True).raw)
prompt = "<|image|><|begin_of_text|>If I had to write a haiku for this one"
inputs = processor(image, prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=30)
print(processor.decode(output[0]))