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
159ff334
Unverified
Commit
159ff334
authored
Apr 03, 2023
by
Younes Belkada
Committed by
GitHub
Apr 03, 2023
Browse files
Update test_image_processing_pix2struct.py (#22543)
parent
c14d3129
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tests/models/pix2struct/test_image_processing_pix2struct.py
tests/models/pix2struct/test_image_processing_pix2struct.py
+1
-2
No files found.
tests/models/pix2struct/test_image_processing_pix2struct.py
View file @
159ff334
...
...
@@ -65,7 +65,7 @@ class Pix2StructImageProcessingTester(unittest.TestCase):
return
{
"do_normalize"
:
self
.
do_normalize
,
"do_convert_rgb"
:
self
.
do_convert_rgb
}
def
prepare_dummy_image
(
self
):
img_url
=
"https://
www.ilankelman.org/stopsign
s/australia.jpg"
img_url
=
"https://
huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/task
s/australia.jpg"
raw_image
=
Image
.
open
(
requests
.
get
(
img_url
,
stream
=
True
).
raw
).
convert
(
"RGB"
)
return
raw_image
...
...
@@ -87,7 +87,6 @@ class Pix2StructImageProcessingTest(ImageProcessingSavingTestMixin, unittest.Tes
self
.
assertTrue
(
hasattr
(
image_processor
,
"do_normalize"
))
self
.
assertTrue
(
hasattr
(
image_processor
,
"do_convert_rgb"
))
@
unittest
.
skip
(
"fix me Younes."
)
def
test_expected_patches
(
self
):
dummy_image
=
self
.
image_processor_tester
.
prepare_dummy_image
()
...
...
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