Install relevant Detectron 2 version after checking cuda and torch versions.
To reproduce the enviroment, there are several options provided to try (arranged as clean to bloated):
- Uses Pigar package to generate only the requirements in accordance with imports in code.
- Only considers the imports of the specific repo (Detectron2_train in this case)
- This boils it down to the minimum installations and reduces possibilities of conflicts.
- The txt file can be used normally via pip to recreate environment
- You may require to approve and/or initiate further installations if prompted, depending on your base installations.
- Uses pipreqs package to generate requirements from imports.
- --use-local flag was used.
- conda export without build strings
- suggested here
- Useful for OS-agnostic installation
- usual full conda export of environment with builds specific to original platform.
- frozen pip list.
- suggested here
- usual pip freeze of full environment, could fail to resolve directories.
- only records and saves the packages that were installed with pip install.