naver-ai / Visual-Style-Prompting

Official Pytorch implementation of "Visual Style Prompting with Swapping Self-Attention"
https://curryjung.github.io/VisualStylePrompt/
Apache License 2.0
408 stars 30 forks source link

where is "scale" image? #2

Open NJUSTzandyz opened 5 months ago

NJUSTzandyz commented 5 months ago

Hello! I am very interested in the operation of visualize_attention in this article. However, when I tried to run visualize_attn_map_script, I noticed that line 49 requires reading the file named attn_map_paired_rgb_grid_name = f"{style_name}src{src_name}tgt{tgt_name}_scale_1.0_activatelayer(0, 0)(108, 140)seed{seed}.png". It seems that no image with a scale has been generated before. Could you please tell me how this image is generated?

Additionally, I found that the files visualize_attn_map_script.py and save_attn_map_script.py seem to need to be moved to the main directory for smoother operation.