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
OpenDAS
vision
Commits
906c2e95
Unverified
Commit
906c2e95
authored
Jun 12, 2023
by
Dhuige
Committed by
GitHub
Jun 12, 2023
Browse files
Typo backbone_utils.py (#7662)
Co-authored-by:
Nicolas Hug
<
nh.nicolas.hug@gmail.com
>
parent
cff78aa6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/models/detection/backbone_utils.py
torchvision/models/detection/backbone_utils.py
+1
-1
No files found.
torchvision/models/detection/backbone_utils.py
View file @
906c2e95
...
@@ -158,7 +158,7 @@ def _validate_trainable_layers(
...
@@ -158,7 +158,7 @@ def _validate_trainable_layers(
if
not
is_trained
:
if
not
is_trained
:
if
trainable_backbone_layers
is
not
None
:
if
trainable_backbone_layers
is
not
None
:
warnings
.
warn
(
warnings
.
warn
(
"Changing trainable_backbone_layers has no
t
effect if "
"Changing trainable_backbone_layers has no effect if "
"neither pretrained nor pretrained_backbone have been set to True, "
"neither pretrained nor pretrained_backbone have been set to True, "
f
"falling back to trainable_backbone_layers=
{
max_value
}
so that all layers are trainable"
f
"falling back to trainable_backbone_layers=
{
max_value
}
so that all layers are trainable"
)
)
...
...
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