-
Notifications
You must be signed in to change notification settings - Fork 287
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
Error when running megapose server. #1212
Comments
Hi Matt, Sorry for all the issues you've had with the installation process! The error seems to say that the megapose folder where the models are stored is not found. It thus seems unlikely that the notebook version issue is the problem. Thanks for the heads-up however, this feedback greatly appreciated ;) I thus have a couple of questions:
Storing relative paths is actually an oversight on my part, making the setup a bit brittle: if you run the megapose server from a folder other than the one where you performed the installation, there is a good chance that it will fail. I will fix this as soon as I am able to! Again, thank you for your feedback, it is extremely useful! Cheers, |
Hi Sam No problem at all. I feel my lack of experience with Python certainly doesn't help and I do very much appreciate your fast responses and continued support with my issues! You were spot on, I ran the command in the folder it was installed and the megapose server is now running:
Sorry for the mistake and wasting your time! For the sake of completeness here is my list of packages:
|
Hi again! You have two options to remedy this:
Note that this issue will be fixed soon, along with the notebook dependency problem. Don't hesitate if you have other issues! Sam |
Hi Sam Thanks for the kind words, I'm glad I am helping the process! Thankyou for the additional information. I have now managed to get the megapose server running with these in my megapose_variables file:
I have run into another issue now when running the tutorial-megapose-live-single-object-tracking.exe This error appears from the megapose server:
And here is the output from the megapose server when it is running:
thanks |
Additionally here is the log when trying to execute tutorial-megapose-live-single-object-tracking.exe
|
Hi Matt, Just to be sure, is anything happening when you run the tutorial? Is the video playing in a new window? Also, what GPU do you have? Panda3D, the renderer behind Megapose, is giving you a warning about not having a backbuffer. Thanks, |
Hey Sam Thanks for the reply. No I am not getting any video playing in a new window. The terminal opens and closes briefly and that is it. This is my output from
I'll keep digging around to see why my GPU is causing issues. thanks |
Hi again Matt, I was able to reproduce the issue (a networking problem) and fix it. I have however encountered another problem with Panda3D, a dependency of Megapose. I'm afraid that the graphics pipeline on Windows (wglGraphicsPipe) does not have meet the requirements to run Megapose. I'll keep digging to see if something can be done. |
A potential solution for Windows users is to install and run the server in a WSL container. The install and usage is basically the same as on Linux. The steps would be as follows:
I will soon push a PR with some fixes for Windows and improvements for Megapose, stay tuned! Cheers, |
Hi Sam Thanks very much for continuing to look into this. I will set up the WSL container and report back. thanks |
Hi @SamFlt I managed to install megapose on WSL but when trying to run I get a similar error to the one I had back in : #1204 (comment)
And dir :
|
Hey Matt, Did you get any error when running install.py? |
Hey Sam, I did initially but that was due to the notebook package version issue. I changed it too : notebook==6.5.4 and it installed fine. thanks |
Hey Matt, I just pushed a PR ( #1216) that includes the fix for Windows (client side), the issue with the notebook version and the problem with relative paths during installation. It's there if you want to try it out :) Sam |
Hi Matt, Sorry for the delay in the response. You should install the megapose server in WSL, as it seems that megapose does not directly support Windows (the error you encounter here is a part of a problem that could easily be fixed, but there are other issues that are not so easy to debug). The client (the .exe), can be run on Windows with the PR I linked above. Sam |
Hi Sam No problem, thanks for responding. I also tried to run it on WSL to see if I had any better success. When installing I get this error:
And when I try to run the megapose server I get the following:
thanks |
Hey, It seems that the first error is an issue with downloading the megapose models. I also have this error if I run the script provided with megapose itself. I'll try and provide an alternate download source and raise an issue on their GitHub. The second error is a result of the first one: since you couldn't download the models, the install script was aborted before installing the megapose_server package. Sam |
Hi Sam Thanks for explaining the errors. Appreciate the continued support and I'll keep an eye out for a new download source. thanks |
Hi Matt, The issue with the download server has been resolved by the people at Inria Paris. You should now be able to download the models as expected. We're still looking into setting up another mirror. Sam |
Hi Sam Many thanks for the update. I reinstalled the Megapose server and it seems to have downloaded the models. When I try to run it I did get the following error.
I added a megapose_variables_final.json file with the following parameters:
However when running again I now get this error:
Is this something to do with not being able to find the data? Matt |
Hey Matt, I'll investigate the file file missing from the installed package! As for your temporary fix, I think that the value for Sam |
Hi Sam Thanks, that will teach me to write code when tired! I actually had to use With "data" on the end of the path otherwise it cannot find a config.yaml file. I've managed to get it executing but still getting errors. However these I think are being caused by WSL2 not being able see my GPU. thanks |
Hi Matt, Before starting the server, did you input Sam |
Hi Sam Thanks for the support. I switched to another machine and installed Ubuntu fresh as I kept getting CUDA issues with WSL. Could I ask what GPU you are using when running Megapose? I believe I have it all working but I am now running out of memory.
Here's what I am running
I also look to close this issue after this as I think my issues are now hardware related. |
Hey there
I had to rebuild everything from scratch and I am hitting some different issues as I run through this tutorial again.
The first issue I hit was when running the install.py script in visp\script\megapose_server was I was getting errors similar to this:
ipython-contrib/jupyter_contrib_nbextensions#1645
As per the comment on the bottom of that issue thread I was able to fix this issue by setting the notebook dependency in megapose_environment.yml to
notebook==6.5.4
This is due to version 7.0.0 of notebook not being compatible with the latest version of jupyter_contrib_nbextensions from what I can gather.
So by setting notebook to 6.5.4 I was able successfully install Megapose.
However when I try to execute the run.py file I now get this error:
It's puzzling that I had this working after your previous fix so I am wondering if it's caused by my change to the notebook dependency or something else.
Any help much appreciated.
thanks
Matt
The text was updated successfully, but these errors were encountered: