Closed Wolfehart closed 1 year ago
Delete the lyrocis extension if it's installed. Are you sure there is a argo-08.safetensors file in your Lora folder? Is the path in settings pointing to the right folder?
I don't have lyrocis extension installed. I have placed my the lora file inside webui\models\Lora folder. Previously I did not set any directory settings and it detected properly. I will try setting the directory.
Lora is detected properly under extra network tab.
When you startup is there a Lora_script script error visible?
I have that after pull just now.
*** Error loading script: lora_script.py Traceback (most recent call last): File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/modules/scripts.py", line 295, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 7, in <module> import network File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/extensions-builtin/Lora/network.py", line 101, in <module> class ModuleType: File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/extensions-builtin/Lora/network.py", line 102, in ModuleType def create_module(self, net: Network, weights: NetworkWeights) -> Network | None: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
When you startup is there a Lora_script script error visible? I have that after pull just now.
*** Error loading script: lora_script.py Traceback (most recent call last): File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/modules/scripts.py", line 295, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 7, in <module> import network File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/extensions-builtin/Lora/network.py", line 101, in <module> class ModuleType: File "/home/bob_billie_skeeter_johnson/development/ai_playground/imaging/stable-diffusion-webui/extensions-builtin/Lora/network.py", line 102, in ModuleType def create_module(self, net: Network, weights: NetworkWeights) -> Network | None: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
No errors at all for me, My console logs in exactly like in my initial post.
So what's weird is even reverting back to earlier commit also doesn't work. I'm fairly convinced it's some settings on my PC but I can't figure out what is causing it.
Ok maybe my issue is diff. -wrong/deleted-
Couldn't find network with name argo-08
so lora with the name argo-08 BUT on your screenshot i see only argo-09 🤨
Couldn't find network with name argo-08
so lora with the name argo-08 BUT on your screenshot i see only argo-09 🤨
I was making sure that the lora prompt was working. i did a test with argo-08 and argo-09 but both still produce the same result...
For me i removed the type hint: i changed: /home/boby_joe/development/ai_playground/imaging/stable-diffusion-webui/extensions-builtin/Lora/network.py
'''class ModuleType: def create_module(self, net: Network, weights: NetworkWeights) -> Network | None: return None'''
to
'''class ModuleType: def create_module(self, net: Network, weights: NetworkWeights) : return None'''
Lora work for me now. (Pretty sure it's not same issue tbh judging by your clean startup. My error is in there and your initial post is clean. Good luck )
@somenewaccountthen Thanks. That fixed lora for me. I'm on torch: 1.13.0+rocm5.2
and python: 3.9.5
in case that helps narrow down the issue. There is no problem on python: 3.10.12
.
@somenewaccountthen Thanks!! That also fixed my issue after updating to the latest commit. I am on Python 3.9.17.
This repo does not officially support Python 3.9 – please upgrade to Python 3.10 to avoid heartache like this in the future.
This repo does not officially support Python 3.9 – please upgrade to Python 3.10 to avoid heartache like this in the future.
That is unfortunate since the wiki for AMD still refers to a docker image with ubuntu 20.04.
Tried these steps:-
Still generating exact same image w/ and w/o lora prompt with no errors. I'm not sure why it just suddenly doesn't generate LoRA images anymore. I wish it at least generate an error.
Other than upgrading nvidia drivers recently (Already downgraded to old driver version) and maybe a windows update, i don't think I did any other python related stuffs.
Reinstalled windows and it worked, so i didn't really found a way to solve it except by reinstalling windows.
Is there an existing issue for this?
What happened?
At first I moved the entire SD folder to my C: drive from D: drive and found out that it doesn't work. So I deleted the entire folder and reinstall the SD using the 1.0.0-pre method and ran update.bat, added some params and start run.bat. Everything is running ok, able to generate images, but when i added the lora prompt, the generated image is not affected by lora model at all. There are no errors in the console. I've tried using the same seed to generate w/ and w/o lora prompt, they both generated the same image. I'm not sure how to troubleshoot this. Any advice is much appreciated.
Steps to reproduce the problem
What should have happened?
Image generated should be affected by lora model.
Version or Commit where the problem happens
v1.4.1, v1.5.0
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Nvidia GPUs (GTX 16 below)
Cross attention optimization
Automatic
What browsers do you use to access the UI ?
Mozilla Firefox, Brave
Command Line Arguments
List of extensions
No
Console logs
Additional information
I have updated the webui to the latest version via update.bat, The console log was attempted just now. There is a line mentioned "Couldn't find network with name argo-08", it was me testing whether lora prompt is detecting properly or not. My lora name is actually argo-09. The next image generated using argo-09 lora has no error, but generated exactly the same image.