pytorch / pytorch/vision

Check Type Annotations for transforms/functional_pil and transforms/functional_tensor

Open
#4,282 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

🚀 Feature

As spotted in https://github.com/pytorch/vision/pull/4234#pullrequestreview-731356320
There are some minor cases where type annotations do not match.

We should probably rectify them and ensure that the types annotations match.

P.S.
But I'm willing to leave for any new contributor! Otherwise I will complete it in the next week

cc @vfdev-5 @datumbox @pmeier I think this can be a good first issue for people awaiting to contribute 😄

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 type-annotation mismatches identified in the review of pull request #4234, then inspect transforms/functional_pil and transforms/functional_tensor. Compare the annotations with the existing function behavior in both modules; done means the annotations consistently match what those functions accept and return.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.