tryolabs / luminoth

Deep Learning toolkit for Computer Vision.
https://tryolabs.com
BSD 3-Clause "New" or "Revised" License
2.4k stars 399 forks source link

"Checkpoint not found" Web Server #291

Open SpeedyGonzalves opened 5 years ago

SpeedyGonzalves commented 5 years ago

I made a model using Luminoth, and it works well. But now I have to use the model. In local, i used a python script : detector = Detector(checkpoint='GoogleModel') result = detector.predict(image)

All work well ! But now I have to use it on a webpage, so I used WampServer to make it in local. A php file call the python script, but I have the error "Checkpoint not found. Check remote repository? [y/N]:".

I think it's because all my checkpoints are in local, but i don't know how use them online. I tought download Luminoth on the WampServer and import the checkpoint but I don't know how do that.

Thank you for your help

dekked commented 5 years ago

Hi @SpeedyGonzalves!

What is GoogleModel here? For this to work, either it must be a remote checkpoint hosted by Luminoth (it is not), or it must have been saved by you (so it would be local to your computer).

Please check the section on working with checkpoints in the doc. In particular, "Create a checkpoint" shows the command that you need to run in order to output a checkpoint from a config file.

SpeedyGonzalves commented 5 years ago

Hi @dekked !

"GoogleModel" is an alias of an existing checkpoint. checkpointlist

I succed when I used it in local, but this checkpoint are not available on the webserver.

Or maybe I just didn't understand what you tried to say ?

dekked commented 5 years ago

The checkpoints should be available in the ~/.luminoth/checkpoints/ folder. Check that this is the case wherever you are running the web server.

SpeedyGonzalves commented 5 years ago

Same results, I put the .luminoth's folder at the root of my web server and also at the root of my project (just in case) but always the same error : Checkpoint not found. Check remote repository? [y/N]: