root_painter icon indicating copy to clipboard operation
root_painter copied to clipboard

Sync is too slow in the colab tutorial

Open Abe404 opened this issue 3 years ago • 3 comments

It can take a long time to transfer data between the client and server when using google drive, which is done with the colab tutorial: https://colab.research.google.com/drive/104narYAvTBt-X4QEDrBSOZm_DRaAKHtA

As this colab tutorial is currently the recommended way to get started with RootPainter, it can lead to problems with the user experience for many new users.

One issue is that messages appear in the colab notebook first and take a while to appear on the client (many seconds), which may be causing confusion. See https://github.com/Abe404/root_painter/discussions/60#discussioncomment-4147196 for some motivation behind this issue.

Users can also spend a long time waiting for segmentations for new images, although the pre-segment option mitigates this issue to some extent, a faster sync speed would still lead to an improved user experience and reduce the requirement for tuning the pre-segment setting.

Abe404 avatar Nov 15 '22 14:11 Abe404

Perhaps this could be a solution: https://stackoverflow.com/questions/59741453/is-there-a-general-way-to-run-web-applications-on-google-colab

Abe404 avatar Apr 03 '23 11:04 Abe404

Using Fuse on linux to mount google drive (https://github.com/astrada/google-drive-ocamlfuse/blob/beta/doc/Usage.md) it takes 10 seconds to load an image in the viewer.

It takes around 20-40 seconds (after clicking save and next) before the server receives the segmentation instruction.

It takes between 40 seconds and 1 min 40 after clicking save and next before the next segmentation is viewable.

It seems to take a minute or so for the segmentation to get back to the client (from the server).

Sometimes the segmentation instruction doesn't seem to get synced with the server (I am not sure why).

Abe404 avatar Apr 03 '23 12:04 Abe404

https://stackoverflow.com/questions/52596901/how-tunneling-services-like-localtunnel-works-without-ssh/52614266#52614266

Abe404 avatar Apr 06 '23 14:04 Abe404