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

not working with high res fix #2

Open
IkariDevGIT opened this issue Dec 2, 2022 · 2 comments
Open

not working with high res fix #2

IkariDevGIT opened this issue Dec 2, 2022 · 2 comments

Comments

@IkariDevGIT
Copy link

To create a public link, set share=True in launch().
Unloading hypernetwork
daam run
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:42<00:00, 1.41s/it]
Error executing callback before_image_saved_callback for D:\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam_script.py
Traceback (most recent call last):
File "D:\stable-diffusion-webui\modules\script_callbacks.py", line 121, in before_image_saved_callback
c.callback(params)
File "D:\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam_script.py", line 88, in before_image_saved
global_heat_map = self.tracer.compute_global_heat_map(params.p.prompt)
AttributeError: 'NoneType' object has no attribute 'prompt'

100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:49<00:00, 1.65s/it]
Error executing callback before_image_saved_callback for D:\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam_script.py
Traceback (most recent call last):
File "D:\stable-diffusion-webui\modules\script_callbacks.py", line 121, in before_image_saved_callback
c.callback(params)
File "D:\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam_script.py", line 88, in before_image_saved
global_heat_map = self.tracer.compute_global_heat_map(params.p.prompt)
File "D:\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam\trace.py", line 167, in compute_global_heat_map
maps = torch.stack([torch.stack(x, 0) for x in all_merges], dim=0)
RuntimeError: stack expects each tensor to be equal size, but got [2, 154, 1, 64, 32] at entry 0 and [4, 154, 1, 64, 32] at entry 59

Total progress: 100%|██████████████████████████████████████████████████████████████████| 60/60 [01:11<00:00, 1.20s/it]

@kousw
Copy link
Owner

kousw commented Dec 3, 2022

Thank you for reporting the problem. However, it may be a bit difficult.
Highres fix first generates a low-resolution image, then the desired resolution.
The current implementation only combines heatmaps of consistent resolution.
I will give it some thought.

@ghost
Copy link

ghost commented Dec 18, 2022

This works but only for specific resolution combination(s). As an example, and the only one I've seen that works, 1536x1024, with a firstpass size of 768x512, produces no error, and the heatmap generates fine. The width/height can be swapped in each as well. I can share an example if needed but this looks to be consistently reproducable.

Bing-su pushed a commit to Bing-su/stable-diffusion-webui-daam that referenced this issue Jan 21, 2023
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

2 participants