danbider / lightning-pose

Accelerated pose estimation and tracking using semi-supervised convolutional networks.
MIT License
223 stars 32 forks source link

ModuleNotFound: hydra #173

Closed themattinthehatt closed 2 weeks ago

themattinthehatt commented 2 weeks ago
          So I removed LightningPose altogether and did a clean installation; the pytest ran successfully with 74 passed, and 14 warnings. I did not install the app this time. The branch has been successfully updated to dynamic crop. When running training I get this error now. 

image

Originally posted by @DavidGill159 in https://github.com/danbider/lightning-pose/issues/120#issuecomment-2166097678

themattinthehatt commented 2 weeks ago

how did you install - did you run pip install -e . from inside the lightning-pose directory?

to fix this specific error you can simply install hydra with pip install hydra-core, but that should have been installed with everything else, so my guess is that if you just install hydra and then try to run the training script again you might find other import errors as well.

alternatively you could just rerun pip install -e . - if you look through the print statements that produces (there will be many) you should see the hydra installation near the top.

DavidGill159 commented 2 weeks ago

ah yes my bad, I skipped the dependencies step by mistake. all solved now thank you