voldemortX / pytorch-auto-drive

PytorchAutoDrive: Segmentation models (ERFNet, ENet, DeepLab, FCN...) and Lane detection models (SCNN, RESA, LSTR, LaneATT, BézierLaneNet...) based on PyTorch with fast training, visualization, benchmarking & deployment help
BSD 3-Clause "New" or "Revised" License
837 stars 137 forks source link

Fix import issues on some machines #86

Closed voldemortX closed 2 years ago

voldemortX commented 2 years ago

This robust import mechanism should fix the unclear import issue in #76 #84 or other related issues.

For instance, when running sud-dir py files, some would have trouble importing configs because somehow cwd is not in python path:

...
ModuleNotFoundError: No module named 'configs.lane_detection'