nerfstudio icon indicating copy to clipboard operation
nerfstudio copied to clipboard

Google colab error in set up and start viewer line

Open dadobtx opened this issue 1 year ago • 4 comments

Im trying to run the nerfstudio colab but the Set up and Start viewer line shows this error. Thanks in advance

/content /tools/node/bin/lt -> /tools/node/lib/node_modules/localtunnel/bin/lt.js


IndexError Traceback (most recent call last) in 17 with open('url.txt') as f: 18 lines = f.readlines() ---> 19 websocket_url = lines[0].split(": ")[1].strip().replace("https", "wss") 20 # from nerfstudio.utils.io import load_from_json 21 # from pathlib import Path

IndexError: list index out of range

dadobtx avatar Feb 07 '23 18:02 dadobtx

It looks like the previous localtunnel call failed to create a localtunnel leading to an empty list. Can you try rerunning the notebook.

tancik avatar Feb 07 '23 19:02 tancik

Thanks for the answer @tancik. I rerun the notebook but it does not work, same error. It seems it is related to node modules.

dadobtx avatar Feb 08 '23 02:02 dadobtx

@akristoffersen Have you seen this issue?

tancik avatar Feb 08 '23 17:02 tancik

I encountered a similar error. I think the problem is related to the IP address. I resolved it by restarting my router to change my IP address and the issue was solved.

Abdessamad-Taoufiq avatar Feb 09 '23 12:02 Abdessamad-Taoufiq

I got the same error on the colab notebook, did you manage to solve it? I tried restarting the notebook, changing port and using ngrok instead of localtunnel but none of these worked.

EDIT: I solved by using: get_ipython().system_raw('lt -h "http://serverless.social" -p 7007 >> url.txt 2>&1 &') instead of : get_ipython().system_raw('lt --port 7007 >> url.txt 2>&1 &'). But the viewer don't visualize the training data now, maybe it can solved by changing manually the websocket_url variable. I found the solution here, it could be that when this happen it means that localtunnel is down.

Alessio-Parmeggiani avatar Apr 24 '23 08:04 Alessio-Parmeggiani