Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动web_demo试用后报错 #24

Open
shanchao0906 opened this issue Dec 5, 2024 · 0 comments
Open

启动web_demo试用后报错 #24

shanchao0906 opened this issue Dec 5, 2024 · 0 comments

Comments

@shanchao0906
Copy link

File "mllm/demo/web_demo.py", line 67, in chat_one_turn
response, _, _, img = pipe(inputs, temperature=temperature, top_p=top_p, top_k=top_k,
File "/mnt/home/chaoshan/ProjectCode/llm/NExT-Chat/./mllm/demo/demo_util.py", line 335, in call
response, boxes, masks, ret_img = model_predict(self.model, self.model_args,
File "/mnt/home/chaoshan/ProjectCode/llm/NExT-Chat/./mllm/demo/demo_util.py", line 277, in model_predict
output_ids, masks, iou_predictions, boxes = model.generate(**inputs)
File "/mnt/home/chaoshan/ProjectCode/llm/NExT-Chat/./mllm/models/nextchat/nextchat_seg.py", line 129, in generate
outputs = super(NextChatForCausalLM, self).generate(
File "/home/chaoshan/softwares/anaconda3/envs/mmdeploy/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/chaoshan/softwares/anaconda3/envs/mmdeploy/lib/python3.8/site-packages/transformers/generation/utils.py", line 2246, in generate
result = self._beam_search(
File "/home/chaoshan/softwares/anaconda3/envs/mmdeploy/lib/python3.8/site-packages/transformers/generation/utils.py", line 3416, in _beam_search
model_inputs = self.prepare_inputs_for_generation(input_ids, **model_kwargs)
File "/mnt/home/chaoshan/ProjectCode/llm/NExT-Chat/./mllm/models/nextchat/nextchat_seg.py", line 202, in prepare_inputs_for_generation
if loc_ids is not None and (loc_ids==vision_tower.config.at_token).any():
UnboundLocalError: local variable 'loc_ids' referenced before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant