question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing `model.pth` causing tests to fail

See original GitHub issue

Describe the bug When running the tests using the command: python3 -m pytest

would result in the test case for test_model_predict to fail. This is because the file mentioned in path static/model.pth under the tests folder doesn’t exist in the repository.

Code and Data Share the code that caused the error as well as an example image/label from your dataset.

Line resulting in test failure: https://github.com/alankbi/detecto/blob/f4e60968b052406194f47fc3d782913ce163f223/detecto/tests/test_core.py#L157

Folder missing the specified files: https://github.com/alankbi/detecto/tree/master/detecto/tests/static

Environment:

  • OS: macOS Big Sur
  • Python version: 3.7.9
  • Detecto version: master branch
  • torch version: 1.6.0
  • torchvision version: 0.7.0

Additional context NA

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
1nF0rmedcommented, Aug 24, 2021

I’d like to work on that (if it’s not picked up yet). Will make a couple of PRs over the week for the same.

1reaction
alankbicommented, Aug 23, 2021

Yeah, it was removed from the master branch in a recent commit because the CircleCI always failed due to some kind of dependency issue that I wasn’t able to resolve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Physiology, Parathyroid Hormone - StatPearls - NCBI Bookshelf
The underproduction of PTH can be chronic or transient, depending on the etiology. More common causes of hypoparathyroidism are the autoimmune ...
Read more >
pytorch transfer learning and model hosting failed to load ...
Pytorch transfer learning and model load failure. The model did not load successfully, see errors: Load model failed: transferlearningmodel,  ...
Read more >
Parathyroid Hormone (PTH) Test - Healthline
A parathyroid hormone (PTH) test is a blood test that measures the amount of PTH in your blood. ... Excess calcium in the...
Read more >
Operative Failure in the Era of Focused Parathyroidectomy
Hypothesis Focused parathyroidectomy guided by intraoperative parathyroid hormone monitoring (IPM) may lead to higher failure rates because of missed ...
Read more >
A missed parathyroid adenoma: A case from the endocrine ...
The patient's serum parathyroid hormone (PTH) levels were persistently ... scan — all of these imaging modalities failed to localize a parathyroid adenoma....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found