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

get_time_embed() takes 1 positional argument but 2 were given #4

Open
jinganglang567 opened this issue Nov 19, 2024 · 0 comments
Open

Comments

@jinganglang567
Copy link

sorry to bother you ,when i train the code
Traceback (most recent call last):
File "train.py", line 283, in
loss = get_loss(data) / 4
File "train.py", line 271, in get_loss
out_unet = unet(out_vae=out_vae_noise,
File "/root/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/root/autodl-tmp/Diffusion_From_Scratch-main/Unet.py", line 385, in forward
time = self.get_time_embed(time)
TypeError: get_time_embed() takes 1 positional argument but 2 were given

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