nextgpt-chapter6-report / code /docs /execution /image_qa_examples-output.txt
CollinMa's picture
Publish NExT-GPT course code and actual execution records
2c2701e verified
Raw History Blame Contribute Delete
14 kB
.\.runtime\lib\site-packages\torchvision\transforms\_functional_video.py:6: UserWarning: The 'torchvision.transforms._functional_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms.functional' module instead.
warnings.warn(
.\.runtime\lib\site-packages\torchvision\transforms\_transforms_video.py:22: UserWarning: The 'torchvision.transforms._transforms_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms' module instead.
warnings.warn(
.\vendor\nextgpt\code\model\custom_sd.py:28: FutureWarning: Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.
from diffusers.pipeline_utils import DiffusionPipeline
args max_length 512
Initializing visual encoder from .\weights\pretrained\imagebind_ckpt\huge ...
Visual encoder initialized.
Initializing language decoder from .\weights\pretrained\vicuna_ckpt\7b_v0 ...
Loading checkpoint shards: 0%| | 0/14 [00:00<?, ?it/s]
Loading checkpoint shards: 7%|β–‹ | 1/14 [00:00<00:06, 1.89it/s]
Loading checkpoint shards: 14%|β–ˆβ– | 2/14 [00:01<00:06, 1.98it/s]
Loading checkpoint shards: 21%|β–ˆβ–ˆβ– | 3/14 [00:01<00:05, 2.01it/s]
Loading checkpoint shards: 29%|β–ˆβ–ˆβ–Š | 4/14 [00:02<00:05, 1.99it/s]
Loading checkpoint shards: 36%|β–ˆβ–ˆβ–ˆβ–Œ | 5/14 [00:02<00:04, 1.94it/s]
Loading checkpoint shards: 43%|β–ˆβ–ˆβ–ˆβ–ˆβ–Ž | 6/14 [00:03<00:04, 1.80it/s]
Loading checkpoint shards: 50%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 7/14 [00:03<00:04, 1.72it/s]
Loading checkpoint shards: 57%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 8/14 [00:04<00:03, 1.68it/s]
Loading checkpoint shards: 64%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 9/14 [00:05<00:03, 1.63it/s]
Loading checkpoint shards: 71%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 10/14 [00:05<00:02, 1.64it/s]
Loading checkpoint shards: 79%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 11/14 [00:06<00:01, 1.59it/s]
Loading checkpoint shards: 86%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 12/14 [00:07<00:01, 1.56it/s]
Loading checkpoint shards: 93%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž| 13/14 [00:07<00:00, 1.54it/s]
Loading checkpoint shards: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 14/14 [00:08<00:00, 1.59it/s]
Loading checkpoint shards: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 14/14 [00:08<00:00, 1.69it/s]
Instruct tuning the LLaMa ...
trainable params: 33554432 || all params: 6771978240 || trainable%: 0.49548936530546206
Language decoder initialized.
Initializing tokenizer from .\weights\pretrained\vicuna_ckpt\7b_v0 ...
Adding [IMG0] token to vocabulary.
Before adding new token, tokenizer("[IMG0]") = {'input_ids': [518, 7833, 29954, 29900, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[IMG0]") = {'input_ids': [32002], 'attention_mask': [1]}
Adding [IMG1] token to vocabulary.
Before adding new token, tokenizer("[IMG1]") = {'input_ids': [518, 7833, 29954, 29896, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[IMG1]") = {'input_ids': [32003], 'attention_mask': [1]}
Adding [IMG2] token to vocabulary.
Before adding new token, tokenizer("[IMG2]") = {'input_ids': [518, 7833, 29954, 29906, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[IMG2]") = {'input_ids': [32004], 'attention_mask': [1]}
Adding [IMG3] token to vocabulary.
Before adding new token, tokenizer("[IMG3]") = {'input_ids': [518, 7833, 29954, 29941, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[IMG3]") = {'input_ids': [32005], 'attention_mask': [1]}
Adding [VID0] token to vocabulary.
Before adding new token, tokenizer("[VID0]") = {'input_ids': [518, 13044, 29900, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID0]") = {'input_ids': [32006], 'attention_mask': [1]}
Adding [VID1] token to vocabulary.
Before adding new token, tokenizer("[VID1]") = {'input_ids': [518, 13044, 29896, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID1]") = {'input_ids': [32007], 'attention_mask': [1]}
Adding [VID2] token to vocabulary.
Before adding new token, tokenizer("[VID2]") = {'input_ids': [518, 13044, 29906, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID2]") = {'input_ids': [32008], 'attention_mask': [1]}
Adding [VID3] token to vocabulary.
Before adding new token, tokenizer("[VID3]") = {'input_ids': [518, 13044, 29941, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID3]") = {'input_ids': [32009], 'attention_mask': [1]}
Adding [VID4] token to vocabulary.
Before adding new token, tokenizer("[VID4]") = {'input_ids': [518, 13044, 29946, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID4]") = {'input_ids': [32010], 'attention_mask': [1]}
Adding [VID5] token to vocabulary.
Before adding new token, tokenizer("[VID5]") = {'input_ids': [518, 13044, 29945, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID5]") = {'input_ids': [32011], 'attention_mask': [1]}
Adding [VID6] token to vocabulary.
Before adding new token, tokenizer("[VID6]") = {'input_ids': [518, 13044, 29953, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID6]") = {'input_ids': [32012], 'attention_mask': [1]}
Adding [VID7] token to vocabulary.
Before adding new token, tokenizer("[VID7]") = {'input_ids': [518, 13044, 29955, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID7]") = {'input_ids': [32013], 'attention_mask': [1]}
Adding [VID8] token to vocabulary.
Before adding new token, tokenizer("[VID8]") = {'input_ids': [518, 13044, 29947, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID8]") = {'input_ids': [32014], 'attention_mask': [1]}
Adding [VID9] token to vocabulary.
Before adding new token, tokenizer("[VID9]") = {'input_ids': [518, 13044, 29929, 29962], 'attention_mask': [1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID9]") = {'input_ids': [32015], 'attention_mask': [1]}
Adding [VID10] token to vocabulary.
Before adding new token, tokenizer("[VID10]") = {'input_ids': [518, 13044, 29896, 29900, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID10]") = {'input_ids': [32016], 'attention_mask': [1]}
Adding [VID11] token to vocabulary.
Before adding new token, tokenizer("[VID11]") = {'input_ids': [518, 13044, 29896, 29896, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID11]") = {'input_ids': [32017], 'attention_mask': [1]}
Adding [VID12] token to vocabulary.
Before adding new token, tokenizer("[VID12]") = {'input_ids': [518, 13044, 29896, 29906, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID12]") = {'input_ids': [32018], 'attention_mask': [1]}
Adding [VID13] token to vocabulary.
Before adding new token, tokenizer("[VID13]") = {'input_ids': [518, 13044, 29896, 29941, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID13]") = {'input_ids': [32019], 'attention_mask': [1]}
Adding [VID14] token to vocabulary.
Before adding new token, tokenizer("[VID14]") = {'input_ids': [518, 13044, 29896, 29946, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID14]") = {'input_ids': [32020], 'attention_mask': [1]}
Adding [VID15] token to vocabulary.
Before adding new token, tokenizer("[VID15]") = {'input_ids': [518, 13044, 29896, 29945, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID15]") = {'input_ids': [32021], 'attention_mask': [1]}
Adding [VID16] token to vocabulary.
Before adding new token, tokenizer("[VID16]") = {'input_ids': [518, 13044, 29896, 29953, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID16]") = {'input_ids': [32022], 'attention_mask': [1]}
Adding [VID17] token to vocabulary.
Before adding new token, tokenizer("[VID17]") = {'input_ids': [518, 13044, 29896, 29955, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID17]") = {'input_ids': [32023], 'attention_mask': [1]}
Adding [VID18] token to vocabulary.
Before adding new token, tokenizer("[VID18]") = {'input_ids': [518, 13044, 29896, 29947, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID18]") = {'input_ids': [32024], 'attention_mask': [1]}
Adding [VID19] token to vocabulary.
Before adding new token, tokenizer("[VID19]") = {'input_ids': [518, 13044, 29896, 29929, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID19]") = {'input_ids': [32025], 'attention_mask': [1]}
Adding [VID20] token to vocabulary.
Before adding new token, tokenizer("[VID20]") = {'input_ids': [518, 13044, 29906, 29900, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID20]") = {'input_ids': [32026], 'attention_mask': [1]}
Adding [VID21] token to vocabulary.
Before adding new token, tokenizer("[VID21]") = {'input_ids': [518, 13044, 29906, 29896, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID21]") = {'input_ids': [32027], 'attention_mask': [1]}
Adding [VID22] token to vocabulary.
Before adding new token, tokenizer("[VID22]") = {'input_ids': [518, 13044, 29906, 29906, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID22]") = {'input_ids': [32028], 'attention_mask': [1]}
Adding [VID23] token to vocabulary.
Before adding new token, tokenizer("[VID23]") = {'input_ids': [518, 13044, 29906, 29941, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[VID23]") = {'input_ids': [32029], 'attention_mask': [1]}
Adding [AUD0] token to vocabulary.
Before adding new token, tokenizer("[AUD0]") = {'input_ids': [518, 29909, 15789, 29900, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD0]") = {'input_ids': [32030], 'attention_mask': [1]}
Adding [AUD1] token to vocabulary.
Before adding new token, tokenizer("[AUD1]") = {'input_ids': [518, 29909, 15789, 29896, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD1]") = {'input_ids': [32031], 'attention_mask': [1]}
Adding [AUD2] token to vocabulary.
Before adding new token, tokenizer("[AUD2]") = {'input_ids': [518, 29909, 15789, 29906, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD2]") = {'input_ids': [32032], 'attention_mask': [1]}
Adding [AUD3] token to vocabulary.
Before adding new token, tokenizer("[AUD3]") = {'input_ids': [518, 29909, 15789, 29941, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD3]") = {'input_ids': [32033], 'attention_mask': [1]}
Adding [AUD4] token to vocabulary.
Before adding new token, tokenizer("[AUD4]") = {'input_ids': [518, 29909, 15789, 29946, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD4]") = {'input_ids': [32034], 'attention_mask': [1]}
Adding [AUD5] token to vocabulary.
Before adding new token, tokenizer("[AUD5]") = {'input_ids': [518, 29909, 15789, 29945, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD5]") = {'input_ids': [32035], 'attention_mask': [1]}
Adding [AUD6] token to vocabulary.
Before adding new token, tokenizer("[AUD6]") = {'input_ids': [518, 29909, 15789, 29953, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD6]") = {'input_ids': [32036], 'attention_mask': [1]}
Adding [AUD7] token to vocabulary.
Before adding new token, tokenizer("[AUD7]") = {'input_ids': [518, 29909, 15789, 29955, 29962], 'attention_mask': [1, 1, 1, 1, 1]}
After adding 1 new tokens, tokenizer("[AUD7]") = {'input_ids': [32037], 'attention_mask': [1]}
Tokenizer initialized.
text prompt: ### Human: <Image>.\examples\inputs\dog_image.jpg</Image> Describe what is shown in this image in one short sentence.
### Assistant:
image path: .\examples\inputs\dog_image.jpg
.\.runtime\lib\site-packages\transformers\generation\utils.py:1445: UserWarning: You are calling .generate() with the `input_ids` being on a device type different than your model's device. `input_ids` is on cuda, whereas the model is on meta. You may experience unexpected behaviors or slower generation. Please make sure that you have put `input_ids` to the correct device by calling for example input_ids = input_ids.to('meta') before running `.generate()`.
warnings.warn(
all_gen_img_idx: []
all_gen_vid_idx: []
all_gen_aud_idx: []
{
"input": "dog_image.jpg",
"text": "The image shows a dog with a big smile on its face, holding a blue Frisbee in its mouth.",
"images": [],
"video": null,
"audio": null,
"files": [
"C:\\Users\\14335\\Desktop\\nlp\\chapter6\\nextgpt-reproduction\\outputs\\2fedc31fb107485380e478bd19d8bac5\\raw-response.txt",
"C:\\Users\\14335\\Desktop\\nlp\\chapter6\\nextgpt-reproduction\\outputs\\2fedc31fb107485380e478bd19d8bac5\\response.txt",
"C:\\Users\\14335\\Desktop\\nlp\\chapter6\\nextgpt-reproduction\\outputs\\2fedc31fb107485380e478bd19d8bac5\\run.json"
],
"raw_text": "The image shows a dog with a big smile on its face, holding a blue Frisbee in its mouth.\n###"
}
Traceback (most recent call last):
File ".\scripts\run_image_qa_examples.py", line 14, in <module>
result=ENGINE.run('Describe what is shown in this image in one short sentence.',
File ".\engine.py", line 104, in run
text = build_prompt(prompt, image, video, audio)
File ".\engine.py", line 28, in build_prompt
raise ValueError("θΎ“ε…₯εͺ’δ½“ζ–‡δ»ΆδΈε­˜εœ¨ζˆ–θ·―εΎ„ζ— ζ•ˆγ€‚")
ValueError: θΎ“ε…₯εͺ’δ½“ζ–‡δ»ΆδΈε­˜εœ¨ζˆ–θ·―εΎ„ζ— ζ•ˆγ€‚