Octoprint-detector2 icon indicating copy to clipboard operation
Octoprint-detector2 copied to clipboard

Slow start of octopi GUI

Open fellnerse opened this issue 2 years ago • 6 comments

Hey I really like the work you put in here!

But sadly I will not be able to use the plugin, as it slows down the initialisation of my Octopi GUI. Have you experienced something similar? Do you have recommodations I could take to make it faster? I dont want to wait around a minute until i.e. the folders with my print files are shown

fellnerse avatar May 21 '22 14:05 fellnerse

I have the same issue on my Raspberry Pi 3 Model B. I did some tests (de-/activated plugin) and it slows down the Octopi GUI loading aprrox. 15 seconds, even without an print running.

mmally avatar Aug 03 '22 10:08 mmally

Hi, could you generate HAR file of the loading of the page? It would show me what takes the most time to load so I would be able to solve it. It can be done easily in the browser.https://www.youtube.com/watch?v=m98WFEXbhIs Send me it to my email and I can take a look and fix it. thanks

mikulash avatar Aug 27 '22 19:08 mikulash

I'm not using it anymore, @mmally maybe?

fellnerse avatar Aug 30 '22 06:08 fellnerse

I'm not using it anymore, @mmally maybe?

I will assist you and send you the file, but it might take a few days since I am on the road.

mmally avatar Aug 30 '22 07:08 mmally

The .har was too big for upload. so here is a download link: https://1drv.ms/u/s!AqJVZlytpN3HsuxUSXICFitdqhKDbA?e=feGMEy

the 2nd one is with the plugin deactivated. detector deactivated.zip

I hope this helps.

mmally avatar Aug 30 '22 07:08 mmally

Hi, I can see now what is going on. It takes a lot of time to load the error recognition ai model. To make it faster it would need to create simpler and smaller model. I was planning to create two models, one larger and more precise and one smaller but faster. However at this moment I cannot access enough data to make this possible. Once I create a way to collect large amount of images of errors, it should be rather simple to make this happen.

mikulash avatar Sep 04 '22 18:09 mikulash