FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS

Overview

Git Version NPM Version Last Commit License GitHub Status Checks Vulnerabilities

FaceAPI

AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS


Live Demo: https://vladmandic.github.io/face-api/demo/webcam.html


Additional Documentation




Examples


Browser

Browser example that uses static images and showcases both models
as well as all of the extensions is included in /demo/index.html
Example can be accessed directly using Git pages using URL:
https://vladmandic.github.io/face-api/demo/index.html

Browser example that uses live webcam is included in /demo/webcam.html
Example can be accessed directly using Git pages using URL:
https://vladmandic.github.io/face-api/demo/webcam.html


Demo using FaceAPI to process images
Note: Photos shown below are taken by me

screenshot

Demo using FaceAPI to process live webcam

screenshot


NodeJS

Three NodeJS examples are:

  • /demo/node.js:
    Regular usage of FaceAPI from NodeJS
    Using TFJS native methods to load images without external dependencies
  • /demo/node-canvas.js:
    Regular usage of FaceAPI from NodeJS
    Using external canvas module to load images
    Which also allows for image drawing and saving inside NodeJS environment
  • /demo/node-multiprocess.js:
    Multiprocessing showcase that uses pool of worker processes
    (node-multiprocess-worker.js)
    Main starts fixed pool of worker processes with each worker having
    it's instance of FaceAPI
    Workers communicate with main when they are ready and main dispaches
    job to each ready worker until job queue is empty
2021-03-14 08:42:03 INFO:  @vladmandic/face-api version 1.0.2
2021-03-14 08:42:03 INFO:  User: vlado Platform: linux Arch: x64 Node: v15.7.0
2021-03-14 08:42:03 INFO:  FaceAPI multi-process test
2021-03-14 08:42:03 STATE:  Main: started worker: 1888019
2021-03-14 08:42:03 STATE:  Main: started worker: 1888025
2021-03-14 08:42:04 STATE:  Worker: PID: 1888025 TensorFlow/JS 3.3.0 FaceAPI 1.0.2 Backend: tensorflow
2021-03-14 08:42:04 STATE:  Worker: PID: 1888019 TensorFlow/JS 3.3.0 FaceAPI 1.0.2 Backend: tensorflow
2021-03-14 08:42:04 STATE:  Main: dispatching to worker: 1888019
2021-03-14 08:42:04 STATE:  Main: dispatching to worker: 1888025
2021-03-14 08:42:04 DATA:  Worker received message: 1888019 { image: 'demo/sample1.jpg' }
2021-03-14 08:42:04 DATA:  Worker received message: 1888025 { image: 'demo/sample2.jpg' }
2021-03-14 08:42:06 DATA:  Main: worker finished: 1888025 detected faces: 3
2021-03-14 08:42:06 STATE:  Main: dispatching to worker: 1888025
2021-03-14 08:42:06 DATA:  Worker received message: 1888025 { image: 'demo/sample3.jpg' }
2021-03-14 08:42:06 DATA:  Main: worker finished: 1888019 detected faces: 3
2021-03-14 08:42:06 STATE:  Main: dispatching to worker: 1888019
2021-03-14 08:42:06 DATA:  Worker received message: 1888019 { image: 'demo/sample4.jpg' }
2021-03-14 08:42:07 DATA:  Main: worker finished: 1888025 detected faces: 3
2021-03-14 08:42:07 STATE:  Main: dispatching to worker: 1888025
2021-03-14 08:42:07 DATA:  Worker received message: 1888025 { image: 'demo/sample5.jpg' }
2021-03-14 08:42:08 DATA:  Main: worker finished: 1888019 detected faces: 4
2021-03-14 08:42:08 STATE:  Main: dispatching to worker: 1888019
2021-03-14 08:42:08 DATA:  Worker received message: 1888019 { image: 'demo/sample6.jpg' }
2021-03-14 08:42:09 DATA:  Main: worker finished: 1888025 detected faces: 5
2021-03-14 08:42:09 STATE:  Main: worker exit: 1888025 0
2021-03-14 08:42:09 DATA:  Main: worker finished: 1888019 detected faces: 4
2021-03-14 08:42:09 INFO:  Processed 15 images in 5944 ms
2021-03-14 08:42:09 STATE:  Main: worker exit: 1888019 0

Note that @tensorflow/tfjs-node or @tensorflow/tfjs-node-gpu
must be installed before using NodeJS example




Quick Start

Simply include latest version of FaceAPI directly from a CDN in your HTML:
(pick one, jsdelivr or unpkg)

">
<script src="https://cdn.jsdelivr.net/npm/@vladmandic/face-api/dist/face-api.js">script>
<script src="https://unpkg.dev/@vladmandic/face-api/dist/face-api.js">script>

Installation

FaceAPI ships with several pre-build versions of the library:

  • dist/face-api.js: IIFE format for client-side Browser execution
    with TFJS pre-bundled
  • dist/face-api.esm.js: ESM format for client-side Browser execution
    with TFJS pre-bundled
  • dist/face-api.esm-nobundle.js: ESM format for client-side Browser execution
    without TFJS pre-bundled
  • dist/face-api.node.js: CommonJS format for server-side NodeJS execution
    without TFJS pre-bundled
  • dist/face-api.node-gpu.js: CommonJS format for server-side NodeJS execution
    without TFJS pre-bundled and optimized for CUDA GPU acceleration

Defaults are:

{
  "main": "dist/face-api.node-js",
  "module": "dist/face-api.esm.js",
  "browser": "dist/face-api.esm.js",
}

Bundled TFJS can be used directly via export: faceapi.tf

Reason for additional nobundle version is if you want to
include a specific version of TFJS and not rely on pre-packaged one

FaceAPI is compatible with TFJS 2.0+ and TFJS 3.0+

All versions include sourcemap




There are several ways to use FaceAPI:

1. IIFE script

Recommened for quick tests and backward compatibility with older Browsers that do not support ESM such as IE

This is simplest way for usage within Browser
Simply download dist/face-api.js, include it in your HTML file & it's ready to use:

">
<script src="https://cdn.jsdelivr.net/npm/@vladmandic/face-api/dist/face-api.js">script>

IIFE script bundles TFJS and auto-registers global namespace faceapi within Window object which can be accessed directly from a

Comments
  • Migration @vladmandic/face-api to old face-api

    Migration @vladmandic/face-api to old face-api

    Hi, What are steps that need to be done ? 1.pacakge json for @vladmandic/face-api we used: "@tensorflow/tfjs-node": "^3.9.0", "@vladmandic/face-api": "^1.5.4", what are in old face-api ? 2.The project old face-api written in typescript, can I used it in js ? 3.What about modal they can be loaded in startup like in @vladmandic/face-api ? 4.const faceapi = require('@vladmandic/face-api'); in old api how is it in js? 5.Does the interface(methods of faceapi are same on both platform ? Thanks,

    opened by danies8 53
  • how to fully optimize processing to take advance of all available hardware

    how to fully optimize processing to take advance of all available hardware

    I run this function:

      async function analyzeFrame (frameData, index) {
        const tensor = await getTensorFromBuffer(frameData)
        const faces = await faceapi.detectAllFaces(tensor, optionsSSDMobileNet).withFaceLandmarks().withFaceDescriptors()
        tensor.dispose()
        faces.forEach(async (face) => {
          // console.log(face)
        })
      }
    

    for hundreds of frames of a video. When doing so, it takes about half the time as if it where using only tfjs-node. It fills the RAM of my two 1080s, however the only usage that changes when I start the script is GPU 1s copy utilization goes to about 15%.

    I want to take better advantage of my hardware and run this faster.

    Windows 10, cuda 10, TFJS 2.7.0

    question 
    opened by Nuzzlet 33
  •   return process.dlopen(module, path.toNamespacedPath(filename));

    return process.dlopen(module, path.toNamespacedPath(filename));

    hey! im using your package in my project for face recognition and it works fine. i copied the same project to different computer and im getting this error. tried all solutions available online, reinstalled node modules a number of times, tried all versions of node and tensorflow as well as your package, not sure where is the error coming from.

    here is the error stack:

    return process.dlopen(module, path.toNamespacedPath(filename)); ^

    Error: A dynamic link library (DLL) initialization routine failed. \?\C:\Users\User\Documents\digitallending_sql\[email protected]\tfjs-node\lib\napi-v5\tfjs_binding.node at Object.Module._extensions..node (internal/modules/cjs/loader.js:1206:18) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Module.require (internal/modules/cjs/loader.js:1042:19) at require (internal/modules/cjs/helpers.js:77:18) at Object. (C:\Users\User\Documents\digitallending_sql\[email protected]\tfjs-node\dist\index.js:58:16) at Module._compile (internal/modules/cjs/loader.js:1156:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Module.require (internal/modules/cjs/loader.js:1042:19) at require (internal/modules/cjs/helpers.js:77:18) at Object. (C:\Users\User\Documents\digitallending_sql\functions\facedetection.js:2:1) at Module._compile (internal/modules/cjs/loader.js:1156:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Module.require (internal/modules/cjs/loader.js:1042:19) at require (internal/modules/cjs/helpers.js:77:18) at Object. (C:\Users\User\Documents\digitallending_sql\controllers\applicationController.js:6:20) at Module._compile (internal/modules/cjs/loader.js:1156:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Module.require (internal/modules/cjs/loader.js:1042:19) at require (internal/modules/cjs/helpers.js:77:18) at Object. (C:\Users\User\Documents\digitallending_sql\routes\applicationRouter.js:3:29) at Module._compile (internal/modules/cjs/loader.js:1156:30)


    im using windows 10, node 12.16.2

    wontfix 
    opened by Muhammad-Ehsan-Ul-Haq 28
  • Unable to use faceapi in a nexjs - react application

    Unable to use faceapi in a nexjs - react application "Module not found: Can't resolve 'fs'"

    Issue Description Getting the following error:

    error - ./node_modules/@vladmandic/face-api/dist/face-api.esm.js:8:25031 Module not found: Can't resolve 'fs'

    Steps to Reproduce create a nextjs application as given here:

    https://nextjs.org/learn/basics/create-nextjs-app/setup

    added face api packages (npm install). Including tensorflow Invoked the api to load the models: await faceapi.nets.ssdMobilenetv1.loadFromUri('/models')

    And got the error:

    Expected Behavior It should have loaded the models.

    **Environment Windows 10. Nodejs. React application. Using VS code editor. Browser is chrome/Edge.

    • Module version?
    • Built-in demo or custom code? - custom
    • Type of module used (e.g. js, esm, esm-nobundle)? js
    • Browser or NodeJS and version (e.g. NodeJS 14.15 or Chrome 89)? - Node v14.13.1, Chrome Version 89.0.4389.90 (Official Build) (64-bit)
    • OS and Hardware platform (e.g. Windows 10, Ubuntu Linux on x64, Android 10)? Windows 10
    • Packager (if any) (e.g, webpack, rollup, parcel, esbuild, etc.)? standard webpack

    Additional

    • For installation or startup issues include your package.json
    • For usage issues, it is recommended to post your code as gist
    question 
    opened by karthik-Gopalan 26
  • Can't use in a lerna/create-react app project

    Can't use in a lerna/create-react app project

    I am using the library in a TypeScript lerna module which is build with tsc and then bundled as part of a create-react-app. I had no issue with the original face-api but wanted the latest fdjs. I am using the npm module with npm install.

    If I only do:

    import * as faceapi from '@vladmandic/face-api'

    I get a compile error:

    Failed to compile ../face-detect-plugin/node_modules/@vladmandic/face-api/dist/face-api.js 344:47 Module parse failed: Unexpected token (344:47) File was processed with these loaders:

    • ./node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders. | } : T || {}; |
        var E = g(f(T.entropy ? [x, w(e)] : x ?? y(), 3), _),
    

    | F = new d(_), | D = function () {

    if I add:

    import * as tf from '@tensorflow/tfjs'

    before importing face-api then I get an error in the console:

    Uncaught SyntaxError: Unexpected token '!'

    If I look at the code I see this:

    class MathBackendCPU extends !(function webpackMissingModule() { var e = new Error("Cannot find module '@tensorflow/tfjs-core'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()) { constructor() { super(); this.blockSize = 48; this.firstUse = true; this.data = new !(function webpackMissingModule() { var e = new Error("Cannot find module '@tensorflow/tfjs-core'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())(this, !(function webpackMissingModule() { var e = new Error("Cannot find module '@tensorflow/tfjs-core'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())()); }

    question 
    opened by ost12666 23
  • Implement head position angle of  (yaw, roll, pitch)

    Implement head position angle of (yaw, roll, pitch)

    HI do you have plan to implement Head position angle of (Yaw, Roll, Pitch)

    pose: {
      pitch_angle: {value: 11.102898}
      roll_angle: {value: -20.291693}
      yaw_angle: {value: 14.172521}
    }
    

    like face-api discuss here https://github.com/justadudewhohacks/face-api.js/issues/107

    enhancement 
    opened by tianyingchun 19
  • There is a leak memory: faceapi.extractFaceTensors and  faceapi.extractFaces

    There is a leak memory: faceapi.extractFaceTensors and faceapi.extractFaces

    faceapi.tf.setBackend('webgl');
    faceapi.tf.enableProdMode();
    faceapi.tf.ENV.set('DEBUG', false);
    faceapi.tf.ready();
    
    .......
    const videoTensor = await faceapi.tf.browser.fromPixels(video);
    const detections = await faceapi.detectAllFaces(videoTensor, new faceapi.SsdMobilenetv1Options({ minConfidence: minScore, maxResults }));
    const faceImages = await faceapi.extractFaceTensors(videoTensor, detections);
    
    await videoTensor.dispose();
    await faceImages[0].dispose();
    
    

    I follow my GPU memory. I detect a leak memory. Maybe we can use x.dispose(); I tried it, but this problem continue... I checked faceapi.detectAllFaces function. There is not any leak. I think faceapi.extractFaceTensors function. How can I fix it?

    question 
    opened by umitkacar 19
  • @vladmandic/face-api/dist/face-api.node.js requires ES module???

    @vladmandic/face-api/dist/face-api.node.js requires ES module???

    trying to migrate to your fork of face-api

    Using:

    let faceapi   = require('@vladmandic/face-api/dist/face-api.node.js');
    

    I get:

    Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/meeki/node-red-contrib-facial-recognition/node_modules/@vladmandic/face-api/dist/face-api.node.js
    require() of ES modules is not supported.
    require() of /home/meeki/node-red-contrib-facial-recognition/node_modules/@vladmandic/face-api/dist/face-api.node.js from /home/meeki/node-red-contrib-facial-recognition/facial-recognition.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
    Instead rename face-api.node.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/meeki/node-red-contrib-facial-recognition/node_modules/@vladmandic/face-api/package.json.
    

    interesting

    bug help wanted 
    opened by meeki007 17
  • How does detectAllFaces function will handle fake image photo by mobile

    How does detectAllFaces function will handle fake image photo by mobile

    Hi, I used this code that detect all faces, I want to avoid that user will photo himself by cellular and show the cellular photo to camera , how I avoid by code ? For know fake image by cellular also work. I saw this link in history issue and there is no option do install through npm ? https://github.com/vladmandic/anti-spoofing

     const ssdOptions = { minConfidence: 0.1, maxResults: 10 };
          const optionsSSDMobileNet = new faceapi.SsdMobilenetv1Options(ssdOptions);
          const faces = await faceapi
            .detectAllFaces(tensor, optionsSSDMobileNet)
            .withFaceLandmarks()
            .withFaceExpressions()
            .withFaceDescriptors()
            .withAgeAndGender();
    
    
    opened by danies8 15
  • Resource load failed

    Resource load failed

    Issue Description Vue2 builds a demo, loadFromUri loads tinyFaceDetector, and loads loadFaceLandmarkModel, PC loads resources successfully, but Apple mobile safari fails to load

    Expected Behavior Resources can be loaded on both PC and mobile

    **Environment window 10 + chrome 98.0.4758.102(PC) + safari(mobile)

    • Module version? "@vladmandic/face-api": "^1.6.5" "vue": "^2.5.2"

    • Built-in demo or custom code? https://busyshadow.github.io/#/

    • Type of module used (e.g. js, esm, esm-nobundle)? js

    • Packager (if any) (e.g, webpack, rollup, parcel, esbuild, etc.)? webpack

    • For installation or startup issues include your package.json

    {
      "name": "faceDemo",
      "version": "1.0.0",
      "description": "A Vue.js project",
      "author": "",
      "private": true,
      "scripts": {
        "dev": "vue-cli-service serve",
        "build": "vue-cli-service build"
      },
      "dependencies": {
        "@vladmandic/face-api": "^1.6.5",
        "uglifyjs-webpack-plugin": "^2.2.0",
        "vconsole": "^3.12.0",
        "vue": "^2.5.2",
        "vue-router": "^3.1.6"
      },
      "devDependencies": {
        "@vue/cli-plugin-babel": "~4.3.1",
        "@vue/cli-plugin-router": "~4.3.1",
        "@vue/cli-service": "~4.3.1",
        "vue-template-compiler": "^2.6.11"
      },
      "engines": {
        "node": ">= 6.0.0",
        "npm": ">= 3.0.0"
      },
      "browserslist": [
        "> 1%",
        "last 2 versions",
        "not ie <= 8"
      ]
    }
    

    index.vue

    <template>
        <div>
            <div>err1:{{err1}}</div>
            <div>err2:{{err2}}</div>
        </div>
    </template>
    <script>
        import * as faceapi from '@vladmandic/face-api';
        // import * as faceapi from "face-api.js";
        import vconsole from 'vconsole';
        let _this;
        export default {
            data(){
                return {
                    err1:"",
                    err2:"",
                }
            },
            created(){
                new vconsole();
            },
            mounted(){
                _this = this;
                this.$nextTick(() => {
                    this.fnInit();
                });
            },
            methods:{
                async fnInit(){
                    try {
                        await faceapi.nets['tinyFaceDetector'].loadFromUri("https://busyshadow.github.io/models");
                    }catch(e){
                        this.err1 = e;
                    }
                    try {
                        await faceapi.loadFaceLandmarkModel("https://busyshadow.github.io/models");
                    } catch(e){
                        this.err2 = e;
                    }
    
                    _this.options = new faceapi.TinyFaceDetectorOptions({
                        inputSize: 224, // 160 224 320 416 512 608
                        scoreThreshold: 0.3, // 0.1 ~ 0.9
                    });
                }
            }
        }
    </script>
    

    success success

    error error

    opened by busyShadow 14
  • faceapi is working for me on desktop but not on mobile

    faceapi is working for me on desktop but not on mobile

    faceapi is working for me on desktop but not on mobile.

    I am using wasm, as recommended to me and it worked perfect for a long time, both on desktop and mobil.

    import * as faceapi from "@vladmandic/face-api/dist/face-api.esm.js";

    async start() { /**el face api solo se necesita para el selfie */ if (this.type == "selfie") { await this.backendWasm(); await this.setupFaceAPI(); } } async setupFaceAPI() { await faceapi.nets.tinyFaceDetector.loadFromUri("/statics/models"); },

    async backendWasm() {
      await faceapi.tf.setWasmPaths("../statics/");
      await faceapi.tf.setBackend("wasm");
    },
    

    for a couple of days it stopped working on mobile, will it be a question of versions of the libraries?

    tensorflow face api ?? Captura de Pantalla 2021-06-28 a la(s) 1 33 21 p  m Captura de Pantalla 2021-06-28 a la(s) 12 57 45 p  m Captura de Pantalla 2021-06-28 a la(s) 12 57 50 p  m

    if you look at the first image they don't load all the wasm files, that's in mobile.

    but in the other two images, if you see if they load all the files, that's on desktop

    uso chrome.

    "@tensorflow/tfjs": "^3.3.0", "@tensorflow/tfjs-backend-wasm": "^3.3.0", "@vladmandic/face-api": "^1.1.12",

    Captura de Pantalla 2021-06-28 a la(s) 1 29 27 p  m
    opened by deylyn 14
Releases(1.7.1)
LightNet++: Boosted Light-weighted Networks for Real-time Semantic Segmentation

LightNet++ !!!New Repo.!!! ⇒ EfficientNet.PyTorch: Concise, Modular, Human-friendly PyTorch implementation of EfficientNet with Pre-trained Weights !!

linksense 237 Jan 05, 2023
Fast Neural Style for Image Style Transform by Pytorch

FastNeuralStyle by Pytorch Fast Neural Style for Image Style Transform by Pytorch This is famous Fast Neural Style of Paper Perceptual Losses for Real

Bengxy 81 Sep 03, 2022
Official implementation of ACMMM'20 paper 'Self-supervised Video Representation Learning Using Inter-intra Contrastive Framework'

Self-supervised Video Representation Learning Using Inter-intra Contrastive Framework Official code for paper, Self-supervised Video Representation Le

Li Tao 103 Dec 21, 2022
Code release for Local Light Field Fusion at SIGGRAPH 2019

Local Light Field Fusion Project | Video | Paper Tensorflow implementation for novel view synthesis from sparse input images. Local Light Field Fusion

1.1k Dec 27, 2022
Twins: Revisiting the Design of Spatial Attention in Vision Transformers

Twins: Revisiting the Design of Spatial Attention in Vision Transformers Very recently, a variety of vision transformer architectures for dense predic

482 Dec 18, 2022
Fader Networks: Manipulating Images by Sliding Attributes - NIPS 2017

FaderNetworks PyTorch implementation of Fader Networks (NIPS 2017). Fader Networks can generate different realistic versions of images by modifying at

Facebook Research 753 Dec 23, 2022
Replication attempt for the Protein Folding Model

RGN2-Replica (WIP) To eventually become an unofficial working Pytorch implementation of RGN2, an state of the art model for MSA-less Protein Folding f

Eric Alcaide 36 Nov 29, 2022
Label Hallucination for Few-Shot Classification

Label Hallucination for Few-Shot Classification This repo covers the implementation of the following paper: Label Hallucination for Few-Shot Classific

Yiren Jian 13 Nov 13, 2022
The code for SAG-DTA: Prediction of Drug–Target Affinity Using Self-Attention Graph Network.

SAG-DTA The code is the implementation for the paper 'SAG-DTA: Prediction of Drug–Target Affinity Using Self-Attention Graph Network'. Requirements py

Shugang Zhang 7 Aug 02, 2022
Simple and ready-to-use tutorials for TensorFlow

TensorFlow World To support maintaining and upgrading this project, please kindly consider Sponsoring the project developer. Any level of support is a

Amirsina Torfi 4.5k Dec 23, 2022
Simulation code and tutorial for BBHnet training data

Simulation Dataset for BBHnet NOTE: OLD README, UPDATE IN PROGRESS We generate simulation dataset to train BBHnet, our deep learning framework for det

0 May 31, 2022
Awesome Graph Classification - A collection of important graph embedding, classification and representation learning papers with implementations.

A collection of graph classification methods, covering embedding, deep learning, graph kernel and factorization papers

Benedek Rozemberczki 4.5k Jan 01, 2023
DiSECt: Differentiable Simulator for Robotic Cutting

DiSECt: Differentiable Simulator for Robotic Cutting Website | Paper | Dataset | Video | Blog post DiSECt is a simulator for the cutting of deformable

NVIDIA Research Projects 73 Oct 29, 2022
JudeasRx - graphical app for doing personalized causal medicine using the methods invented by Judea Pearl et al.

JudeasRX Instructions Read the references given in the Theory and Notation section below Fire up the Jupyter Notebook judeas-rx.ipynb The notebook dra

Robert R. Tucci 19 Nov 07, 2022
Detectron2 for Document Layout Analysis

Detectron2 trained on PubLayNet dataset This repo contains the training configurations, code and trained models trained on PubLayNet dataset using Det

Himanshu 163 Nov 21, 2022
Code for all the Advent of Code'21 challenges mostly written in python

Advent of Code 21 Code for all the Advent of Code'21 challenges mostly written in python. They are not necessarily the best or fastest solutions but j

4 May 26, 2022
Segmentation models with pretrained backbones. PyTorch.

Python library with Neural Networks for Image Segmentation based on PyTorch. The main features of this library are: High level API (just two lines to

Pavel Yakubovskiy 6.6k Jan 06, 2023
Generic U-Net Tensorflow implementation for image segmentation

Tensorflow Unet Warning This project is discontinued in favour of a Tensorflow 2 compatible reimplementation of this project found under https://githu

Joel Akeret 1.8k Dec 10, 2022
Depth-Aware Video Frame Interpolation (CVPR 2019)

DAIN (Depth-Aware Video Frame Interpolation) Project | Paper Wenbo Bao, Wei-Sheng Lai, Chao Ma, Xiaoyun Zhang, Zhiyong Gao, and Ming-Hsuan Yang IEEE C

Wenbo Bao 7.7k Dec 31, 2022
CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIP

CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIP Andreas Fürst* 1, Elisabeth Rumetshofer* 1, Viet Tran1, Hubert Ramsauer1, Fei Tang3, Joh

Institute for Machine Learning, Johannes Kepler University Linz 133 Jan 04, 2023