Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Load Key #42

Open
President-Q opened this issue Jun 23, 2024 · 4 comments
Open

Invalid Load Key #42

President-Q opened this issue Jun 23, 2024 · 4 comments

Comments

@President-Q
Copy link

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
Copy link
Author

President-Q commented Jun 23, 2024

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
Copy link
Collaborator

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
Copy link

arjuntheprogrammer commented Jun 28, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants