Open
zzzzzzxm
opened this issue 9 months ago
•
1 comments
Describe the bug
Hello, I have encountered an issue while running 'example.py'. The script did not execute as expected and threw an error. Here are the details. Could you please look into this? Thanks for your help.
Environment
Ubuntu 20.04
Python 3.10
Steps to Reproduce
Run 'python example.py'
See error
Traceback
Traceback (most recent call last):
File "/home/eit-robot/workspace/HIT_WANG/Original/HLT/example.py", line 33, in
output = model(video, instructions)
File "/home/eit-robot/anaconda3/envs/HLT/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/eit-robot/anaconda3/envs/HLT/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/eit-robot/workspace/HIT_WANG/Original/HLT/hlt_torch/model.py", line 888, in forward
return self.hl_transformer(video, instructions)
File "/home/eit-robot/anaconda3/envs/HLT/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/eit-robot/anaconda3/envs/HLT/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/eit-robot/anaconda3/envs/HLT/lib/python3.10/site-packages/classifier_free_guidance_pytorch/classifier_free_guidance_pytorch.py", line 138, in inner
return fn_maybe_with_text(self, *args, **kwargs)
File "/home/eit-robot/anaconda3/envs/HLT/lib/python3.10/site-packages/classifier_free_guidance_pytorch/classifier_free_guidance_pytorch.py", line 131, in fn_maybe_with_text
return fn(self, *args, **kwargs)
File "/home/eit-robot/workspace/HIT_WANG/Original/HLT/hlt_torch/model.py", line 709, in forward
cond_fns, _ = self.conditioner(
File "/home/eit-robot/anaconda3/envs/HLT/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/eit-robot/anaconda3/envs/HLT/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "<@beartype(classifier_free_guidance_pytorch.classifier_free_guidance_pytorch.TextConditioner.forward) at 0x7f7f8994d3f0>", line 47, in forward
beartype.roar.BeartypeCallHintParamViolation: Method classifier_free_guidance_pytorch.classifier_free_guidance_pytorch.TextConditioner.forward() parameter texts="tensor([[[ 8.2832e-01, 1.3228e-01, 4.0918e-01, ..., 9.5099e-02,
1.1573e+...]]])" violates type hint typing.Optional[list[str]], as <protocol "torch.Tensor"> "tensor([[[ 8.2832e-01, 1.3228e-01, 4.0918e-01, ..., 9.5099e-02,
1.1573e+...]]])" not <class "builtins.NoneType"> or list.
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.