question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve Pascal VOC ref example: model weights

See original GitHub issue

🚀 Feature

When we run baseline configuration :

python -m torch.distributed.launch --nproc 2 --use_env -m py_config_runner ./code/scripts/training.py ./configs/train/baseline_resnet101.py

When model is instantiated, it downloads ImageNet pretrained weights for ResNet backbone. In above case, it downloads twice the same file. Let’s set up the model such that we run the training from scratch.

For Hacktoberfest/PyDataGlobal contributors, feel free to ask questions for details if any and say that you would like to tackle the issue. Please, take a look at CONTRIBUTING guide.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hershd23commented, Oct 2, 2020

Yeah, getting to it sorry for the delay

0reactions
vfdev-5commented, Oct 7, 2020

Difficult to say without seeing what is exactly the issue. Could you please detail which OS and which prebuilt docker image you are using and what exactly the issue do you have.

Also about running the code, I have a 6GB GPU available with me would that be enough to get around the issue?

You can the batch_size to 4 or 6.

https://github.com/pytorch/ignite/issues/1297#issuecomment-695064086

Thinking more about the issue, maybe we can provide two configs

  • from scratch
  • with ImageNet pretrained weights but model instantiation should download weights on rank 0 only process.

For “from scratch” option, single GPU is OK. For “with ImageNet pretrained weights but model instantiation should download weights on rank 0 only process”, probably, it will be a bit difficult to reproduce on 1 GPU. Have you any experience with distributed computations ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Train an Object Detection Model on Pascal VOC 2007 using ...
In this tutorial we use a pretrained ResNet50 backbone, initializing the weights to weights produced by training on the imagenet dataset. In ...
Read more >
Object Detection with the Pascal VOC Dataset and Masterful
This guide will use the Pascal VOC 2007 dataset as a simple example of ... Optimization means finding the best weights for a...
Read more >
6. Reproducing SoTA on Pascal VOC Dataset - GluonCV Toolkit
This is a semantic segmentation tutorial for reproducing state-of-the-art results on Pascal VOC dataset using Gluon CV toolkit.
Read more >
How We Cleaned Up PASCAL and Improved mAP By 13%
We cleaned up all 17.120 images of the PASCAL VOC 2012 dataset in a week using Hasty's AI-powered QC feature. We found that...
Read more >
YOLO/PASCAL-VOC detection tutorial
This tutorial demonstrates that Akida can perform object detection using a state-of-the-art model architecture. This is illustrated using a subset of the PASCAL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found