Spaces:
Running
on
A10G
Duplicating space CLIP-Interrogator
I'm trying to duplicate this space and after a long time of processing I'm getting an error "RuntimeError: expected scalar type Float but found Half"
Any help?
File "/home/user/.local/lib/python3.8/site-packages/clip_interrogator/clip_interrogator.py", line 205, in interrogate
check_multi_batch([best_medium, best_artist, best_trending, best_movement])
File "/home/user/.local/lib/python3.8/site-packages/clip_interrogator/clip_interrogator.py", line 202, in check_multi_batch
best_prompt = t.rank(image_features, 1)[0]
File "/home/user/.local/lib/python3.8/site-packages/clip_interrogator/clip_interrogator.py", line 295, in rank
tops = self._rank(image_features, self.embeds, top_count=top_count)
File "/home/user/.local/lib/python3.8/site-packages/clip_interrogator/clip_interrogator.py", line 289, in _rank
similarity = image_features @ text_embeds.T
RuntimeError: expected scalar type Float but found Half
Oh I think I have fixes for running on CPU on the github but didn't push here yet. I'd recommend though assigning a GPU to your instance then it should work properly like the public space. With CPU only it is incredibly slow
Oh I think I have fixes for running on CPU on the github but didn't push here yet. I'd recommend though assigning a GPU to your instance then it should work properly like the public space. With CPU only it is incredibly slow
Hey pharma. Thanks for your response. Unfortunately I can't find where I can do this reassignment. In the Settings there is ony mention of CPU - no GPU there. Am I lookng in the right place? Obviously you can see I'm a begginer here.
No worries. So after duplicate the space into your account when you view your copy of the space you'll see horizontal line of "App, Files and versions, Community, Settings". Click on Settings. Then you can click on "T4 small" to assign it a GPU.
btw the queue is very short right now in the public space so you could use it too
Thanks for clarifying it. It works like a charm!