torchgeo icon indicating copy to clipboard operation
torchgeo copied to clipboard

Add train entrypoint

Open adamjstewart opened this issue 4 years ago • 1 comments

Python has a concept of "entrypoints" that allow you to do something like:

$ torchgeo train conf=...

and run train.py. We should look into incorporating this. We'll also want to install the conf files somewhere and teach TorchGeo how to find them. The tricky part is making both of the following work:

$ python train.py conf=...
$ torchgeo train conf=...

since both the training file and the conf files will be in different locations in those two cases.

adamjstewart avatar Nov 08 '21 03:11 adamjstewart

Some docs on how to implement this: https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html

adamjstewart avatar Dec 20 '21 16:12 adamjstewart