allenai / Holodeck

CVPR 2024: Language Guided Generation of 3D Embodied AI Environments.
https://yueyang1996.github.io/holodeck
Apache License 2.0
298 stars 25 forks source link

Invalid Load Key #42

Open President-Q opened 2 weeks ago

President-Q commented 2 weeks ago

I get this error while trying to generate a scene. Is this something to do with OpenAPI key?

Traceback (most recent call last):
  File "F:\GitHub\MLProjects\Holodeck\main.py", line 145, in <module>
    args.model = Holodeck(
  File "F:\GitHub\MLProjects\Holodeck\ai2holodeck\generation\holodeck.py", line 93, in __init__
    self.object_retriever = ObjathorRetriever(
  File "F:\GitHub\MLProjects\Holodeck\ai2holodeck\generation\objaverse_retriever.py", line 34, in __init__
    objathor_sbert_features_dict = compress_pickle.load(
  File "C:\Users\PR\AppData\Roaming\Python\Python39\site-packages\compress_pickle\compress_pickle.py", line 272, in load
    output = uncompress_and_unpickle(
  File "F:\Anaconda\lib\functools.py", line 888, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "C:\Users\PR\AppData\Roaming\Python\Python39\site-packages\compress_pickle\io\base.py", line 99, in default_uncompress_and_unpickle
    return pickler.load(stream=compresser.get_stream(), **kwargs)
  File "C:\Users\PR\AppData\Roaming\Python\Python39\site-packages\compress_pickle\picklers\pickle.py", line 45, in load
    return pickle.load(stream, **kwargs)
_pickle.UnpicklingError: invalid load key, '\x00'.
President-Q commented 2 weeks ago

Upon further digging, it might have something to do with compress pickle, which I upgraded it. Still getting this error

WARNING:py.warnings:C:\Users\PrafulRudra\AppData\Roaming\Python\Python39\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(

Traceback (most recent call last):
  File "F:\GitHub\MLProjects\Holodeck\main.py", line 145, in <module>
    args.model = Holodeck(
  File "F:\GitHub\MLProjects\Holodeck\ai2holodeck\generation\holodeck.py", line 93, in __init__
    self.object_retriever = ObjathorRetriever(
  File "F:\GitHub\MLProjects\Holodeck\ai2holodeck\generation\objaverse_retriever.py", line 34, in __init__
    objathor_sbert_features_dict = compress_pickle.load(
  File "C:\Users\PR\AppData\Roaming\Python\Python39\site-packages\compress_pickle\compress_pickle.py", line 272, in load
    output = uncompress_and_unpickle(
  File "F:\Anaconda\lib\functools.py", line 888, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "C:\Users\PR\AppData\Roaming\Python\Python39\site-packages\compress_pickle\io\base.py", line 99, in default_uncompress_and_unpickle
    return pickler.load(stream=compresser.get_stream(), **kwargs)
  File "C:\Users\PR\AppData\Roaming\Python\Python39\site-packages\compress_pickle\picklers\pickle.py", line 45, in load
    return pickle.load(stream, **kwargs)
_pickle.UnpicklingError: invalid load key, '\x00'.
YueYANG1996 commented 1 week ago

It seems to be the error when loading a pickle file. Could you check which pickle file caused this error and re-download it?

arjuntheprogrammer commented 1 week ago

I got the same error while running the script on MacOS M2 but on Ubuntu, I was able to run this without any error.

image

lingli1996 commented 1 week ago

I got the same error while running the script on MacOS M2 but on Ubuntu I was able to run this without any error.

image

I got the same results as you, also on macOS M2. @arjuntheprogrammer