yfszzx / stable-diffusion-webui-inspiration

114 stars 23 forks source link

I had an issue with an None Type Error occurring, with ChatGPT's help I fixed it and this script now runs for me. #43

Open andy8992 opened 3 weeks ago

andy8992 commented 3 weeks ago

So I was getting an error

AttributeError: 'NamedString' object has no attribute 'orig_name'
'NamedString' object has no attribute 'orig_name' 

and no images would get generated. With ChatGPT’s help, I found out that changing orig_name to just name fixed the issue. Now the extension works as intended.

Steps to Reproduce:

Set up the extension following the README instructions. Upload a text file with artist names (e.g., artist.csv). Run the extension. Expected Behavior: The extension should process the uploaded file and generate inspiration images without any issues.

Actual Behavior: The extension throws an AttributeError because it tries to access an attribute orig_name that doesn’t exist on the file object.

Changing file.orig_name to file.name fixes the issue.

andy8992 commented 3 weeks ago

Meh.. this extension seems to be broken in multiple ways as soon as i fix something I find another thing

i can generate images but they're still only being saved in the temp folder, when moved over manually my inspiration extension tab dissapears