Git Product home page Git Product logo

Comments (3)

1adrianb avatar 1adrianb commented on July 20, 2024 1

Hi @azmathmoosa ,

Are you using Windows? If yes, then there seems to be an issue with the library you are trying to use, see bshillingford/python-torchfile#9

Regarding an utility to do this, you can use pytorch (there is a windows build for it using conda). If this still doesn't work, please let me know and I will have a look.

from 2d-and-3d-face-alignment.

azmathmoosa avatar azmathmoosa commented on July 20, 2024

Thanks for the quick response @1adrianb . I tried pytorch for windows and it too failed to deserialize.

>>> import torch
>>> from torch.utils.serialization import load_lua
>>>
>>> a = load_lua('aflw__face_40662.t7')
>>> a
[torch.DoubleTensor with no dimension]

Going through the issue that you referenced they say that binary t7 files are not portable due to different sizes of long ints. So I must use a linux system to deserialize them first and then switch to windows. I will do that then.

Thanks for the assistance, and great work!

from 2d-and-3d-face-alignment.

SunlifeV avatar SunlifeV commented on July 20, 2024

I have finished the conversion, Win10, python3.7, pytorch 0.4.1(cpu)
use code

import torch
from torch.utils.serialization import load_lua
# code...
t7_data = load_lua("the path", long_size=8)
# code...

from 2d-and-3d-face-alignment.

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.