Unable to resolve the name 'helper.do​wnloadSCNN​LaneDetect​ion'.

5 vues (au cours des 30 derniers jours)
Krunal Patel
Krunal Patel le 29 Nov 2022
Réponse apportée : Ben le 30 Nov 2022
I am trying to run the Spatial cnn repositiory for lane line detection but, I am geting this error while I load the pretrained model. The link for the repository is "https://github.com/matlab-deep-learning/pretrained-spatial-CNN". I have tried to run it in MATLAB 2021b as well as MATLAB 2022b with all the pre-requisites installed from MATLAB add-ons. Can anyone please help me with this.

Réponses (1)

Ben
Ben le 30 Nov 2022
I believe you need to do the following
1. clone or download https://github.com/matlab-deep-learning/pretrained-spatial-CNN into a local folder on your machine e.g. run
at a terminal/command prompt with git
2. Open MATLAB and change directory to where you cloned that repo. e.g. I clone into "C:\work\pretrained-spatial-CNN" so in MATLAB I ran
>> cd C:\work\pretrained-spatial-CNN
3. Add the path to the /src folder/directory. This is necessary so MATLAB knows there's functions in that /src folder that you want to use at any time - in particular the helper.downloadSCNNLaneDetection function is contained in /src. To do this run
>> addpath("src");
Note that addpath does not persist between MATLAB sessions. If that's required see savepath
Hope that helps

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by