Code Monkey home page Code Monkey logo

Comments (6)

gbpcosta avatar gbpcosta commented on July 22, 2024 1

Hi, I made a python function that might help: https://gist.github.com/gbpcosta/22f9679c1984473f2971e4d4d2d60aa9

from c3d.

dutran avatar dutran commented on July 22, 2024

@MichaelXin The format is:
5 32-bit integers: num, chanel, length, height, width. (record the size of the blob)
Then followed by the data of (num * channel * length * height * width) each data is a 32-bit float in row order.

from c3d.

dutran avatar dutran commented on July 22, 2024

@MichaelXin check out the script to read blob which preserving blob shape: https://github.com/facebook/C3D/blob/master/examples/c3d_feature_extraction/script/read_binary_blob_preserve_shape.m
You can write similar Python script. Note that MATLAB uses column order, while numpy uses row order. Thus, you don't need to reshape (as I used in MATLAB).

from c3d.

Superlee506 avatar Superlee506 commented on July 22, 2024

@MichaelXin Hi,I'm confused about load the "fc6-1"features.The feature's number is 4096,so why we shoud reshape the data size.
Thanks.

from c3d.

Prithviraj7 avatar Prithviraj7 commented on July 22, 2024

Could you please give me a python script for read_binary_blob and read_binary_bob_preserve_shape.m ?

from c3d.

Prithviraj7 avatar Prithviraj7 commented on July 22, 2024

@gbpcosta Thanks a lot! :)

from c3d.

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.