pytorch / pytorch/vision

can torchvision build from source on windows?

Open
#4,492 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

I have got the pt model of mask rcnn, and now I want to use it on C++, does libtoch seem to not support it? This seems to require torchvison build from source, but I failed. Does torchvison build support window? Or do I need to pay attention to something?

`git clone https://github.com/pytorch/vision.git

cd vision

mkdir build

cd build

cmake -DCMAKE_PREFIX_PATH="D:\libtorch;D:\pybind11" ..`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported Windows commands using CMake, libtorch, and pybind11, then review the torchvision source-build entry points relevant to C++. Determine whether Windows builds are supported and what setup details are required. Done means documenting a reproducible supported build path or clarifying that the requested path is not supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, python
Domain
build-system, computer-vision
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.