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
e4b0bd9d
Commit
e4b0bd9d
authored
Feb 04, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in dataset dir. add extra requires
parent
57af140a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
15 deletions
+28
-15
opt-requirements.txt
opt-requirements.txt
+0
-1
setup.py
setup.py
+27
-13
tensorpack/utils/fs.py
tensorpack/utils/fs.py
+1
-1
No files found.
opt-requirements.txt
View file @
e4b0bd9d
pillow
pillow
scipy
scipy
nltk
h5py
h5py
tornado
; python_version < '3.0'
tornado
; python_version < '3.0'
lmdb
lmdb
...
...
setup.py
View file @
e4b0bd9d
from
setuptools
import
setup
from
setuptools
import
setup
import
sys
req
=
[
'numpy'
,
req
=
[
'six'
,
'numpy'
,
'termcolor'
,
'six'
,
'tqdm>4.11.1'
,
'termcolor'
,
'msgpack-python'
,
'tqdm>4.11.1'
,
'msgpack-numpy'
,
'msgpack-python'
,
'pyzmq'
'msgpack-numpy'
,
]
'pyzmq'
,
if
sys
.
version_info
.
major
==
2
:
'subprocess32;python_version<"3.0"'
,
req
.
extend
([
'subprocess32'
,
'functools32'
])
'functools32;python_version<"3.0"'
,
]
extra_req
=
[
'pillow'
,
'scipy'
,
'h5py'
,
'lmdb'
,
'matplotlib'
,
'scikit-learn'
,
'tornado;python_version<"3.0"'
,
]
# TODO:
# TODO:
# setup_requires, extras_requires, scripts
# setup_requires, scripts
setup
(
install_requires
=
req
)
setup
(
install_requires
=
req
,
extras_require
=
{
'all'
:
extra_req
},
)
tensorpack/utils/fs.py
View file @
e4b0bd9d
...
@@ -82,7 +82,7 @@ def get_dataset_path(*args):
...
@@ -82,7 +82,7 @@ def get_dataset_path(*args):
if
d
is
None
:
if
d
is
None
:
old_d
=
os
.
path
.
abspath
(
os
.
path
.
join
(
old_d
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'dataflow'
,
'dataset'
))
os
.
path
.
dirname
(
__file__
),
'..'
,
'dataflow'
,
'dataset'
))
old_d_ret
=
os
.
path
.
join
(
d
,
*
args
)
old_d_ret
=
os
.
path
.
join
(
old_
d
,
*
args
)
new_d
=
os
.
path
.
expanduser
(
'~/tensorpack_data'
)
new_d
=
os
.
path
.
expanduser
(
'~/tensorpack_data'
)
if
os
.
path
.
isdir
(
old_d_ret
):
if
os
.
path
.
isdir
(
old_d_ret
):
# there is an old dir containing data, use it for back-compat
# there is an old dir containing data, use it for back-compat
...
...
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