Haidra-Org / AI-Horde-CLI

python script integrating with the AI Horde via a command line interface
GNU Affero General Public License v3.0
56 stars 15 forks source link

Error calling cli_request_alchemy.py #2

Closed Skquark closed 1 year ago

Skquark commented 1 year ago

Got everything setup for using this in my project for caption and interrogation, made the .yml file to pass into it and giving it the path to source_image.. Ran it and didn't see any output, then found the cliRequests.log file and saw this error:

  File "D:\Projects\Stable-Diffusion-Deluxe\dist\Stable-Diffusion-Deluxe\AI-Horde-CLI\cli_request_alchemy.py", line 57, in load_request_data
    if args.source_image: self.source_image = args.source_image
       │    │                                 │    └ 'D:\\Projects\\Stable-Diffusion-Deluxe\\image2text\\sd-Fantasy_dragon_with_a_knight_riding_holding_a_lance-0.png'
       │    │                                 └ Namespace(api_key='0000000000', filename='D:\\Projects\\Stable-Diffusion-Deluxe\\dist\\Stable-Diffusion-Deluxe\\A...
       │    └ 'D:\\Projects\\Stable-Diffusion-Deluxe\\image2text\\sd-Fantasy_dragon_with_a_knight_riding_holding_a_lance-0.png'
       └ Namespace(api_key='0000000000', filename='D:\\Projects\\Stable-Diffusion-Deluxe\\dist\\Stable-Diffusion-Deluxe\\A...

NameError: name 'self' is not defined

Looked into line 57 and it makes sense why self wasn't defined in def load_request_data()... The self variable is not in it's scope, should be an easy fix...