Skip to content

Commit 9a530c7

Browse files
RyanJDickbrandonrising
authored andcommitted
Remove outdated TODO.
1 parent 9f6f404 commit 9a530c7

File tree

1 file changed

+1
-3
lines changed
  • invokeai/backend/model_manager/load/model_loaders

1 file changed

+1
-3
lines changed

invokeai/backend/model_manager/load/model_loaders/flux.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,7 @@ def _load_model(
153153
case SubModelType.Tokenizer2:
154154
return T5Tokenizer.from_pretrained(Path(config.path) / "tokenizer_2", max_length=512)
155155
case SubModelType.TextEncoder2:
156-
return T5EncoderModel.from_pretrained(
157-
Path(config.path) / "text_encoder_2"
158-
) # TODO: Fix hf subfolder install
156+
return T5EncoderModel.from_pretrained(Path(config.path) / "text_encoder_2")
159157

160158
raise ValueError(
161159
f"Only Tokenizer and TextEncoder submodels are currently supported. Received: {submodel_type.value if submodel_type else 'None'}"

0 commit comments

Comments
 (0)