recognize-anything icon indicating copy to clipboard operation
recognize-anything copied to clipboard

Error in running openset example

Open shersoni610 opened this issue 1 year ago • 1 comments

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

shersoni610 avatar Jul 19 '23 01:07 shersoni610

Make sure your image size is either 224 or 384

gtangg12 avatar Nov 14 '23 03:11 gtangg12