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

How to get 'ram_plus_tag_embedding_class_4585_des_51.pth' file in ram_plus.py, line 143?

Open chaos1992 opened this issue 1 year ago • 3 comments

chaos1992 avatar Oct 25 '23 07:10 chaos1992

Hi, I update the 'ram_plus_tag_embedding_class_4585_des_51.pth' file in https://huggingface.co/xinyu1205/recognize-anything-plus-model/blob/main/ram_plus_tag_embedding_class_4585_des_51.pth. And I add the explanations in README.md#468. Thank you for your valuable feedback.

xinyu1205 avatar Oct 25 '23 09:10 xinyu1205

Hello, may I ask how you generated this file “ram_plus_tag_embedding_class_4585_des_51.pth”. Now I want to add 10 new tags to the 4585 tags in the network. Directly modifying the parameter "number of tags" does not work. I need to regenerate the file.

CZX-Yui avatar Nov 08 '23 11:11 CZX-Yui

Hello, may I ask how you generated this file “ram_plus_tag_embedding_class_4585_des_51.pth”. Now I want to add 10 new tags to the 4585 tags in the network. Directly modifying the parameter "number of tags" does not work. I need to regenerate the file.

Sorry for not seeing your issue. You can running the file generate_tag_des_llm.py to generate label embedding for your own categories, more details can refer to RAM++ unseen categories inference.

xinyu1205 avatar Nov 14 '23 08:11 xinyu1205