Git Product home page Git Product logo

Comments (4)

kenarsa avatar kenarsa commented on May 27, 2024

are you loading the French model?

from rhino.

wawaBen avatar wawaBen commented on May 27, 2024

Hi, yes

Future initRhino() async {
String contextPath = await _extractDemoContext();

try {
  _rhinoManager = await RhinoManager.create(contextPath, inferenceCallback,
      errorCallback: errorCallback,
      modelPath: 'assets/contexts/rhino_params_fr.pv');
} on PvError catch (ex) {
  print("Failed to initialize Rhino: ${ex.message}");
} finally {
  this.setState(() {
    isButtonDisabled = false;
  });
}

}

from rhino.

wawaBen avatar wawaBen commented on May 27, 2024

Hello guys,
Even if I try to load english context using modelPath in the create function I get the error :
flutter: Failed to initialize Rhino: Failed to initialize Rhino.

I tried relative / non relative path but unable to load it.

from rhino.

laves avatar laves commented on May 27, 2024

@wawaBen I see you're loading the French model with a path to the assets folder. Unfortunately, this doesn't work for binary file types in Flutter as they are compressed in the app bundle. Just like you do with the Rhino context, you have to read it from the app bundle and write it to another location before passing it into the create function.

from rhino.

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.