Skip to content

Commit eb17757

Browse files
committed
cleanup
1 parent b9d4769 commit eb17757

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/api/api.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
from typing import Union
3434
import traceback
3535
from modules.sd_vae import reload_vae_weights, refresh_vae_list
36-
from modules.hypernetworks import hypernetwork
3736
from modules.paths_internal import script_path
3837
import uuid
3938
import os
@@ -758,8 +757,7 @@ def invocations(self, req: InvocationsRequest):
758757
hypernetwork_s3uri = shared.cmd_opts.hypernetwork_s3uri
759758

760759
self.download_s3files(hypernetwork_s3uri, os.path.join(script_path, shared.cmd_opts.hypernetwork_dir))
761-
hypernetwork.load_hypernetwork(shared.opts.sd_hypernetwork)
762-
hypernetwork.apply_strength()
760+
shared.reload_hypernetworks()
763761

764762
try:
765763
if req.task == 'text-to-image':

0 commit comments

Comments
 (0)