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
840 stars 138 forks source link

Problem of make for Preparing evaluation scripts #128

Closed kogakuryo closed 7 months ago

kogakuryo commented 1 year ago

Hello I'm having trouble with make in CULane dataset when preparing the evaluation script. I use opencv4.5.3 on anaconda. Previously an error by "error opencv2/core/core.hpp : No such file or directory" was resolved by adding CXXFLAGS += -I/home/username/anaconda3/envs/pad/include/opencv4 to Makefile as you said on https://github.com/voldemortX/pytorch-auto-drive/issues/80.

However, when I make, I get a new error:

CXX/LD evaluate /usr/bin/ld: -lopencv_core が見つかりません  ←"が見つかりません" means " is not found". /usr/bin/ld: -lopencv_highgui が見つかりません /usr/bin/ld: -lopencv_imgproc が見つかりません /usr/bin/ld: -lopencv_imgcodecs が見つかりません collect2: error: ld returned 1 exit status make: *** [Makefile:46: evaluate] error 1

Does the reference in /usr/bin/ld mean that installing opencv in anaconda won't work?

voldemortX commented 1 year ago

@kogakuryo what do you mean by installing opencv on anaconda? Is it opencv or opencv-python?

kogakuryo commented 1 year ago

I installed not opencv-python but opencv by conda install ...

voldemortX commented 1 year ago

I installed not opencv-python but opencv by conda install ...

I never tried this method. Maybe you need to set some environment variables?

I think the makefile scripts assume a system wide installation.

kogakuryo commented 1 year ago

I see. Does that mean you have python, CUDA etc installed on anaconda as on INSTALL.md but not opencv on anaconda?

voldemortX commented 1 year ago

I see. Does that mean you have python, CUDA etc installed on anaconda as on INSTALL.md but not opencv on anaconda?

Yes, my opencv is a seperate installation.

kogakuryo commented 1 year ago

thank you for your kindness. I'll try again from the beginning

voldemortX commented 7 months ago

Closed inactive issue.

@kogakuryo Feel free to comment if the problem still persists.