Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
ec64f371
Unverified
Commit
ec64f371
authored
Mar 09, 2024
by
Sayak Paul
Committed by
GitHub
Mar 09, 2024
Browse files
[Chore] remove tf mention (#7245)
remove tf mention
parent
cd6e1f11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/diffusers/models/modeling_utils.py
src/diffusers/models/modeling_utils.py
+1
-3
No files found.
src/diffusers/models/modeling_utils.py
View file @
ec64f371
...
@@ -124,9 +124,7 @@ def load_state_dict(checkpoint_file: Union[str, os.PathLike], variant: Optional[
...
@@ -124,9 +124,7 @@ def load_state_dict(checkpoint_file: Union[str, os.PathLike], variant: Optional[
)
from
e
)
from
e
except
(
UnicodeDecodeError
,
ValueError
):
except
(
UnicodeDecodeError
,
ValueError
):
raise
OSError
(
raise
OSError
(
f
"Unable to load weights from checkpoint file for '
{
checkpoint_file
}
' "
f
"Unable to load weights from checkpoint file for '
{
checkpoint_file
}
' "
f
"at '
{
checkpoint_file
}
'. "
f
"at '
{
checkpoint_file
}
'. "
"If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True."
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment