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

'VQModel' object has no attribute 'transformer' #240

Open
Gannn12138 opened this issue Feb 26, 2024 · 0 comments
Open

'VQModel' object has no attribute 'transformer' #240

Gannn12138 opened this issue Feb 26, 2024 · 0 comments

Comments

@Gannn12138
Copy link

Traceback (most recent call last): File "scripts/sample_fast.py", line 261, in <module> given_classes=given_classes, num_samples=opt.num_samples, top_p=opt.top_p) File "/home/ma-user/anaconda3/envs/PyTorch-1.11.0/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "scripts/sample_fast.py", line 83, in run logs = sample_unconditional(model, batch_size=bs, temperature=temperature, top_k=top_k, top_p=top_p) File "/home/ma-user/anaconda3/envs/PyTorch-1.11.0/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "scripts/sample_fast.py", line 53, in sample_unconditional index_sample = sample_with_past(c_indices, model.transformer, steps=steps, File "/home/ma-user/anaconda3/envs/PyTorch-1.11.0/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1186, in __getattr__ type(self).__name__, name))

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