@@ -758,7 +758,7 @@ def invocations(self, req: InvocationsRequest):
758
758
hypernetwork_s3uri = shared .cmd_opts .hypernetwork_s3uri
759
759
760
760
if hypernetwork_s3uri != '' :
761
- self .download_s3files (hypernetwork_s3uri , os . path . join ( script_path , shared .cmd_opts .hypernetwork_dir ) )
761
+ self .download_s3files (hypernetwork_s3uri , shared .cmd_opts .hypernetwork_dir )
762
762
shared .reload_hypernetworks ()
763
763
764
764
if req .options != None :
@@ -768,14 +768,14 @@ def invocations(self, req: InvocationsRequest):
768
768
769
769
if req .task == 'text-to-image' :
770
770
if embeddings_s3uri != '' :
771
- self .download_s3files (embeddings_s3uri , os . path . join ( script_path , shared .cmd_opts .embeddings_dir ) )
771
+ self .download_s3files (embeddings_s3uri , shared .cmd_opts .embeddings_dir )
772
772
sd_hijack .model_hijack .embedding_db .load_textual_inversion_embeddings ()
773
773
response = self .text2imgapi (req .txt2img_payload )
774
774
response .images = self .post_invocations (response .images , quality )
775
775
return response
776
776
elif req .task == 'image-to-image' :
777
777
if embeddings_s3uri != '' :
778
- self .download_s3files (embeddings_s3uri , os . path . join ( script_path , shared .cmd_opts .embeddings_dir ) )
778
+ self .download_s3files (embeddings_s3uri , shared .cmd_opts .embeddings_dir )
779
779
sd_hijack .model_hijack .embedding_db .load_textual_inversion_embeddings ()
780
780
response = self .img2imgapi (req .img2img_payload )
781
781
response .images = self .post_invocations (response .images , quality )
0 commit comments