Closed AnnyShen55 closed 4 months ago
I have changed the local paths to the correct huggingface project names in viecap_inference.py. You can download the offline weights from huggingface space or directly run viecap_inference.py with automated downloading.
parser.add_argument('--language_model', default = 'openai-community/gpt2') parser.add_argument('--vl_model', type=str, default=r'openai/clip-vit-base-patch32') parser.add_argument("--parser_checkpoint", type=str, default=r'lizhuang144/flan-t5-base-VG-factual-sg') parser.add_argument("--wte_model_path", type=str, default=r'sentence-transformers/all-MiniLM-L6-v2')
wow, thank you for your timely response, appreciate it!
Hello! Thank you for your great work! i'm just wondering in the viecap_inference.py file, there are couple of things that use your local path, and i just want to confirm that there are nothing changed from the versions on the internet? for example, i just download the gpt2 for the following line parser.add_argument('--language_model', default = 'F:\ImageText\MeaCap-family\MeaCap-vie\gpt2') and download the following things from huggingface 123 | parser.add_argument('--vl_model', type=str, default=r'G:/HuggingFace/clip-vit-base-patch32') 124 | parser.add_argument("--parser_checkpoint", type=str, default=r'G:/HuggingFace/flan-t5-base-VG-factual-sg') 125 | parser.add_argument("--wte_model_path", type=str, default=r'G:/HuggingFace/all-Mini-L6-v2') then everything would work fine? And do I need to modify any of the other lines? Thank you for your help in advance!