KnoBuddy / VisualDiffusion

A GUI for text2img diffusion, as a visual alternative to CLI and Jupyter Notebooks.
MIT License
28 stars 3 forks source link

[BUG]Error sampling_mode.set(json_set['sampling_mode']) when running prdgui.py #15

Closed softyoda closed 2 years ago

softyoda commented 2 years ago

Describe the bug First install of VisualDiffusion inside of prs up to date repo I can't run the prdgui.py

Error :

(prs) C:\Users\intel\Desktop\StableDiffusion\progrock-stable\prs>python visualdiffusion\prdgui.py
Default settings loaded
Traceback (most recent call last):
  File "visualdiffusion\prdgui.py", line 755, in <module>
    sampling_mode.set(json_set['sampling_mode'])
KeyError: 'sampling_mode'

Desktop :

Additional context First run of the program, i just git-pulled prs and VisualDiffusion inside the prs folder, i'm in the conda environment for prs.

KnoBuddy commented 2 years ago

You are trying to run PRDGUI inside of the PRS environment/repo. They are two different diffusion models.

KnoBuddy commented 2 years ago

prsgui.py for ProgRock-Stable, prdgui.py for ProgrockDiffusion.

softyoda commented 2 years ago

Oh, you're right, I just followed the tutorial in the readme.md without noticing there were two .py for progrock diffusion and stable.

I've tried to execute the prsgui.py and now I have the following error :

(prs) C:\Users\intel\Desktop\StableDiffusion\progrock-stable\prs>python visualdiffusion\prsgui.py
Traceback (most recent call last):
  File "visualdiffusion\prsgui.py", line 694, in <module>
    set_variables()
  File "visualdiffusion\prsgui.py", line 111, in set_variables
    method = json_set.method
AttributeError: 'types.SimpleNamespace' object has no attribute 'method'
KnoBuddy commented 2 years ago

Delete gui_settings.json

On Sun, Sep 4, 2022, 5:07 PM amcgi @.***> wrote:

Oh, you're right, I just followed the tutorial in the readme.md without noticing there were two .py for progrock diffusion and stable.

I've tried to execute the prsgui.py and now I have the following error :

(prs) C:\Users\intel\Desktop\StableDiffusion\progrock-stable\prs>python visualdiffusion\prsgui.py Traceback (most recent call last): File "visualdiffusion\prsgui.py", line 694, in set_variables() File "visualdiffusion\prsgui.py", line 111, in set_variables method = json_set.method AttributeError: 'types.SimpleNamespace' object has no attribute 'method'

— Reply to this email directly, view it on GitHub https://github.com/KnoBuddy/VisualDiffusion/issues/15#issuecomment-1236442588, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJS53BMFSDP4SONX5Q6YULV4U2TLANCNFSM6AAAAAAQERASHU . You are receiving this because you were assigned.Message ID: @.***>

softyoda commented 2 years ago

I don't have any gui_settings.json inside the prs directory and any other sub-directory. image

KnoBuddy commented 2 years ago

Delete line 111 of prsgui.py. method = json_set.method

KnoBuddy commented 2 years ago

I think I left an extra line in there that shouldn't be. I'm on mobile and I'll push the change when I get home if that fixes it.

softyoda commented 2 years ago

Yep, it was that, I deleted the line 111 ( method = json_set.method) and now it work ! Thanks !