Skip to content
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

Don't see any prediction with rs serve #218

Closed
iboates opened this issue Apr 8, 2021 · 5 comments
Closed

Don't see any prediction with rs serve #218

iboates opened this issue Apr 8, 2021 · 5 comments

Comments

@iboates
Copy link

iboates commented Apr 8, 2021

I am running the test Flask server on my GPU server, and it launches successfully but when I pan around, I don't get any results. This is supposed to be live prediction right? Or have I misunderstood?

I loaded my model checkpoint onto the server and then ran the server like this:

./rs serve --model vineyards/config/model-unet.toml --dataset vineyards/config/model-unet.toml --url https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}@2x.png --checkpoint ../checkpoint-00012-of-00100.pth --host=0.0.0.0

I have exported my mapbox token before this and have double-checked the paths to my model and dataset. But when I go to the page, I just see the satellite tiles and no prediction on top. Any ideas?

I don't even see any activity in the console output from Flask, nor any GPU activity from nvidia-smi when panning around.

I do notice however that the request is made in the browser to 127.0.0.1, but this would be pointing to my own local machine where I have the browser open, is there a way to get it to put to the source server itself?

image

@daniel-j-h
Copy link
Collaborator

Here are the two files you need to look at

The browser makes requests to localhost here

'tiles': [ 'http://127.0.0.1:5000/{z}/{x}/{y}.png' ],

If you run the serve tool on your gpu rig and change the line above to the gpu rig's ip it should work. As long as the html and the tiles are served from the same origin (host & port) you will be fine re. CORS, otherwise you probably need to add some CORS headers.

Also check the note in the readme please 🙇

https://github.com/mapbox/robosat/blob/cbb1c73328183afd2d6351b7bfa3f430b73103ea/README.md

@iboates
Copy link
Author

iboates commented Apr 10, 2021

@daniel-j-h Thanks for the tip, I didn't realize it was baked into the index.html. I was able to get it running.

RE: the note - just wondering what you meant by that, do you mean to say to not expect consistent support with issues on this github anymore?

@iboates iboates closed this as completed Apr 10, 2021
@daniel-j-h
Copy link
Collaborator

Glad you got it running! 🎉

Exactly, this project is outdated by now for years and the Mapbox folks don't maintain it 😿 Just want to be clear about this before folks put their time and effort into an abandoned project.

@iboates
Copy link
Author

iboates commented Apr 13, 2021

Ok, understood. I have my own hacked fork specifically for my purposes anyway. Is there a new project for the same purpose? Mapbox-affiliated or not. I saw that there was Robosat.pink but it seems that the creator actually passed away and nobody has maintained it since then.

@daniel-j-h
Copy link
Collaborator

daniel-j-h commented Apr 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants