ahmedosman / STAR

ECCV2020 - Official code repository for the paper : STAR - A Sparse Trained Articulated Human Body Regressor
https://star.is.tue.mpg.de
Other
654 stars 95 forks source link

Make it possible to specify star model paths outside of source #36

Open dyollb opened 6 months ago

dyollb commented 6 months ago

This MR addresses two things

  1. the config.py currently has to be edited before the package can be used. Working with pip install, and virtual environments I tend to install the same package multiple times, and don't want to always edit this file by hand (makes automation difficult).

    • this MR gives the users a mechanism to specify the configuration outside of the source, in the user home directory.
  2. to run the code on platforms without cuda (e.g. Apple M2), it would be nice if the pytorch code would not hard-code the device it runs on.

    • in the core package I modified the code so the demo load_torch.py can run without cuda.