xinyu1205 / recognize-anything

Open-source and strong foundation image recognition models.
https://recognize-anything.github.io/
Apache License 2.0
2.78k stars 271 forks source link

support fp16 inference on ram++ #164

Closed zylo117 closed 5 months ago

zylo117 commented 7 months ago

with these changes, label_embed_reweight will be created with the same dtype as the input image, then fp16 inference on ram++ will work