kijai / ComfyUI-Florence2

Inference Microsoft Florence2 VLM
MIT License
768 stars 51 forks source link

RuntimeError: Input type (float) and bias type (struct c10::Half) should be the same #30

Closed jinxishe closed 4 months ago

jinxishe commented 4 months ago

When I use 'florence-2' to extract a caption from an image and then use that caption as a positive prompt to regenerate an image, I encounter the following error. It seems there is a conflict between the model loader for 'florence-2' and the checkpoint.

workflow 011884b7-d107-4806-a74c-fc0b4b35eda8

kijai commented 4 months ago

I don't really understand how this node could cause that, all it does is provide a string for the text encoder. The error is coming from the live preview somehow. I can't reproduce this at all, same setup as you works fine for me.

jinxishe commented 4 months ago

I don't really understand how this node could cause that, all it does is provide a string for the text encoder. The error is coming from the live preview somehow. I can't reproduce this at all, same setup as you works fine for me.

I restart and the problem disappeared. So STRANGE. I'll close the issue.