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
945f3a8b
Unverified
Commit
945f3a8b
authored
Mar 03, 2021
by
Philip Meier
Committed by
GitHub
Mar 03, 2021
Browse files
[FBcode->GH] change image type for LSUN tests (#3492)
parent
8a820172
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_datasets.py
test/test_datasets.py
+1
-1
No files found.
test/test_datasets.py
View file @
945f3a8b
...
...
@@ -988,7 +988,7 @@ class LSUNTestCase(datasets_utils.ImageDatasetTestCase):
folder
=
f
"
{
cls
}
_lmdb"
num_images
=
torch
.
randint
(
1
,
4
,
size
=
()).
item
()
format
=
"
webp
"
format
=
"
png
"
files
=
datasets_utils
.
create_image_folder
(
root
,
folder
,
lambda
idx
:
f
"
{
idx
}
.
{
format
}
"
,
num_images
)
with
lmdb
.
open
(
str
(
root
/
folder
))
as
env
,
env
.
begin
(
write
=
True
)
as
txn
:
...
...
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