Replies: 1 comment
-
Hi @cpoptic, this has been recently explained here with a comment: lightning-hydra-template/src/train.py Lines 25 to 28 in 2f3fe86 lightning-hydra-template/src/train.py Lines 10 to 31 in 2f3fe86 To sum up, the purpose is to make the environment more robust and convenient. You should be able to easily get rid of it as described above. In the project you mentioned, nothing like that is used since the author stores all entry scripts in top-level directory. The problems are:
You are of course free to get rid of it if you find it too risky to have such dependency in your codebase. |
Beta Was this translation helpful? Give feedback.
-
What is the purpose of the
pyrootutils
package in the context of lightning-hydra-template? There are other projects that do not have to use such a 3rd party library.For example, https://github.com/Erlemar/pytorch_tempest does not make use of
pyrootutils
, and it works fine.Nor does https://github.com/Erlemar/wheat make use of pyrootutils.
Is there another way to get the project root without having to introduce a 3rd party package?
Beta Was this translation helpful? Give feedback.
All reactions