Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Improve scripts/amg.py: paths, progress bar, multi-GPU, resuming #398

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

baldassarreFe
Copy link

  • Change all os.path methods to the nicer pathlib.Path
  • Respect subfolders when processing a directory e.g. my/dataset/class_{0,1,2}/img_{0,1,2}.jpg -> my/masks/class_{0,1,2}/img_{0,1,2}.json
  • Show progress bar using tqdm
  • Load images in a separate dataloader process
  • Split a large dataset across multiple GPUs using rank/world size, no synchronization is needed, just 2 command line arguments
  • Skip processing images that already have a corresponding output dir (png masks) or json file (rle masks)

- Change all os.path methods to the nicer pathlib.Path
- Respect subfolders when processing a directory e.g. my/dataset/class_{0,1,2}/img_{0,1,2}.jpg -> my/masks/class_{0,1,2}/img_{0,1,2}.json
- Show progress bar using tqdm
- Load images in a separate dataloader process
- Split a large dataset across multiple GPUs using rank/world size
- Skip processing images that already have a corresponding output dir (png masks) or json file (rle masks)
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants