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
chenpangpang
transformers
Commits
b4e66d7a
Unverified
Commit
b4e66d7a
authored
Oct 05, 2023
by
Arthur
Committed by
GitHub
Oct 05, 2023
Browse files
[ `NougatProcessor`] Fix the default channel (#26608)
fix
parent
43bfd093
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/nougat/processing_nougat.py
src/transformers/models/nougat/processing_nougat.py
+1
-1
No files found.
src/transformers/models/nougat/processing_nougat.py
View file @
b4e66d7a
...
@@ -61,7 +61,7 @@ class NougatProcessor(ProcessorMixin):
...
@@ -61,7 +61,7 @@ class NougatProcessor(ProcessorMixin):
do_normalize
:
bool
=
None
,
do_normalize
:
bool
=
None
,
image_mean
:
Optional
[
Union
[
float
,
List
[
float
]]]
=
None
,
image_mean
:
Optional
[
Union
[
float
,
List
[
float
]]]
=
None
,
image_std
:
Optional
[
Union
[
float
,
List
[
float
]]]
=
None
,
image_std
:
Optional
[
Union
[
float
,
List
[
float
]]]
=
None
,
data_format
:
Optional
[
"ChannelDimension"
]
=
"
C
hannel
Dimension.FIRST
"
,
# noqa: F821
data_format
:
Optional
[
"ChannelDimension"
]
=
"
c
hannel
s_first
"
,
# noqa: F821
input_data_format
:
Optional
[
Union
[
str
,
"ChannelDimension"
]]
=
None
,
# noqa: F821
input_data_format
:
Optional
[
Union
[
str
,
"ChannelDimension"
]]
=
None
,
# noqa: F821
text_pair
:
Optional
[
Union
[
TextInput
,
PreTokenizedInput
,
List
[
TextInput
],
List
[
PreTokenizedInput
]]]
=
None
,
text_pair
:
Optional
[
Union
[
TextInput
,
PreTokenizedInput
,
List
[
TextInput
],
List
[
PreTokenizedInput
]]]
=
None
,
text_target
:
Union
[
TextInput
,
PreTokenizedInput
,
List
[
TextInput
],
List
[
PreTokenizedInput
]]
=
None
,
text_target
:
Union
[
TextInput
,
PreTokenizedInput
,
List
[
TextInput
],
List
[
PreTokenizedInput
]]
=
None
,
...
...
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