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
8616227c
"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "ec1aded12e8fbdc98d6703f9111ed824addebc77"
Unverified
Commit
8616227c
authored
Jun 24, 2019
by
Francisco Massa
Committed by
GitHub
Jun 24, 2019
Browse files
Fix redundant transform in Cityscapes (#1045)
parent
5e42e805
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
torchvision/datasets/cityscapes.py
torchvision/datasets/cityscapes.py
+0
-2
No files found.
torchvision/datasets/cityscapes.py
View file @
8616227c
...
@@ -99,8 +99,6 @@ class Cityscapes(VisionDataset):
...
@@ -99,8 +99,6 @@ class Cityscapes(VisionDataset):
def
__init__
(
self
,
root
,
split
=
'train'
,
mode
=
'fine'
,
target_type
=
'instance'
,
def
__init__
(
self
,
root
,
split
=
'train'
,
mode
=
'fine'
,
target_type
=
'instance'
,
transform
=
None
,
target_transform
=
None
,
transforms
=
None
):
transform
=
None
,
target_transform
=
None
,
transforms
=
None
):
super
(
Cityscapes
,
self
).
__init__
(
root
,
transforms
,
transform
,
target_transform
)
super
(
Cityscapes
,
self
).
__init__
(
root
,
transforms
,
transform
,
target_transform
)
self
.
transform
=
transform
self
.
target_transform
=
target_transform
self
.
mode
=
'gtFine'
if
mode
==
'fine'
else
'gtCoarse'
self
.
mode
=
'gtFine'
if
mode
==
'fine'
else
'gtCoarse'
self
.
images_dir
=
os
.
path
.
join
(
self
.
root
,
'leftImg8bit'
,
split
)
self
.
images_dir
=
os
.
path
.
join
(
self
.
root
,
'leftImg8bit'
,
split
)
self
.
targets_dir
=
os
.
path
.
join
(
self
.
root
,
self
.
mode
,
split
)
self
.
targets_dir
=
os
.
path
.
join
(
self
.
root
,
self
.
mode
,
split
)
...
...
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