Git Product home page Git Product logo

Comments (9)

brjathu avatar brjathu commented on August 24, 2024 1

Hi, Can you please try with joblib?

import joblib

data = joblib.load("<path to pkl>")
print(data.keys())

from lart.

saraswat avatar saraswat commented on August 24, 2024

Failed.

import job lib
x = joblib.load("/Users/vijaysaraswat/Downloads/demo_round5_clip.pkl")

==>

KeyError                                  Traceback (most recent call last)
Input In [57], in <module>
----> 1 x = joblib.load("/Users/vijaysaraswat/Downloads/demo_round5_clip.pkl")

File ~/anaconda3/envs/py310/lib/python3.9/site-packages/joblib/numpy_pickle.py:587, in load(filename, mmap_mode)
    581             if isinstance(fobj, str):
    582                 # if the returned file object is a string, this means we
    583                 # try to load a pickle file generated with an version of
    584                 # Joblib so we load it with joblib compatibility function.
    585                 return load_compatibility(fobj)
--> 587             obj = _unpickle(fobj, filename, mmap_mode)
    588 return obj

File ~/anaconda3/envs/py310/lib/python3.9/site-packages/joblib/numpy_pickle.py:506, in _unpickle(fobj, filename, mmap_mode)
    504 obj = None
    505 try:
--> 506     obj = unpickler.load()
    507     if unpickler.compat_mode:
    508         warnings.warn("The file '%s' has been generated with a "
    509                       "joblib version less than 0.10. "
    510                       "Please regenerate this pickle file."
    511                       % filename,
    512                       DeprecationWarning, stacklevel=3)

File ~/anaconda3/envs/py310/lib/python3.9/pickle.py:1212, in _Unpickler.load(self)
   1210             raise EOFError
   1211         assert isinstance(key, bytes_types)
-> 1212         dispatch[key[0]](self)
   1213 except _Stop as stopinst:
   1214     return stopinst.value

KeyError: 188

from lart.

brjathu avatar brjathu commented on August 24, 2024

If you running it on collab, are you using the dev branch?

from lart.

saraswat avatar saraswat commented on August 24, 2024

No. I did a git clone of the code, and then a pip instal -e .[all] (I have been working last few days with PHALP, 4DHumans and LART, and may have the [all] mixed up. But no, I did not switch to a dev branch, worked with head in all cases.)

from lart.

brjathu avatar brjathu commented on August 24, 2024

I see if you only install lart with pip install -e .[demo] it will install both 4DHumans and PHALP. Perhaps you could please try a new environment with only installing lart? I just tried this on my end on jump.mp4 and I was able to read all the .pkl files under results_temporal_fast.

from lart.

saraswat avatar saraswat commented on August 24, 2024

No luck. Similar error. Actually let me focus om just getting PHALP pkl files read first. Will try tomorrow.

from lart.

faezehprb avatar faezehprb commented on August 24, 2024

Hello
Thanks for your great work.
I have same problem. I can't unpickle the generated pickles in both LART and PHALP output folders.(I use google colab)

from lart.

brjathu avatar brjathu commented on August 24, 2024

@saraswat any updates on this? Thanks.

from lart.

brjathu avatar brjathu commented on August 24, 2024

closing this due to inactivity. please feel free to reopen if needed.

from lart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.