Giter VIP home page Giter VIP logo

Comments (4)

vbkaisetsu avatar vbkaisetsu commented on May 29, 2024 1

@rabbit19981023 Thank you for your report.
I fixed a bug.
Could you confirm the behavior again?

from vaporetto.

vbkaisetsu avatar vbkaisetsu commented on May 29, 2024 1

@rabbit19981023 I created a pull request to describe the zstd format. (#88)

We don't have any plan to support the zstd format in the vapretto API, but you can also decompress these files yourself using the unzstd command, which is contained in modern Linux distributions.

For further discussion, please reply at #88, not here.

from vaporetto.

rabbit19981023 avatar rabbit19981023 commented on May 29, 2024

@vbkaisetsu

Yes, serializing & deserializing all goes well now. Thanks for fast bug fixing!

And I have another question not related to this case:

I could use ruzstd::StreamingDecoder to create Model instance like what the wasm example source code does. But how to just use std::fs::File::open or std::fs::read to do the same stuff?

Example use model.bin, and the downloaded one use .zst extension, how could I convert .zst extension to .bin?

// these codes works fine
let model_data = read("./model.zst").unwrap();
let mut decoder = ruzstd::StreamingDecoder::new(model_data.as_slice()).unwrap();
let mut buffer = vec![];
decoder.read_to_end(&mut buffer).unwrap();
let (model, _) = Model::read_slice(&buffer).unwrap();

// these codes panic
let file = File::open("./model.zst").unwrap();
let model = Model::read(file).unwrap();
// Error: "model version mismatch"

from vaporetto.

rabbit19981023 avatar rabbit19981023 commented on May 29, 2024

Thank you for the detail description !

from vaporetto.

Related Issues (3)

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.