# pytorch/vision SLOC report

> pytorch/vision: 73,861 code lines at commit 4260301135e3, counted with tokei-15.0.0 on 2026-11-03. Saved result 2162a1aad791cc523ca1b75c81b15849fa43504cc1f5da5cbdfff3a427503f87.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 74,408 | 59,888 | 3,825 | 10,695 |
| C++ | 30 | 6,483 | 5,041 | 588 | 854 |
| CUDA | 7 | 3,961 | 3,321 | 206 | 434 |
| C Header | 33 | 3,082 | 2,514 | 262 | 306 |
| Objective-C++ | 6 | 1,564 | 1,370 | 27 | 167 |
| C | 4 | 1,942 | 1,253 | 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 |
| Forge Config | 1 | 23 | 18 | 1 | 4 |
| TOML | 1 | 18 | 11 | 0 | 7 |
| JSON | 2 | 2 | 2 | 0 | 0 |
| Markdown | 15 | 1,595 | 0 | 1,169 | 426 |
| Plain Text | 1 | 1 | 0 | 1 | 0 |

Top language: Python 81.1%. Generated on November 3, 2026. Canonical report: https://octocounts.com/github/pytorch/vision/commit/4260301135e34180d865426765487113f84e7707?reportId=2162a1aad791cc523ca1b75c81b15849fa43504cc1f5da5cbdfff3a427503f87&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/pytorch/vision/commit/4260301135e34180d865426765487113f84e7707?reportId=2162a1aad791cc523ca1b75c81b15849fa43504cc1f5da5cbdfff3a427503f87&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does pytorch/vision have?

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.

### How was the pytorch/vision line count measured?

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.

### What commit was counted for pytorch/vision?

This OctoCounts report was generated from main at commit 4260301135e3 on November 3, 2026.

## Similar repository reports

- [Arcomade/BlendCap](https://octocounts.com/github/Arcomade/BlendCap) — Python, 73,609 code lines
- [jianchang512/pyvideotrans](https://octocounts.com/github/jianchang512/pyvideotrans) — Python, 73,271 code lines
- [ManimCommunity/manim](https://octocounts.com/github/ManimCommunity/manim) — Python, 73,057 code lines
- [open-webui/computer](https://octocounts.com/github/open-webui/computer) — Python, 72,954 code lines
- [Lightricks/LTX-2](https://octocounts.com/github/Lightricks/LTX-2) — Python, 75,040 code lines
- [shareui/packit-source](https://octocounts.com/github/shareui/packit-source) — Python, 75,170 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
