pytorch/vision has 73,861 source lines of code out of 93,730 total lines across 374 files, counted with tokei from the main ref at commit 4260301135e3 on November 3, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-03 (commit 4260301135e3), pytorch/vision contains 93,730 total lines: 73,861 code, 6,578 comments, 13,291 blank, across 374 files in 17 languages (top language: Python 81.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving pytorch/vision to commit 4260301135e3, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a medium-sized codebase by counted code lines. Code represents 78.8% of all lines, comments represent 7.0%, and the repository averages 197 code lines per file. Python accounts for 81.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 256 | 74408 | 59888 | 3825 | 10695 |
| C++ | 30 | 6483 | 5041 | 588 | 854 |
| CUDA | 7 | 3961 | 3321 | 206 | 434 |
| C Header | 33 | 3082 | 2514 | 262 | 306 |
| Objective-C++ | 6 | 1564 | 1370 | 27 | 167 |
| C | 4 | 1942 | 1253 | 434 | 255 |
| CMake | 2 | 203 | 157 | 9 | 37 |
| Shell | 5 | 215 | 141 | 42 | 32 |
| INI | 2 | 98 | 55 | 4 | 39 |
| Batch | 3 | 47 | 38 | 0 | 9 |
| Autoconf | 2 | 55 | 31 | 10 | 14 |
| ReStructuredText | 4 | 33 | 21 | 0 | 12 |
Top language: Python 81.1%. Generated on .
pytorch/vision: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
pytorch/vision has 73,861 lines of code, plus 6,578 comment lines and 13,291 blank lines, for 93,730 total lines at commit 4260301135e3 on November 3, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 4260301135e3, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 4260301135e3 on November 3, 2026.
Play the growth animation for pytorch/vision on this page — 73,861 code lines across 17 languages, counted by tokei.