Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
8f3558e5
Commit
8f3558e5
authored
Apr 03, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in svhn
parent
41bf8ffe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tensorpack/dataflow/dataset/svhn.py
tensorpack/dataflow/dataset/svhn.py
+3
-3
tensorpack/utils/logger.py
tensorpack/utils/logger.py
+1
-1
No files found.
tensorpack/dataflow/dataset/svhn.py
View file @
8f3558e5
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
import
os
import
os
import
random
import
random
import
numpy
import
numpy
as
np
import
scipy
import
scipy
import
scipy.io
import
scipy.io
from
six.moves
import
range
from
six.moves
import
range
from
...utils
import
logger
from
...utils
import
logger
,
get_rng
from
..base
import
DataFlow
from
..base
import
DataFlow
__all__
=
[
'SVHNDigit'
]
__all__
=
[
'SVHNDigit'
]
...
@@ -70,7 +70,7 @@ http://ufldl.stanford.edu/housenumbers/".format(filename)
...
@@ -70,7 +70,7 @@ http://ufldl.stanford.edu/housenumbers/".format(filename)
a
=
SVHNDigit
(
'train'
)
a
=
SVHNDigit
(
'train'
)
b
=
SVHNDigit
(
'test'
)
b
=
SVHNDigit
(
'test'
)
c
=
SVHNDigit
(
'extra'
)
c
=
SVHNDigit
(
'extra'
)
return
n
umpy
.
concatenate
((
a
.
X
,
b
.
X
,
c
.
X
))
.
mean
(
axis
=
0
)
return
n
p
.
concatenate
((
a
.
X
,
b
.
X
,
c
.
X
))
.
mean
(
axis
=
0
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
a
=
SVHNDigit
(
'train'
)
a
=
SVHNDigit
(
'train'
)
...
...
tensorpack/utils/logger.py
View file @
8f3558e5
...
@@ -65,7 +65,7 @@ Directory {} exists! Please either backup/delete it, or use a new directory \
...
@@ -65,7 +65,7 @@ Directory {} exists! Please either backup/delete it, or use a new directory \
unless you're resuming from a previous task."""
.
format
(
dirname
))
unless you're resuming from a previous task."""
.
format
(
dirname
))
logger
.
info
(
"Select Action: k (keep) / b (backup) / d (delete) / n (new):"
)
logger
.
info
(
"Select Action: k (keep) / b (backup) / d (delete) / n (new):"
)
while
True
:
while
True
:
act
=
input
()
.
lower
()
act
=
input
()
.
lower
()
.
strip
()
if
act
:
if
act
:
break
break
if
act
==
'b'
:
if
act
==
'b'
:
...
...
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