nex-mpi / nex-code

Code release for NeX: Real-time View Synthesis with Neural Basis Expansion
MIT License
594 stars 73 forks source link

Colab broken? #24

Open demmeler opened 3 years ago

demmeler commented 3 years ago

Hey together, i just tried to use the Colab notebook with custom images and got the error below, when running the scene cell. Tried it in Chrome on Win and Mac, same error. Should it work atm?

Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to enable.
---------------------------------------------------------------------------
MessageError                              Traceback (most recent call last)
<ipython-input-2-8dd6a665c864> in <module>()
     40   display(HTML('<small>*minimum 12 images</small>'))
     41   dir = os.getcwd()
---> 42   uploaded = files.upload()
     43   preupload_datasets = [os.path.join(dir, f) for f in uploaded.keys()]
     44   del uploaded

2 frames
/usr/local/lib/python3.7/dist-packages/google/colab/_message.py in read_reply_from_input(message_id, timeout_sec)
    104         reply.get('colab_msg_id') == message_id):
    105       if 'error' in reply:
--> 106         raise MessageError(reply['error'])
    107       return reply.get('data', None)
    108 

MessageError: TypeError: Cannot read property '_uploadFiles' of undefined
pureexe commented 3 years ago

Upload custom images are working fine for me. Maybe you could try again?

Error seems like it occurs on the COLAB side. The COLAB team might already fix it.

image

demmeler commented 3 years ago

Okay, I tried another browser and get the button. But now the error is:

PXL_20210804_155805358.jpg(image/jpeg) - 70080 bytes, last modified: n/a - 0% done
 ---------------------------------------------------------------------------
MessageError                              Traceback (most recent call last)
<ipython-input-9-8dd6a665c864> in <module>()
     40   display(HTML('<small>*minimum 12 images</small>'))
     41   dir = os.getcwd()
---> 42   uploaded = files.upload()
     43   preupload_datasets = [os.path.join(dir, f) for f in uploaded.keys()]
     44   del uploaded

2 frames
/usr/local/lib/python3.7/dist-packages/google/colab/_message.py in read_reply_from_input(message_id, timeout_sec)
    104         reply.get('colab_msg_id') == message_id):
    105       if 'error' in reply:
--> 106         raise MessageError(reply['error'])
    107       return reply.get('data', None)
    108 

MessageError: RangeError: Maximum call stack size exceeded.
TBM13 commented 3 years ago

MessageError: TypeError: Cannot read property '_uploadFiles' of undefined Same issue

Edit: I fixed it by disabling "block third-party cookies" in Chrome settings