thunil / TecoGAN

This repo contains source code and materials for the TEmporally COherent GAN SIGGRAPH project.
Apache License 2.0
5.95k stars 1.13k forks source link

Can you turn your work to installable package? #108

Open 4e1e0603 opened 3 years ago

4e1e0603 commented 3 years ago

It is quite easy, you place a setup.py or setup.cfg (or pyproject.toml) in the project root folder. Now your project is installable and manageable. You can even define aliases for your subprograms and call them as

tecogan <flags>

instead of

python3 runGan.py 0

These imports are also problematic: from lib.dataloader import * It is better to define the project name and use absolute imports (don't use "stars" imports at all: https://stackoverflow.com/questions/2386714/why-is-import-bad).

Many deep learning projects are top-notch in the sense of research but installing and using them is not an easy task.

Can I help with that?