recognize-anything
recognize-anything copied to clipboard
Error in running openset example
Hello,
I am trying to run inference with openset. I get the following error:
checkpoint, the shape in current model is torch.Size([768, 512]). size mismatch for tagging_head.encoder.layer.1.crossattention.self.value.weight: copying a param with shape torch.Size([768, 1024]) from checkpoint, the shape in current model is torch.Size([768, 512]).
File "/Users/csv610/Projects/SegmentAnything/RAM/recognize-anything/ram/models/ram.py", line 77, in init vision_config = read_json(vision_config_path) ^^^^^^^^^^^^^^^^^^ UnboundLocalError: cannot access local variable 'vision_config_path' where it is not associated with a value
Make sure your image size is either 224 or 384