Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Apr 19, 2023
1 parent b9d4769 commit eb17757
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/api/api.py
Expand Up @@ -33,7 +33,6 @@
from typing import Union
import traceback
from modules.sd_vae import reload_vae_weights, refresh_vae_list
from modules.hypernetworks import hypernetwork
from modules.paths_internal import script_path
import uuid
import os
Expand Down Expand Up @@ -758,8 +757,7 @@ def invocations(self, req: InvocationsRequest):
hypernetwork_s3uri = shared.cmd_opts.hypernetwork_s3uri

self.download_s3files(hypernetwork_s3uri, os.path.join(script_path, shared.cmd_opts.hypernetwork_dir))
hypernetwork.load_hypernetwork(shared.opts.sd_hypernetwork)
hypernetwork.apply_strength()
shared.reload_hypernetworks()

try:
if req.task == 'text-to-image':
Expand Down

0 comments on commit eb17757

Please sign in to comment.