Vision-CAIR / MiniGPT-4

Open-sourced codes for MiniGPT-4 and MiniGPT-v2 (https://minigpt-4.github.io, https://minigpt-v2.github.io/)
https://minigpt-4.github.io
BSD 3-Clause "New" or "Revised" License
25.33k stars 2.91k forks source link

How to make this? #54

Open Ai-feier opened 1 year ago

Ai-feier commented 1 year ago

(minigpt4) C:\Users\AiFeier\Desktop\Code\DeepLearning\AI\MiniGPT-4>python demo.py --cfg-path eval_configs/minigpt4_eval.yaml Initializing Chat Loading VIT Loading VIT Done Loading Q-Former Loading Q-Former Done Loading LLAMA Traceback (most recent call last): File "C:\Users\AiFeier\Desktop\Code\DeepLearning\AI\MiniGPT-4\demo.py", line 57, in model = model_cls.from_config(model_config).to('cuda:0') File "C:\Users\AiFeier\Desktop\Code\DeepLearning\AI\MiniGPT-4\minigpt4\models\mini_gpt4.py", line 241, in from_config model = cls( File "C:\Users\AiFeier\Desktop\Code\DeepLearning\AI\MiniGPT-4\minigpt4\models\mini_gpt4.py", line 85, in init self.llama_tokenizer = LlamaTokenizer.from_pretrained(llama_model, use_fast=False) File "E:\environment\conda\Miniconda\envs\minigpt4\lib\site-packages\transformers\tokenization_utils_base.py", line 1770, in from_pretrained resolved_vocab_files[file_id] = cached_file( File "E:\environment\conda\Miniconda\envs\minigpt4\lib\site-packages\transformers\utils\hub.py", line 409, in cached_file resolved_file = hf_hub_download( File "E:\environment\conda\Miniconda\envs\minigpt4\lib\site-packages\huggingface_hub\utils_validators.py", line 112, in _inner_fn validate_repo_id(arg_value) File "E:\environment\conda\Miniconda\envs\minigpt4\lib\site-packages\huggingface_hub\utils_validators.py", line 162, in validate_repo_id f" '{repo_id}'. Use repo_type argument if needed." NameError: name 'repo_type' is not defined

WeileiZeng commented 1 year ago

have you specified the path to the weights?

Ai-feier commented 1 year ago

have you specified the path to the weights?

Can you tell me how

WeileiZeng commented 1 year ago

have you specified the path to the weights?

Can you tell me how

Follow the read me file, in installation step 2 & 3

set the path to the vicuna weight in the model config file minigpt4/configs/models/minigpt4.yaml at Line 16.

set the path to the pretrained checkpoint in the evaluation config file in eval_configs/minigpt4_eval.yaml at Line 11.