Git Product home page Git Product logo

Comments (2)

vladmandic avatar vladmandic commented on May 18, 2024

face-api.esm-nobundle.js is intended to be used with bundlers (e.g, esbuild, webpack, parcel, rollup) so they can resolve dependencies. it cannot be used as direct import without bundlers - i've corrected the documentation to reflect that.

so if you're not using a bundler, it is recommended to use face-api.esm.js which pre-bundles latest version of tfjs (as of today it has been updated to 2.8.0).

now, if you have a requirement to use a specific version of tfjs and bundled one does not fit your needs, you can easily create a custom bundle - simply edit src/tfjs/tf-browser.js (this is basically a virtual package exactly for purpose to be able to swap-out tfjs in a single step) to include whichever version of tfjs you wish to use and run npm run build to create a face-api bundle.

from face-api.

umitkacar avatar umitkacar commented on May 18, 2024

Thank you. I started face-api.esm.js. It has tfjs 2.7.0. It is enough for me.

import * as faceapi from './dist/face-api.esm.js';

from face-api.

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.