-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with installation of CULanes dataset #80
Comments
@Wakarox Check if you have the c++ OpenCV on your system? |
I am using cv2. |
that is weird. you sure it is not python opencv? |
I have the error on the include of the library. I did an installation of opencv and have the files in /usr/local/includes. Maybe i have a problem with the path of the files ? |
@Wakarox Can you display opencv version by |
OpenCV is not found. I don't know why ... |
It seems you may have a faulty installation of OpenCV. Are you using ubuntu, I think it can be installed via |
I have pkg-config --modversion opencv4 which returns 4.5.5. |
I have 3.2.0 on my own machine and it works. |
Not me. I don't know why :/ |
@Wakarox Perhaps try install opencv 2.x? |
culane_list_convertor.py show something when running it? |
nope. no printing means success, as in all Linux commands. |
My error code : |
I reproduced this error with a newly installed opencv4 from source. And I can make with adding |
The include is now good, i found something like you said yesterday. CXX/LD evaluate |
As far as I know, this might be caused by installing multiple versions of opencv. For instance, when I install opencv3 from apt and sudo install the opencv4 zip, I see a similar error. |
So you suggest me to unistall opencv, and reinstall it ? |
In my case I uninstalled the apt one. Or you can find a way to link that .so specifically, I think it is already the last step for this build. |
I tried to unistall it, it didn't work, i always have the same issue... I am searching a way to link that .so but all i tried didn't work too |
I have a new error when i changed the Makefile deleting the 2 lines of condition: CXX/LD evaluate |
@Wakarox At this point, I'd suggest you clean your environment of any opencv related stuff, delete the build dir in Alternatively, |
That's good now, i found a solution (adding the library in the Makefile). mokhtarbouain@iris-Precision-Tower-7810:~/Documents/Python_scripts/pytorch-auto-drive$ python3 main_landet.py --config=/home/mokhtarbouain/Téléchargements/resnet18-5c106cde.pth |
I have Pytorch 1.10.2.
|
try 1.6 or 1.8 instead. And of course the corresponding torchvision version. |
Done. |
@Wakarox Yes it should be mmcv, but I never encountered this before. Maybe try find it in the mmcv repo? However, are you installing things directly to your system (.local)? That is highly not recommended. Please try use conda if possible and delete the python in Not considering the python install issue, do check if your |
@Wakarox Sorry I don't know much about rosbag, but if the input format does not match the current visualization format, you'll have to adjust the APIs yourself to connect these programs. Perhaps you will need to write a new vis If you made some addtions that would benefit ros integration, I'd be more than happy to take pull requests. |
I will try to use only one config pretrained (resnet18_culane). I need to filter the files for this config. What files i will need to keep ? |
I think you need the entry file, transforms and model definitions (including the config). And lane runner & dataset if training or testing are still required. In fact, best way is find the important files and keep others through |
Hello @voldemortX , Edit : That's good, i just forgot to use --pred on my image in my line command. Now, let's go to try to add it in ROS ! |
by equation do you mean a curve equation? In that case LSTR have some sort of polynomial and BezierLaneNet has a Bezier curve at network output, which you can insert codes to save. Other methods do not have such things and you will need to fit a curve equation by yourself. |
Hello @voldemortX |
@Wakarox Perhaps get them somewhere around here? Before they were drawn. pytorch-auto-drive/utils/vis_utils.py Line 93 in 76e8330
If you are using dataset inference, you can find things in |
Hello, |
@Wakarox Can I maybe see your change in git? I could suggest what more could be deleted when I go through them. |
I just created a Git for this application : https://github.com/Wakarox/pytorch_auto_drive_ros |
@Wakarox It would be best if it can include the git history of pytorch_auto_drive so it can indicate which files are deleted already. Nevertheless, I will probably go through them before the weekend. |
Hello, |
Now, i need to put a fixed pre-trained weights in the code, put a fixed config, and do an input and an output in real-time. |
Which config file would you like to keep? If that is specified. it would be easier to delete redundant codes |
For the moment, i am using baseline_resnet18_tusimple |
But i don't find where you do your --config and --checkpoint in the code to have a single config |
@Wakarox Sorry I can't download your ros project (bad network connection and you have a big checkpoint file in it). I did about all I could for a file-level deletion, hope it would suffice (If you get into errors, try patch up the missing things with the master branch or delete some redundant imports should do the trick). Here: https://github.com/voldemortX/pytorch-auto-drive/tree/resnet18-tusimple If you want to go deeper, you will have to delete visualization codes, onnx/trt conversion codes, profiling codes, or get into deleting part of some files. What I already deleted are about 20K lines of code. |
Hello @voldemortX , |
That should be correct. But you can mod them to only inference if you don't really need to draw anything. |
So i can't use prediction ? |
Could you elaborate on this? I don't quite get the meaning. |
I am using the model baseline_resnet18_tusimple with his pretrained weights. |
Well I think this usage aligns more with the visualization codes. |
And later, with all the points, i will calculate the curvature of the lines. So i want to know where the points are calculated. And i want to delete the args, so i need to add config, input and output in the same file. For the moment, when i launch with rosrun, i have this error : I thought it's because my input is just the picture and not all the configs what i need to launch the detection lane code. |
Sorry I don't think I know this kind of error. Maybe there are some problems because of the deletions? If you don't want configs, you can use the Classes yourself by putting in init() args according to the configs. |
I encountered the same issue, and my solution was to check the installation path of the openCV library files and modify the Makefile's LIBRARY_DIRS to /usr/local/lib. |
Hello,
I have a problem with the installation of the CULanes dataset.
When i do the "make" command, i have an "error opencv2/core/core.hpp : No such file or directory".
I have all the libraries on my computer but i am not using conda.
Can someone help me ?
The text was updated successfully, but these errors were encountered: