Add CodeCarbon to the training pipeline

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Locate the DVC pipeline definition for pyro-train and the train_yolo_best stage, then inspect how model manifests and README content are produced. Add the CodeCarbon tracking around that stage, expose energy, CO2, duration, and hardware as a DVC metric, and include the values in manifest.yaml. Done means the checklist items are satisfied and the README documents the new footprint data.

Written by the indexing model from the issue text.

Description

good first issue help wanted type: enhancement

This issue is part of the epic pyronear/roadmap#8 (Measure our carbon footprint with CodeCarbon).

pyro-train is a DVC pipeline. Wrap the training stage (train_yolo_best) with a CodeCarbon tracker, save the result (energy, CO2, duration, hardware) as a DVC metric, and add it to the manifest.yaml of the model, so every model comes with its footprint.

Done when
  • CodeCarbon runs during train_yolo_best
  • Energy and CO2 saved as a DVC metric
  • Values added to the model manifest
  • README updated
Dominant language
Python
Stars
1
Forks
1
Avg merge
3h 49m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from pyronear/pyro-train

All issues in pyronear/pyro-train

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.