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

tensor is not a torch image??? #18

Open
eformx opened this issue Mar 9, 2022 · 0 comments
Open

tensor is not a torch image??? #18

eformx opened this issue Mar 9, 2022 · 0 comments

Comments

@eformx
Copy link

eformx commented Mar 9, 2022

You can now view your Streamlit app in your browser.

Local URL: http://localhost:8503
Network URL: http://192.168.2.43:8503

Using device: None
Working with z of shape (1, 256, 16, 16) = 65536 dimensions.
loaded pretrained LPIPS loss from taming/modules/autoencoder/lpips\vgg.pth
VQLPIPSWithDiscriminator running with hinge loss.
Restored from assets/vqgan_imagenet_f16_1024.ckpt
c:\temp\vqgan-clip-app-main\venv\lib\site-packages\torch\functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Tri
ggered internally at ..\aten\src\ATen\native\TensorShape.cpp:2157.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
2022-03-08 21:40:04.481 Traceback (most recent call last):
File "c:\temp\vqgan-clip-app-main\venv\lib\site-packages\streamlit\script_runner.py", line 430, in _run_script
exec(code, module.dict)
File "C:\Temp\vqgan-clip-app-main\app.py", line 641, in
generate_image(
File "C:\Temp\vqgan-clip-app-main\app.py", line 150, in generate_image
_, im = run.iterate()
File "C:/Temp/vqgan-clip-app-main\logic.py", line 323, in iterate
losses = self._ascend_txt()
File "C:/Temp/vqgan-clip-app-main\logic.py", line 278, in _ascend_txt
self.normalize(self.make_cutouts(out))
File "c:\temp\vqgan-clip-app-main\venv\lib\site-packages\torchvision\transforms\transforms.py", line 163, in call
return F.normalize(tensor, self.mean, self.std, self.inplace)
File "c:\temp\vqgan-clip-app-main\venv\lib\site-packages\torchvision\transforms\functional.py", line 201, in normalize
raise TypeError('tensor is not a torch image.')
TypeError: tensor is not a torch image.

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