Skip to content

Commit

Permalink
fix bugs in invacation when swapping models
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Dec 13, 2022
1 parent 3ca03cd commit 12df72e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/api/api.py
Expand Up @@ -396,6 +396,7 @@ def invocations(self, req: InvocationsRequest):
response = requests.post(url=f'{api_endpoint}/sd/user', json=inputs)
if response.status_code == 200 and response.text != '':
shared.opts.data = json.loads(response.text)
sd_models.load_model()
sd_models.reload_model_weights()

self.download_s3files(hypernetwork_s3uri, os.path.join(script_path, shared.cmd_opts.hypernetwork_dir))
Expand Down

0 comments on commit 12df72e

Please sign in to comment.