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
aa9fa44a
Commit
aa9fa44a
authored
Oct 17, 2017
by
Alykhan Tejani
Committed by
Francisco Massa
Oct 17, 2017
Browse files
remove test/cifar.py (#297)
parent
901c1ad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
test/cifar.py
test/cifar.py
+0
-39
No files found.
test/cifar.py
deleted
100644 → 0
View file @
901c1ad2
import
torch
import
torchvision.datasets
as
dset
import
torchvision.transforms
as
transforms
print
(
'
\n\n
Cifar 10'
)
a
=
dset
.
CIFAR10
(
root
=
"abc/def/ghi"
,
download
=
True
)
print
(
a
[
3
])
# print('\n\nCifar 100')
# a = dset.CIFAR100(root="abc/def/ghi", download=True)
# print(a[3])
dataset
=
dset
.
CIFAR10
(
root
=
'cifar'
,
download
=
True
,
transform
=
transforms
.
ToTensor
())
dataloader
=
torch
.
utils
.
data
.
DataLoader
(
dataset
,
batch_size
=
1
,
shuffle
=
True
,
num_workers
=
2
)
for
i
,
data
in
enumerate
(
dataloader
,
0
):
print
(
data
)
if
i
==
10
:
break
# miter = dataloader.__iter__()
# def getBatch():
# global miter
# try:
# return miter.next()
# except StopIteration:
# miter = dataloader.__iter__()
# return miter.next()
# i=0
# while True:
# print(i)
# img, target = getBatch()
# i+=1
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