moondream icon indicating copy to clipboard operation
moondream copied to clipboard

Invalid magic bytes

Open StevenSK-king opened this issue 11 months ago • 0 comments

Good job team! I would like to use the GPU model and download the model.safetensors. However, when after loading the model and run the code, it prompts the error "ValueError: Invalid magic bytes: b'\xa0\xfa\x00\x00"

Here are the codes

`model = md.vl(model="model.safetensors")

image_path = "./image.jpg" image = model.encode_image(Image.open(image_path))

print("Short caption:") print(model.caption(image, length="short")["caption"])`

Am I missing anything?

StevenSK-king avatar Mar 29 '25 12:03 StevenSK-king