pytorch / pytorch/vision

`CocoDetection()` and `CocoCaptions()` should be replaced with `MSCoco()`

Open
#8,771 1 comment 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

🚀 The feature

It seems like CocoDetection() and CocoCaptions() are identical(same) according to the experiments which I did and the source code. *CocoDetection() is just renamed to CocoCaptions() by extending CocoDetection().

Motivation, pitch

So, CocoDetection() and CocoCaptions() should be replaced with MSCoco().

Alternatives

No response

Additional context

No response

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 by reviewing the CocoDetection() and CocoCaptions() implementations in torchvision/datasets/coco.py, especially the linked source for CocoCaptions. Determine whether replacing both public dataset entry points with MSCoco() is compatible with the existing API and identify the documentation or references that would need updating. Done means the proposed replacement scope and compatibility behavior are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.