Grounded-Segment-Anything
Grounded-Segment-Anything copied to clipboard
grounded_sam_inpainting_deomo.py runtime Error
when i run grounded_sam_inpainting_deomo.py,it will report an error:RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 64 but got size 62 for tensor number 2 in the list.
text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["id2label"] will be overriden.
A bird, high quality, detailed
0%| | 0/50 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/workspace/Grounded-Segment-Anything/grounded_sam_inpainting_demo.py", line 199, in
May I ask how to run the program correctly.
the diffusion model requires the image size(width and height) to be dividable by 64.
We suggest resize images to (512, 512) for inpainting. and resize to the original size as outputs.