Skip to content

Commit

Permalink
First argument can not be None.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba committed Nov 2, 2024
1 parent 82a973c commit 7868bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sd_disable_initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_model_and_transforms_without_pretrained(*args, pretrained=None, **kwa
return self.create_model_and_transforms(*args, pretrained=None, **kwargs)

def CLIPTextModel_from_pretrained(pretrained_model_name_or_path, *model_args, **kwargs):
res = self.CLIPTextModel_from_pretrained(None, *model_args, config=pretrained_model_name_or_path, state_dict={}, **kwargs)
res = self.CLIPTextModel_from_pretrained(pretrained_model_name_or_path, *model_args, config=pretrained_model_name_or_path, state_dict={}, **kwargs)
res.name_or_path = pretrained_model_name_or_path
return res

Expand Down

0 comments on commit 7868bf6

Please sign in to comment.