Megvii-BaseDetection / Megvii-BaseDetection/OTA

Run on single gpu.

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
246
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Good code! I am revising the code for sing gpu. and ask the of 3 lines of code in losses function(fcos.py).

if self.norm_sync:
   dist.all_reduce(num_foreground)
   num_foreground /= dist.get_world_size()

What's meaning of the 3 lines of code? Can I delete these?
Thanks.

Contributor guide

No contributing guide indexed for this repository

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 reading the losses function in fcos.py and the surrounding use of norm_sync, then trace what num_foreground represents. Check how the three distributed operations behave when running on one GPU. Done means documenting whether these lines are required, redundant, or safe to remove for single-GPU execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.