{"id":17234760,"url":"https://github.com/timesler/pytorch-project-template","last_synced_at":"2026-03-07T06:32:35.654Z","repository":{"id":113719004,"uuid":"195566838","full_name":"timesler/pytorch-project-template","owner":"timesler","description":"A template for building pytorch projects and packages including an optional REST API","archived":false,"fork":false,"pushed_at":"2019-08-17T02:04:28.000Z","size":37,"stargazers_count":14,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T02:40:11.179Z","etag":null,"topics":["deep-learning","pytorch","template-project"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timesler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-06T17:36:15.000Z","updated_at":"2025-02-07T13:25:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb41d973-a686-445b-a1f7-a37925fa985a","html_url":"https://github.com/timesler/pytorch-project-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/timesler/pytorch-project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timesler%2Fpytorch-project-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timesler%2Fpytorch-project-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timesler%2Fpytorch-project-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timesler%2Fpytorch-project-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timesler","download_url":"https://codeload.github.com/timesler/pytorch-project-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timesler%2Fpytorch-project-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","pytorch","template-project"],"created_at":"2024-10-15T05:30:19.821Z","updated_at":"2026-03-07T06:32:35.630Z","avatar_url":"https://github.com/timesler.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytorch-project-template\n\nA template for building pytorch projects and packages.\n\n```\npytorch_project_template\n├── config.py            - File to define run parameters\n├── data/                - Directory for data storage, data won't be tracked\n├── dependencies/        - Directory for dependencies and submodules\n├── docker-compose.yml   - Docker compose file\n├── dockerfile           - Dockerfile with all dependencies\n├── .dockerignore\n├── environment.yml      - Conda environment file\n├── .gitignore\n├── __init__.py          - Defines project as a module\n├── LICENSE              - MIT license\n├── main.py              - Script that defines API routes (if using API)\n├── models/              - Directory for pytorch modules\n├── README.md\n├── setup.py             - PyPI setup script, use for creating pip package\n├── tests/\n│   └── test.py          - Add some test code here, used by CI testing \n└── utils/                \n    ├── datasets.py      - Custom datasets\n    ├── samplers.py      - Custom samplers and batch samplers\n    └── training.py      - Functions for training and evaluation\n```\n\n## Quick setup\n\nRequires git, python, and conda.\n\n1. Clone this project:\n    ```bash\n    git clone https://github.com/timesler/pytorch-project-template\n    ```\n1. Create a new project (see `create_project.py --help`):\n    ```bash\n    create_project.py \u003cnew_project_path\u003e \u003cnew_project_owner\u003e\n    ```\n    Optionally, the project can also include:\n    * git: `--git`\n    * docker and docker-compose to develop models in a container: `--docker`\n    * a dockerfile and docker-compose service to serve models with a REST API: `--api`\n    * a setup.py file for building a pip/PyPI package: `--pypi`\n    * all of the above: `-full`\n    \n    E.g., for building a python package, you probably want:\n    ```bash\n    create_project.py \u003cnew_project_path\u003e \u003cnew_project_owner\u003e --git --pypi\n    ```\n\n1. Create development environment using conda or docker:\n    * conda:\n        ```bash\n        conda create -n pytorch-py37 -f environment.yml\n        conda activate pytorch-py37\n        ```\n    * docker/nvidia-docker:\n        ```bash\n        docker-compose run --rm train bash\n        ```\n1. (Optional) Deploy API for serving model:\n    ```bash\n    docker-compose up -d api\n    ```\n\n## Use as Github template\n\nAlternatively, this repo can be used as a template for creating new repos on Github. Simply click \"Use this template\" at the top of the [main repo page](https://github.com/timesler/pytorch-project-template).\n\nFollowing this, you should:\n\n* Overwrite this README\n* Remove the `create_project.py` utility\n* Remove all unwanted files and folders\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimesler%2Fpytorch-project-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimesler%2Fpytorch-project-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimesler%2Fpytorch-project-template/lists"}