Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Image classification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brudy Saintespes Baptiste
Image classification
Commits
e87c40c3
Commit
e87c40c3
authored
1 year ago
by
BaptisteBrd
Browse files
Options
Downloads
Patches
Plain Diff
data matrix
parent
61dd79cf
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.DS_Store
+0
-0
0 additions, 0 deletions
.DS_Store
data/.DS_Store
+0
-0
0 additions, 0 deletions
data/.DS_Store
read_cifar.py
+7
-1
7 additions, 1 deletion
read_cifar.py
with
7 additions
and
1 deletion
.DS_Store
+
0
−
0
View file @
e87c40c3
No preview for this file type
This diff is collapsed.
Click to expand it.
data/.DS_Store
+
0
−
0
View file @
e87c40c3
No preview for this file type
This diff is collapsed.
Click to expand it.
read_cifar.py
+
7
−
1
View file @
e87c40c3
import
numpy
import
pickle
def
unpickle
(
file
):
import
pickle
with
open
(
file
,
'
rb
'
)
as
fo
:
dict
=
pickle
.
load
(
fo
,
encoding
=
'
bytes
'
)
return
dict
dict1
=
unpickle
(
"
data/cifar-10-batches-py/data_batch_1
"
)
data
=
[
dict1
[
key
]
for
key
in
dict1
]
print
(
len
(
data
[
1
]))
#def read_cifar_batch(path) :
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment