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

Runtime error "AttributeError: 'TypeVar' object has no attribute 'ToTensor'" when SSIM enabled #49

Open
sglasman opened this issue Jan 29, 2024 · 3 comments

Comments

@sglasman
Copy link

I'm in a Vast.ai instance running the runpod webui 10.1.1 image. This error shows after the first pass of generations when SSIM is enabled. Full stack trace:

Traceback (most recent call last):
File "/workspace/stable-diffusion-webui/extensions/stable-diffusion-webui-prompt-travel/scripts/prompt_travel.py", line 578, in run
runner()
File "/workspace/stable-diffusion-webui/extensions/stable-diffusion-webui-prompt-travel/scripts/prompt_travel.py", line 663, in run_linear
) = self.ssim_loop(
File "/workspace/stable-diffusion-webui/extensions/stable-diffusion-webui-prompt-travel/scripts/prompt_travel.py", line 842, in ssim_loop
transform = T.ToTensor()
AttributeError: 'TypeVar' object has no attribute 'ToTensor'

I've already tried removing the --skip-install command line argument, which has helped with other extension issues.

@mcDandy
Copy link

mcDandy commented Jan 31, 2024

I have the same problem. It worked on commit 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 of A1111 but as of cf2772fab0af5573da775e7437e6acdca424f26e it fails with this error.

Kahsolt added a commit that referenced this issue Feb 2, 2024
@Kahsolt
Copy link
Owner

Kahsolt commented Feb 2, 2024

Hello friends, thanks for the bug report.
Have a try of the latest commit for the bug fix

@mcDandy
Copy link

mcDandy commented Apr 17, 2024

Honestly forgot abt this. I am sure it was fixed...

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

3 participants