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
cff78aa6
Unverified
Commit
cff78aa6
authored
Jun 12, 2023
by
Max Chuprov
Committed by
GitHub
Jun 12, 2023
Browse files
fix bug when using PIL backend in references/classification (#7665)
Co-authored-by:
Max Chuprov
<
m.chuprov@expasoft.tech
>
parent
657027f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
references/classification/presets.py
references/classification/presets.py
+1
-2
No files found.
references/classification/presets.py
View file @
cff78aa6
...
...
@@ -69,11 +69,10 @@ class ClassificationPresetEval:
backend
=
"pil"
,
):
trans
=
[]
backend
=
backend
.
lower
()
if
backend
==
"tensor"
:
trans
.
append
(
transforms
.
PILToTensor
())
el
se
:
el
if
backend
!=
"pil"
:
raise
ValueError
(
f
"backend can be 'tensor' or 'pil', but got
{
backend
}
"
)
trans
+=
[
...
...
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