Giter Site home page Giter Site logo

shotit / shotit-worker Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 31.5 MB

Four core workers of shotit: watcher, hasher, loader and searcher.

Home Page: https://shotit.github.io/

License: Apache License 2.0

Dockerfile 4.48% JavaScript 95.52%
anns approximate-nearest-neighbor-search distributed embedding-similarity faiss image-search javascript liresolr nearest-neighbor-search node

shotit-worker's Introduction

Shotit-worker

License GitHub Workflow Status GitHub release Watcher Docker Watcher Docker Image Size Hasher Docker Hasher Docker Image Size Loader Docker Loader Docker Image Size Searcher Docker Searcher Docker Image Size

Backend workers for shotit. Four core workers of shotit: watcher, hasher, loader and searcher.

Features

  • watch file system changes and upload hash to shotit-media
  • download video from shotit-media, hash, and upload to shotit-api
  • download hash from shotit-api, deduplicate, and upload to milvus

Prerequisites

  • Node.js 16.x, 18.x
  • ffmpeg 4.x
  • java (openjdk 1.8.0)
  • git
  • pm2

Local Development Guide

Install Prerequisites first, then:

git clone https://github.com/shotit/shotit-worker.git
cd shotit-worker
yarn install

Configuration

  • Copy .env.example to .env
  • Edit .env as appropriate for your setup, as is for the first time.

Start workers

You can use pm2 to run this in background in cluster mode.

Use below commands to start / restart / stop server.

yarn start
yarn stop
yarn reload
yarn restart
yarn delete
yarn logs

To change the number of nodejs instances, edit ecosystem.config.json

shotit-worker's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar leslie-wong-h avatar soruly avatar

Stargazers

 avatar  avatar  avatar

shotit-worker's Issues

Loader Bug: grpc error - Error: Channel has been shut down

Context:
Update milvus to the latest v2.2.11, and milvus-sdk-node to v2.2.18, then when running the shotit docker-compose at ubuntu, the loader worker is not working properly.
From sudo docker logs -f -n 100 shotit-worker-loader, got

Unzipping hash
Parsing xml
Polish JSON data
Pause for 5 seconds
/app/node_modules/@grpc/grpc-js/build/src/internal-channel.js:452
            throw new Error('Channel has been shut down');
            ^

Error: Channel has been shut down
    at InternalChannel.createCall (/app/node_modules/@grpc/grpc-js/build/src/internal-channel.js:452:19)
    at ChannelImplementation.createCall (/app/node_modules/@grpc/grpc-js/build/src/channel.js:64:37)
    at getCall (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:253:26)
    at getBottomInterceptingCall (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:376:18)
    at /app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:424:26
    at retry (/app/node_modules/@zilliz/milvus2-sdk-node/dist/milvus/utils/Grpc.js:157:39)
    at Timeout._onTimeout (/app/node_modules/@zilliz/milvus2-sdk-node/dist/milvus/utils/Grpc.js:136:45)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)

Node.js v18.16.1

repeatedly every time a new episode is getting loaded, and then shotit-worker-loader crashes and reboots.

Where the error message of Error: Channel has been shut down is coming from is grpc/grpc-node/

Feature Request: add duration information to shotit-loader

The ongoing Shotit paper places an impressive demo image on the first page. However, the image is not consistent with the demo image previously placed on shoitit GitHub profile and shotit/shotit

In the result section, there is no duration information currently at the production demo site, but it is proposed in the shotit paper to make the title Shotit: compute-efficient image-to-video search engine for the cloud more intuitive.

Please implement it in the shotit source code to make it consistent with the paper.

image

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.