Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor modification to support DIGITS for Windows #698

Merged
merged 4 commits into from
Apr 23, 2016
Merged

Minor modification to support DIGITS for Windows #698

merged 4 commits into from
Apr 23, 2016

Conversation

IsaacYangSLA
Copy link
Contributor

Loading h5py before caffe to solve hdf5 dll issue.
Casting histogram to float32 to ensure correct format in JSON.

Casting histogram to float32 to ensure correct format in JSON.
@@ -242,6 +242,9 @@ def apply(self):
os.environ['PYTHONPATH'] = '%s:%s' % (p, os.environ.get('PYTHONPATH'))

try:
# for Windows environment, loading h5py before caffe solves the issue mentioned in
# https://github.com/NVIDIA/DIGITS/issues/47#issuecomment-206292824
import h5py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put this before the try/catch block? If someone didn't install h5py, then they would get a misleading error: Did you forget to "make pycaffe"?.

@IsaacYangSLA
Copy link
Contributor Author

Thanks for the comment. I moved 'import h5py' outside the try/except block to avoid potential confusion.

@lukeyeager
Copy link
Member

LGTM!

@lukeyeager lukeyeager merged commit 5962278 into NVIDIA:master Apr 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants