Skip to content

Commit 12df72e

Browse files
committed
fix bugs in invacation when swapping models
1 parent 3ca03cd commit 12df72e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/api/api.py

+1
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ def invocations(self, req: InvocationsRequest):
396396
response = requests.post(url=f'{api_endpoint}/sd/user', json=inputs)
397397
if response.status_code == 200 and response.text != '':
398398
shared.opts.data = json.loads(response.text)
399+
sd_models.load_model()
399400
sd_models.reload_model_weights()
400401

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

0 commit comments

Comments
 (0)