Comments (4)
@rabbit19981023 Thank you for your report.
I fixed a bug.
Could you confirm the behavior again?
from vaporetto.
@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.
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.
Thank you for the detail description !
from vaporetto.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vaporetto.