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
152c2b3a
"examples/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "e17f5ea2d322f5eb3cb7cb14aab9849fba013c7c"
Commit
152c2b3a
authored
Aug 29, 2018
by
Vishwak Srinivasan
Committed by
Soumith Chintala
Aug 29, 2018
Browse files
Fix lint error (#588)
parent
d9e50b17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test/test_folder.py
test/test_folder.py
+4
-2
No files found.
test/test_folder.py
View file @
152c2b3a
...
@@ -16,8 +16,10 @@ def mock_transform(return_value, arg_list):
...
@@ -16,8 +16,10 @@ def mock_transform(return_value, arg_list):
class
Tester
(
unittest
.
TestCase
):
class
Tester
(
unittest
.
TestCase
):
root
=
get_file_path_2
(
'test/assets/dataset/'
)
root
=
get_file_path_2
(
'test/assets/dataset/'
)
classes
=
[
'a'
,
'b'
]
classes
=
[
'a'
,
'b'
]
class_a_images
=
[
get_file_path_2
(
os
.
path
.
join
(
'test/assets/dataset/a/'
,
path
))
for
path
in
[
'a1.png'
,
'a2.png'
,
'a3.png'
]]
class_a_images
=
[
get_file_path_2
(
os
.
path
.
join
(
'test/assets/dataset/a/'
,
path
))
class_b_images
=
[
get_file_path_2
(
os
.
path
.
join
(
'test/assets/dataset/b/'
,
path
))
for
path
in
[
'b1.png'
,
'b2.png'
,
'b3.png'
,
'b4.png'
]]
for
path
in
[
'a1.png'
,
'a2.png'
,
'a3.png'
]]
class_b_images
=
[
get_file_path_2
(
os
.
path
.
join
(
'test/assets/dataset/b/'
,
path
))
for
path
in
[
'b1.png'
,
'b2.png'
,
'b3.png'
,
'b4.png'
]]
def
test_image_folder
(
self
):
def
test_image_folder
(
self
):
dataset
=
ImageFolder
(
Tester
.
root
,
loader
=
lambda
x
:
x
)
dataset
=
ImageFolder
(
Tester
.
root
,
loader
=
lambda
x
:
x
)
...
...
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