Comments (2)
Thanks for your interest! It looks like you don't set the path of the Vicuna weight, as I see path placeholder '/path/to/vicuna/weights' in your error message. Please refer to "2. Prepare the pretrained Vicuna weights" in the instruction section of readme for the setting details. Thanks!
from minigpt-4.
Hi dear it gives me below error can anyone guide:PS C:\Users\OSAID'$ laptop'$\Desktop\minigpt4> & "C:/Program Files/Python310/python.exe" "c:/Users/OSAID'$ laptop'$/Desktop/minigpt4/app.py"
Initializing Chat
Loading VIT
Loading VIT Done
Loading Q-Former
Loading Q-Former Done
Loading LLAMA
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ c:\Users\OSAID'$ laptop'$\Desktop\minigpt4\app.py:64 in │
│ │
│ 61 │
│ 62 model_config = cfg.model_cfg │
│ 63 model_cls = registry.get_model_class(model_config.arch) │
│ ❱ 64 model = model_cls.from_config(model_config).to('cuda:0') │
│ 65 │
│ 66 vis_processor_cfg = cfg.datasets_cfg.cc_align.vis_processor.train │
│ 67 vis_processor = registry.get_processor_class(vis_processor_cfg.name).from_config(vis_pro │
│ │
│ c:\Users\OSAID'$ laptop'$\Desktop\minigpt4\minigpt4\models\mini_gpt4.py:239 in from_config │
│ │
│ 236 │ │ max_txt_len = cfg.get("max_txt_len", 32) │
│ 237 │ │ end_sym = cfg.get("end_sym", '\n') │
│ 238 │ │ │
│ ❱ 239 │ │ model = cls( │
│ 240 │ │ │ vit_model=vit_model, │
│ 241 │ │ │ q_former_model=q_former_model, │
│ 242 │ │ │ img_size=img_size, │
│ │
│ c:\Users\OSAID'$ laptop'$\Desktop\minigpt4\minigpt4\models\mini_gpt4.py:90 in init │
│ │
│ 87 │ │ print('Loading Q-Former Done') │
│ 88 │ │ │
│ 89 │ │ print('Loading LLAMA') │
│ ❱ 90 │ │ self.llama_tokenizer = LlamaTokenizer.from_pretrained('Vision-CAIR/vicuna', use_ │
│ 91 │ │ self.llama_tokenizer.pad_token = self.llama_tokenizer.eos_token │
│ 92 │ │ │
│ 93 │ │ if llama_cache_dir: │
│ │
│ C:\Program Files\Python310\lib\os.py:679 in getitem │
│ │
│ 676 │ │ │ value = self._data[self.encodekey(key)] │
│ 677 │ │ except KeyError: │
│ 678 │ │ │ # raise KeyError with the original key value │
│ ❱ 679 │ │ │ raise KeyError(key) from None │
│ 680 │ │ return self.decodevalue(value) │
│ 681 │ │
│ 682 │ def setitem(self, key, value): │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
KeyError: 'API_TOKEN'
PS C:\Users\OSAID'$ laptop'$\Desktop\minigpt4>
from minigpt-4.
Related Issues (20)
- How to preprocess IconQA for evaluation? HOT 2
- urllib.error.HTTPError: HTTP Error 403: Forbidden
- Is is okay to use CrossEntropyLoss on referring or grounding?
- Hyperparameters for the VQA zero-shot inference
- Question: replacing the Llama 2 7b chat component with an equivalent Code Llama 7b
- cc_sbu_align datasets
- A load persistent id instruction was encountered, but no persistent_load function was specified. HOT 1
- minigpt4-demo
- demo.py 出错 HOT 3
- pip install accelerate仍然不可以 HOT 1
- raise RuntimeError(f"Error(s) in loading state_dict for {model.__class__.__name__}:\n\t{error_msg}") HOT 2
- How to apply MiniGPTv2 to ITM (image-text-matching) tasks
- in PRE_TRAIN(stage1)processing, “Loaded 0 records for train split from the dataset.”
- Siglip
- The same input but different output from the online demo. HOT 1
- What kind of weight do we need to use to load llama2?
- Could not find \'data\' key in response , MiniGpt v2
- Error while finetuning on custom llava conversation dataset
- The download link of train dataset is wrong.
- It seems wrong dataset links in MiniGPT-4/dataset /README_MINIGPTv2_FINETUNE.md HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minigpt-4.