mapillary / OpenSfM

Open source Structure-from-Motion pipeline
https://www.opensfm.org/
BSD 2-Clause "Simplified" License
3.42k stars 861 forks source link

Wrong Flask resource paths in annotation_gui_gcp #1047

Open MaxWinklh2908 opened 8 months ago

MaxWinklh2908 commented 8 months ago

Running python3 annotation_gui_gcp/main.py /data/berlin the following content is reachable:

image

The output is:

* Serving Flask app 'main'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (::)
 * Running on http://[::1]:5000
 * Running on http://[::1]:5000
Press CTRL+C to quit
::1 - - [18/Mar/2024 09:03:42] "GET / HTTP/1.1" 200 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/mosaic.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/mosaic.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /sequence_view_1 HTTP/1.1" 200 -
::1 - - [18/Mar/2024 09:03:42] "GET /tools HTTP/1.1" 200 -
::1 - - [18/Mar/2024 09:03:42] "GET /current_cp_view HTTP/1.1" 200 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/ImageView.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/WebView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/ImageView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/ToolsView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/ToolsView.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/ImageView.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/WebView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/WebView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/ImageView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/ImageView.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/WebView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/ImageView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /favicon.ico HTTP/1.1" 404 -
MaxWinklh2908 commented 8 months ago

A workaround for me is moving the folders annotation_gui_gcp/css and annotation_gui_gcp/js to a new sub folder annotation_gui_gcp/static.