Comments (4)
Oh the new version is already available on hex.pm :)
from evision.
Hi @thehaigo, in v0.1.18 the keyword parameter config
needs to be passed to Evision.DNN.ClassificationModel.classificationModel(weigths, config: "")
but to make things easier and to solve similar issues elsewhere, I updated the code and released v0.1.19. Now the following code should works
iex> image = Evision.imread("dog.jpg")
iex> weights = "efficientnet-b7.onnx"
iex> model =
iex> Evision.DNN.ClassificationModel.classificationModel(weigths)
iex> |> Evision.DNN.ClassificationModel.setInputParams(
iex> scale: 1.0 / 255.0,
iex> size: {600, 600},
iex> mean: {124.675, 116.28, 103.53},
iex> swapRB: true,
iex> crop: true
iex> )
iex> {class_id, confidence} = Evision.DNN.ClassificationModel.classify(model, image)
{249, 8.07179069519043}
from evision.
I added config option and it worked fine
Thanks, waiting for the next version!
from evision.
As the newer version should work, I'll close this issue for now :)
from evision.
Related Issues (20)
- Accuracy of Evision.VideoCapture.t frame count? HOT 9
- NIF error returned from Evision.VideoIORegistry.getBackendName/1 HOT 3
- How to know which VideoCapture backends are actually available? HOT 10
- Design a logo for this library HOT 3
- Failed compile from upstream source HOT 15
- CUDA Error on Windows 11 HOT 1
- Move constants to module `Evision.Constant`
- Evision.VideoCapture.set/3 type inconsistent with retval HOT 1
- CUDA support on Windows HOT 8
- Examples/Tests for modules in opencv_contrib
- Incorrect RPATH for libopencv_cudalegacy.so on Linux HOT 5
- An error occurs when executing the warpAffine function HOT 2
- `warpPerspective` error when executing Text Recognition HOT 3
- Could not compile dependency :complex, "mix compile" failed. HOT 6
- `Evision.Zoo.TextRecognition.CRNN.init/2` failing to download charset HOT 1
- [Possible bug] Wrong typespec for the color parameter in drawContours() HOT 2
- Restructure README.md and move some of it to the wiki page HOT 1
- Text recognition failing in the latest versions HOT 4
- Unexpected crash without any errors during face detection HOT 4
- Documentation Enhancements
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 evision.