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

Fix infer_many for Caffe #361

Merged
merged 1 commit into from
Oct 13, 2015
Merged

Conversation

lukeyeager
Copy link
Member

Fix #255, Fix #349

Previously, scores = output performed a shallow copy that was
overwritten when the next output was calculated. Now, we're using
np.copy to do a deep copy and avoid the error.

Previously, `scores = output` performed a shallow copy that was
overwritten when the next output was calculated. Now, we're using
np.copy to do a deep copy and avoid the error.
@gheinrich
Copy link
Contributor

that looks good to me!

@lukeyeager
Copy link
Member Author

Ugh, another timeout failure.

======================================================================
ERROR: test suite for <class 'digits.model.images.classification.test_views.TestCaffeCreatedCropInForm'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/lib/python2.7/site-packages/nose/suite.py", line 209, in run
    self.setUp()
  File "/home/travis/miniconda/lib/python2.7/site-packages/nose/suite.py", line 292, in setUp
    self.setupContext(ancestor)
  File "/home/travis/miniconda/lib/python2.7/site-packages/nose/suite.py", line 315, in setupContext
    try_run(context, names)
  File "/home/travis/miniconda/lib/python2.7/site-packages/nose/util.py", line 471, in try_run
    return func()
  File "/home/travis/build/NVIDIA/DIGITS/digits/model/images/classification/test_views.py", line 207, in setUpClass
    assert cls.model_wait_completion(cls.model_id) == 'Done', 'create failed'
  File "/home/travis/build/NVIDIA/DIGITS/digits/model/images/classification/test_views.py", line 104, in model_wait_completion
    return cls.job_wait_completion(job_id, **kwargs)
  File "/home/travis/build/NVIDIA/DIGITS/digits/test_views.py", line 118, in job_wait_completion
    assert (time.time() - start) < timeout, 'Job took more than %s seconds' % timeout
AssertionError: Job took more than 40 seconds
-------------------- >> begin captured logging << --------------------

lukeyeager added a commit that referenced this pull request Oct 13, 2015
@lukeyeager lukeyeager merged commit 893663e into NVIDIA:master Oct 13, 2015
@lukeyeager lukeyeager deleted the fix-infer-many branch October 13, 2015 21:58
@nemesisity
Copy link

This seems to be giving proper results now. Awesome.

yangj1e pushed a commit to yangj1e/DIGITS that referenced this pull request Nov 9, 2015
fix for classification example, similar to NVIDIA#361
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants