Open fatbringer opened 1 year ago
It's not clear. Is there any information presented in your terminal or DevTools in your browser?
I used terminal to launch
Go to: http://localhost:8000/
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
August 21, 2023 - 08:35:43
Django version 3.2.18, using settings 'CCLabeler.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[21/Aug/2023 08:35:50] "GET /label HTTP/1.1" 200 2278
[21/Aug/2023 08:35:52] "POST /table HTTP/1.1" 200 8542
Not Found: /favicon.ico
[21/Aug/2023 08:35:52] "GET /favicon.ico HTTP/1.1" 404 2644
[21/Aug/2023 08:36:09] "GET /table HTTP/1.1" 200 2278
[21/Aug/2023 08:36:10] "POST /table HTTP/1.1" 200 8542
[21/Aug/2023 08:36:13] "POST /label HTTP/1.1" 200 5456
[21/Aug/2023 08:36:13] "GET /static/Pairs_DJI_20221202230210_0003_T_frame120.jpg HTTP/1.1" 200 94825
[21/Aug/2023 08:36:32] "POST /label HTTP/1.1" 200 33546
[21/Aug/2023 08:36:32] "GET /static/Pairs_DJI_20221202230210_0003_Z_frame120.jpg HTTP/1.1" 200 870848
[21/Aug/2023 08:37:48] "GET /static/jquery.min.map HTTP/1.1" 404 1801
[21/Aug/2023 08:37:48] "GET /static/bootstrap.min.css.map HTTP/1.1" 404 1822
[21/Aug/2023 08:38:38] "GET /label HTTP/1.1" 200 2278
[21/Aug/2023 08:38:38] "GET /static/login.css HTTP/1.1" 200 747
[21/Aug/2023 08:38:38] "GET /static/bootstrap.min.js HTTP/1.1" 200 37051
[21/Aug/2023 08:38:38] "GET /static/jquery.mousewheel.min.js HTTP/1.1" 200 2778
[21/Aug/2023 08:38:38] "GET /static/bootstrap.min.css HTTP/1.1" 200 121205
[21/Aug/2023 08:38:38] "GET /static/jquery.min.js HTTP/1.1" 200 84284
[21/Aug/2023 08:38:38] "GET /static/icon-white.svg HTTP/1.1" 200 2303
[21/Aug/2023 08:38:38] "GET /static/favicon.ico HTTP/1.1" 200 67646
[21/Aug/2023 08:38:40] "POST /table HTTP/1.1" 200 8542
[21/Aug/2023 08:38:40] "GET /static/bootstrap-slider.min.css HTTP/1.1" 200 4885
[21/Aug/2023 08:38:40] "GET /static/bootstrap-slider.min.js HTTP/1.1" 200 21199
[21/Aug/2023 08:38:41] "POST /label HTTP/1.1" 200 45346
[21/Aug/2023 08:38:41] "GET /static/style.css HTTP/1.1" 200 752
[21/Aug/2023 08:38:41] "GET /static/icon-blue.svg HTTP/1.1" 200 2303
[21/Aug/2023 08:38:41] "GET /static/global.js HTTP/1.1" 200 12661
[21/Aug/2023 08:38:41] "GET /static/label.js HTTP/1.1" 200 6407
[21/Aug/2023 08:38:41] "GET /static/button.js HTTP/1.1" 200 9974
[21/Aug/2023 08:38:41] "GET /static/oldimg.svg HTTP/1.1" 200 679
[21/Aug/2023 08:38:41] "GET /static/load.svg HTTP/1.1" 200 2494
[21/Aug/2023 08:38:41] "GET /static/newimg.svg HTTP/1.1" 200 678
[21/Aug/2023 08:38:41] "GET /static/rectangle.svg HTTP/1.1" 200 636
[21/Aug/2023 08:38:41] "GET /static/rectify.svg HTTP/1.1" 200 772
[21/Aug/2023 08:38:41] "GET /static/point.svg HTTP/1.1" 200 594
[21/Aug/2023 08:38:41] "GET /static/Pairs_DJI_20221203004356_0002_Z_frame780.jpg HTTP/1.1" 200 1072974
Doesnt seem to be anything wrong. Today my chrome just updated and now both chrome and firefox cannot see the dots!
From the console when i click on inspect within google chrome
run
DevTools failed to load source map: Could not load content for chrome-extension://mlomiejdfkolichcflejclcbmpeaniij/dist/browser-polyfill.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load source map: Could not load content for http://localhost:8000/static/jquery.min.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://localhost:8000/static/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
global.js:412 Uncaught TypeError: save is not a function
at global.js:412:9
Can you press ctrl+F5 and then paste the inspect's output here?
Outputs in the console
global.js:412 Uncaught TypeError: save is not a function
at global.js:412:9
179global.js:402 run
DevTools failed to load source map: Could not load content for chrome-extension://mlomiejdfkolichcflejclcbmpeaniij/dist/browser-polyfill.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load source map: Could not load content for http://localhost:8000/static/jquery.min.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://localhost:8000/static/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
2global.js:412 Uncaught TypeError: save is not a function
at global.js:412:9
If i try to click on label, then add dots, no errors seems to be triggered by label.js
Could you telll me which element to inspect?
I updated button.js
to solve the problem Uncaught TypeError: save is not a function at global.js:412:9
.
I noticed that your Chrome and Firefox are updated to the newest one. Maybe there is something different in the new Chrome. However, I did not meet your problem on my device. The version of my Chrome is 115.0.5790.170
, you can update your Chrome to a validated version.
If you still want to check which part meets the problem, the DrawPoint
function is located in Line-149 of global.js
, you can write a log message, e.g., console.log(x, y);
to show whether this function works.
You can paste your observation here. I will answer it if I have any ideas.
You need to update the file /js/global.js: function drawPoint(context, x, y, color = '#f00', radius = 1) { context.beginPath(); context.arc(x, y, radius, 0, 2 * Math.PI); context.fillStyle = color; context.fill(); context.closePath(); }
@mpmmpmmmp hey i tried updating my global.js to your codes but still doesnt work. My dots do not appear, but the bounding box will appear.
@Elin24
I added a few console.log lines
console.log(x, y);
console.log(width);
However, despite adding these console log lines, no output is given to the console for drawing the points. It seems like in global.js the function "drawPoint" is not accessed at all. and at line 261 function Point is not called.
In contrast, when drawing bounding boxes it shows that function Box (line 199 onwards) is being called.
Any idea why?
@Elin24 is it also normal for drawStackDict
to be using normalised values?
var initMarkStatus = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var drawStackDict = JSON.parse("[{"x": 0.5515625, "y": 0.028703703703703703}, {"x": 0.55625, "y": 0.04537037037037037}, {"x": 0.5723958333333333, "y": 0.05925925925925926}, {"x": 0.5822916666666667, "y": 0.06296296296296296}, {"x": 0.6041666666666666, "y": 0.06851851851851852}, {"x": 0.5682291666666667, "y": 0.06574074074074074}, {"x": 0.6260416666666667, "y": 0.07407407407407407}, {"x": 0.5848958333333333, "y": 0.08148148148148149}, {"x": 0.6067708333333334, "y": 0.08518518518518518}, {"x": 0.6416666666666667, "y": 0.09166666666666666}, {"x": 0.6078125, "y": 0.10185185185185185}, {"x": 0.5880208333333333, "y": 0.09907407407407408}, {"x": 0.6244791666666667, "y": 0.10185185185185185}, {"x": 0.47604166666666664, "y": 0.1037037037037037}, {"x": 0.6161458333333333, "y": 0.10833333333333334}, {"x": 0.6489583333333333, "y": 0.11296296296296296}, {"x": 0.6036458333333333, "y": 0.12037037037037036}, {"x": 0.56875, "y": 0.11851851851851852}, {"x": 0.43854166666666666, "y": 0.1287037037037037}, {"x": 0.446875, "y": 0.12685185185185185}, {"x": 0.7421875, "y": 0.13240740740740742}, {"x": 0.6671875, "y": 0.13518518518518519}, {"x": 0.41458333333333336, "y": 0.13796296296296295}, {"x": 0.4395833333333333, "y": 0.14537037037037037}, {"x": 0.6125, "y": 0.14537037037037037}, {"x": 0.6359375, "y": 0.1388888888888889}, {"x": 0.3984375, "y": 0.14351851851851852}, {"x": 0.6338541666666667, "y": 0.14537037037037037}, {"x": 0.4239583333333333, "y": 0.14351851851851852}, {"x": 0.4515625, "y": 0.14814814814814814}, {"x": 0.3890625, "y": 0.15185185185185185}, {"x": 0.5973958333333333, "y": 0.14907407407407408}, {"x": 0.5854166666666667, "y": 0.15092592592592594}, {"x": 0.4088541666666667, "y": 0.15833333333333333}, {"x": 0.43072916666666666, "y": 0.1527777777777778}, {"x": 0.6046875, "y": 0.15833333333333333}, {"x": 0.509375, "y": 0.1574074074074074}, {"x": 0.3765625, "y": 0.16111111111111112}, {"x": 0.5359375, "y": 0.16203703703703703}, {"x": 0.39739583333333334, "y": 0.1648148148148148}, {"x": 0.596875, "y": 0.16018518518518518}, {"x": 0.5046875, "y": 0.1648148148148148}, {"x": 0.4505208333333333, "y": 0.16296296296296298}, {"x": 0.6333333333333333, "y": 0.16574074074074074}, {"x": 0.45729166666666665, "y": 0.1638888888888889}, {"x": 0.43645833333333334, "y": 0.17592592592592593}, {"x": 0.5963541666666666, "y": 0.17037037037037037}, {"x": 0.4244791666666667, "y": 0.17222222222222222}, {"x": 0.659375, "y": 0.16666666666666666}, {"x": 0.6135416666666667, "y": 0.17222222222222222}, {"x": 0.40989583333333335, "y": 0.1787037037037037}, {"x": 0.3619791666666667, "y": 0.17777777777777778}, {"x": 0.39947916666666666, "y": 0.1814814814814815}, {"x": 0.3880208333333333, "y": 0.18333333333333332}, {"x": 0.6541666666666667, "y": 0.18518518518518517}, {"x": 0.7291666666666666, "y": 0.18888888888888888}, {"x": 0.5973958333333333, "y": 0.18611111111111112}, {"x": 0.37604166666666666, "y": 0.19537037037037036}, {"x": 0.5697916666666667, "y": 0.18333333333333332}, {"x": 0.7177083333333333, "y": 0.18981481481481483}, {"x": 0.5755208333333334, "y": 0.19537037037037036}, {"x": 0.6442708333333333, "y": 0.18888888888888888}, {"x": 0.41354166666666664, "y": 0.19907407407407407}, {"x": 0.4234375, "y": 0.19907407407407407}, {"x": 0.35208333333333336, "y": 0.19074074074074074}, {"x": 0.6791666666666667, "y": 0.2037037037037037}, {"x": 0.3963541666666667, "y": 0.19537037037037036}, {"x": 0.440625, "y": 0.2037037037037037}, {"x": 0.2552083333333333, "y": 0.20555555555555555}, {"x": 0.5984375, "y": 0.20277777777777778}, {"x": 0.35885416666666664, "y": 0.2037037037037037}, {"x": 0.40260416666666665, "y": 0.20833333333333334}, {"x": 0.7515625, "y": 0.2064814814814815}, {"x": 0.7958333333333333, "y": 0.21203703703703702}, {"x": 0.34010416666666665, "y": 0.2175925925925926}, {"x": 0.3692708333333333, "y": 0.20925925925925926}, {"x": 0.5484375, "y": 0.20925925925925926}, {"x": 0.5723958333333333, "y": 0.21203703703703702}, {"x": 0.6692708333333334, "y": 0.21666666666666667}, {"x": 0.5572916666666666, "y": 0.21481481481481482}, {"x": 0.771875, "y": 0.2175925925925926}, {"x": 0.36041666666666666, "y": 0.22314814814814815}, {"x": 0.3770833333333333, "y": 0.22777777777777777}, {"x": 0.4015625, "y": 0.22407407407407406}, {"x": 0.8427083333333333, "y": 0.22407407407407406}, {"x": 0.5713541666666667, "y": 0.225}, {"x": 0.446875, "y": 0.22962962962962963}, {"x": 0.4171875, "y": 0.23425925925925925}, {"x": 0.3328125, "y": 0.23148148148148148}, {"x": 0.7166666666666667, "y": 0.22870370370370371}, {"x": 0.6494791666666667, "y": 0.23425925925925925}, {"x": 0.7979166666666667, "y": 0.2361111111111111}, {"x": 0.42916666666666664, "y": 0.2388888888888889}, {"x": 0.740625, "y": 0.23703703703703705}, {"x": 0.3859375, "y": 0.24074074074074073}, {"x": 0.8354166666666667, "y": 0.23703703703703705}, {"x": 0.31927083333333334, "y": 0.23981481481481481}, {"x": 0.39947916666666666, "y": 0.24444444444444444}, {"x": 0.3734375, "y": 0.25277777777777777}, {"x": 0.3541666666666667, "y": 0.24814814814814815}, {"x": 0.7088541666666667, "y": 0.25462962962962965}, {"x": 0.221875, "y": 0.2574074074074074}, {"x": 0.6588541666666666, "y": 0.25833333333333336}, {"x": 0.7994791666666666, "y": 0.2574074074074074}, {"x": 0.5515625, "y": 0.25462962962962965}, {"x": 0.5578125, "y": 0.2574074074074074}, {"x": 0.3072916666666667, "y": 0.25833333333333336}, {"x": 0.3385416666666667, "y": 0.2601851851851852}, {"x": 0.4166666666666667, "y": 0.25833333333333336}, {"x": 0.5635416666666667, "y": 0.2574074074074074}, {"x": 0.36354166666666665, "y": 0.2611111111111111}, {"x": 0.5807291666666666, "y": 0.2611111111111111}, {"x": 0.4036458333333333, "y": 0.26666666666666666}, {"x": 0.3848958333333333, "y": 0.262037037037037}, {"x": 0.5416666666666666, "y": 0.26481481481481484}, {"x": 0.25885416666666666, "y": 0.26851851851851855}, {"x": 0.7317708333333334, "y": 0.26944444444444443}, {"x": 0.7421875, "y": 0.26851851851851855}, {"x": 0.3140625, "y": 0.2712962962962963}, {"x": 0.32708333333333334, "y": 0.2712962962962963}, {"x": 0.42552083333333335, "y": 0.27037037037037037}, {"x": 0.7927083333333333, "y": 0.27685185185185185}, {"x": 0.6625, "y": 0.2824074074074074}, {"x": 0.3046875, "y": 0.2824074074074074}, {"x": 0.38385416666666666, "y": 0.2759259259259259}, {"x": 0.28020833333333334, "y": 0.2814814814814815}, {"x": 0.3453125, "y": 0.2796296296296296}, {"x": 0.8645833333333334, "y": 0.2851851851851852}, {"x": 0.2890625, "y": 0.2814814814814815}, {"x": 0.4161458333333333, "y": 0.2861111111111111}, {"x": 0.5848958333333333, "y": 0.28425925925925927}, {"x": 0.965625, "y": 0.28888888888888886}, {"x": 0.6020833333333333, "y": 0.287962962962963}, {"x": 0.5427083333333333, "y": 0.28888888888888886}, {"x": 0.2671875, "y": 0.2953703703703704}, {"x": 0.32395833333333335, "y": 0.2935185185185185}, {"x": 0.33697916666666666, "y": 0.2935185185185185}, {"x": 0.34739583333333335, "y": 0.29444444444444445}, {"x": 0.29635416666666664, "y": 0.30185185185185187}, {"x": 0.4265625, "y": 0.2953703703703704}, {"x": 0.6510416666666666, "y": 0.30462962962962964}, {"x": 0.6828125, "y": 0.3037037037037037}, {"x": 0.88125, "y": 0.3074074074074074}, {"x": 0.3572916666666667, "y": 0.30925925925925923}, {"x": 0.15572916666666667, "y": 0.31574074074074077}, {"x": 0.7255208333333333, "y": 0.3074074074074074}, {"x": 0.7072916666666667, "y": 0.3101851851851852}, {"x": 0.25104166666666666, "y": 0.31574074074074077}, {"x": 0.3078125, "y": 0.31296296296296294}, {"x": 0.690625, "y": 0.3138888888888889}, {"x": 0.41770833333333335, "y": 0.32037037037037036}, {"x": 0.28854166666666664, "y": 0.3138888888888889}, {"x": 0.2984375, "y": 0.3194444444444444}, {"x": 0.4515625, "y": 0.31574074074074077}, {"x": 0.6770833333333334, "y": 0.31851851851851853}, {"x": 0.2791666666666667, "y": 0.33425925925925926}, {"x": 0.7213541666666666, "y": 0.32222222222222224}, {"x": 0.7088541666666667, "y": 0.325}, {"x": 0.8765625, "y": 0.3194444444444444}, {"x": 0.22916666666666666, "y": 0.3277777777777778}, {"x": 0.6697916666666667, "y": 0.32592592592592595}, {"x": 0.30520833333333336, "y": 0.3388888888888889}, {"x": 0.384375, "y": 0.3314814814814815}, {"x": 0.3234375, "y": 0.3472222222222222}, {"x": 0.9791666666666666, "y": 0.337037037037037}, {"x": 0.35104166666666664, "y": 0.34074074074074073}, {"x": 0.23854166666666668, "y": 0.3435185185185185}, {"x": 0.2640625, "y": 0.3416666666666667}, {"x": 0.36770833333333336, "y": 0.34629629629629627}, {"x": 0.4348958333333333, "y": 0.33796296296296297}, {"x": 0.39947916666666666, "y": 0.34444444444444444}, {"x": 0.21979166666666666, "y": 0.3472222222222222}, {"x": 0.3390625, "y": 0.3472222222222222}, {"x": 0.7302083333333333, "y": 0.34814814814814815}, {"x": 0.965625, "y": 0.36203703703703705}, {"x": 0.2625, "y": 0.3638888888888889}, {"x": 0.35833333333333334, "y": 0.3731481481481482}, {"x": 0.3489583333333333, "y": 0.3685185185185185}, {"x": 0.3046875, "y": 0.36944444444444446}, {"x": 0.9260416666666667, "y": 0.37592592592592594}, {"x": 0.38125, "y": 0.37222222222222223}, {"x": 0.2760416666666667, "y": 0.37777777777777777}, {"x": 0.9494791666666667, "y": 0.37592592592592594}, {"x": 0.39479166666666665, "y": 0.37592592592592594}, {"x": 0.32864583333333336, "y": 0.37962962962962965}, {"x": 0.31354166666666666, "y": 0.3787037037037037}, {"x": 0.42083333333333334, "y": 0.37592592592592594}, {"x": 0.4046875, "y": 0.37777777777777777}, {"x": 0.18958333333333333, "y": 0.3814814814814815}, {"x": 0.37447916666666664, "y": 0.3768518518518518}, {"x": 0.28854166666666664, "y": 0.387037037037037}, {"x": 0.4583333333333333, "y": 0.387037037037037}, {"x": 0.3484375, "y": 0.387037037037037}, {"x": 0.46145833333333336, "y": 0.39166666666666666}, {"x": 0.4583333333333333, "y": 0.39351851851851855}, {"x": 0.46145833333333336, "y": 0.39351851851851855}, {"x": 0.37395833333333334, "y": 0.3962962962962963}, {"x": 0.4588541666666667, "y": 0.39537037037037037}, {"x": 0.8953125, "y": 0.4046296296296296}, {"x": 0.3411458333333333, "y": 0.4046296296296296}, {"x": 0.41041666666666665, "y": 0.412962962962963}, {"x": 0.475, "y": 0.4046296296296296}, {"x": 0.328125, "y": 0.4212962962962963}, {"x": 0.4265625, "y": 0.41203703703703703}, {"x": 0.29739583333333336, "y": 0.42592592592592593}, {"x": 0.4239583333333333, "y": 0.41388888888888886}, {"x": 0.3854166666666667, "y": 0.42314814814814816}, {"x": 0.4473958333333333, "y": 0.4185185185185185}, {"x": 0.2734375, "y": 0.42407407407407405}, {"x": 0.4953125, "y": 0.4166666666666667}, {"x": 0.4296875, "y": 0.42592592592592593}, {"x": 0.496875, "y": 0.41944444444444445}, {"x": 0.35520833333333335, "y": 0.4361111111111111}, {"x": 0.49635416666666665, "y": 0.4212962962962963}, {"x": 0.49635416666666665, "y": 0.42314814814814816}, {"x": 0.48125, "y": 0.43425925925925923}, {"x": 0.4578125, "y": 0.4351851851851852}, {"x": 0.4635416666666667, "y": 0.45}]".replace(/"/g, '"'));
I have the same problem. Please help me! @Elin24
Hello @Elin24 thank you for developing this tool. I used it for awhile and then suddenly i realise my boxes are appearing, but then the point do not appear.
I am not sure why either. It used to work before this.
here is my pip list
Do you know why?