You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: