ignite: VOC example is broken

🐛 Bug description

This PR https://github.com/pytorch/ignite/pull/1605 breakes Pascal VOC example due to bad import:

import torch
from apex import amp
from dataflow.datasets import VOCSegmentationOpencv  # <---- imported before sys.path.insert
from py_config_runner.config_utils import TRAINVAL_CONFIG, assert_config, get_params
from py_config_runner.utils import set_seed
from utils import exp_tracking  # <---- imported before sys.path.insert
from utils.handlers import predictions_gt_images_handler  # <---- imported before sys.path.insert

...

# Adds "code" folder to python path
sys.path.insert(0, Path(__file__).parent.parent.as_posix())

Environment

  • PyTorch Version (e.g., 1.4):
  • Ignite Version (e.g., 0.3.0):
  • OS (e.g., Linux):
  • How you installed Ignite (conda, pip, source):
  • Python version:
  • Any other relevant information:

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

Thanks I will try to reproduce it.

On Wed, Feb 10, 2021, 20:15 vfdev notifications@github.com wrote:

If you ask where this dataflow module, it is here : https://github.com/pytorch/ignite/tree/master/examples/references/segmentation/pascal_voc2012/code/dataflow

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pytorch/ignite/issues/1616#issuecomment-776756129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7XHCCN5NXMLARSB42BSDLS6KLX7ANCNFSM4XFTJCAA .