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.4k stars 2.91k forks source link

demo.py: error: unrecognized arguments: --gpu-id 0 #68

Open magicwang1111 opened 1 year ago

magicwang1111 commented 1 year ago

(minigpt4_v2) F:\MiniGPT-4>python demo.py --cfg-path eval_configs/minigpt4_eval.yaml --gpu-id 0 Initializing Chat usage: demo.py [-h] --cfg-path CFG_PATH [--options OPTIONS [OPTIONS ...]] demo.py: error: unrecognized arguments: --gpu-id 0

gpu:4090 can't run

kenneth104 commented 1 year ago

It's you not pull the newest?

run "git pull"?

srtj commented 1 year ago

i have same error

TsuTikgiau commented 1 year ago

Hello! We updated the code yesterday to include the new argument 'gpu-id' that can specify the cuda device. Can you try to pull the latest code and have a try? thank you!

WeileiZeng commented 1 year ago

glad to know it is getting fixed. As a workaround

export CUDA_VISIBLE_DEVICES=0 && python demo.py --cfg-path eval_configs/minigpt4_eval.yaml