stable-diffusion-webui-inspiration icon indicating copy to clipboard operation
stable-diffusion-webui-inspiration copied to clipboard

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

Open andy8992 opened this issue 6 months ago • 1 comments

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 avatar Aug 18 '24 00:08 andy8992