Skip to content

An EVM Linux-powered coprocessor as an tree image detector

License

Notifications You must be signed in to change notification settings

henriquemarlon/lilium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



An EVM Linux-powered coprocessor as an tree image detector
Tree image detector YOLOv8 based model powered by EigenLayer cryptoeconomic security

license last-commit

Table of Contents

Prerequisites

  1. Install Docker Desktop for your operating system.

    To install Docker RISC-V support without using Docker Desktop, run the following command:

     docker run --privileged --rm tonistiigi/binfmt --install all
  2. Download and install the latest version of Node.js

  3. Cartesi CLI is an easy-to-use tool to build and deploy your dApps. To install it, run:

    npm i -g @cartesi/cli
  4. Install the Cartesi Coprocessor CLI

Running

  1. Start the devnet coprocessor infrastructure:
cartesi-coprocessor start-devnet
  1. Build and Publish the application:
cd coprocessor
cartesi-coprocessor publish --network devnet
  1. Deploy TreeDetector.sol and Token.sol contract:

Note

The following step requires some extra information provided by the command bellow on /coprocessor:

cartesi-coprocessor address-book

Output sample:

Machine Hash         0xdb1d7833f57f79c379e01b97ac5a398da31df195b1901746523be0bc348ccc88
Devnet_task_issuer   0x95401dc811bb5740090279Ba06cfA8fcF6113778
Testnet_task_issuer  0xff35E413F5e22A9e1Cc02F92dcb78a5076c1aaf3
payment_token        0xc5a5C42992dECbae36851359345FE25997F5C42d
make setup
make detector

Output sample:

[⠊] Compiling...
No files changed, compilation skipped
Enter Coprocessor address: <devnet_task_issuer>
Enter Machine Hash: <machine_hash>
  1. Run the frontend:

Warning

Before run the frontend, please update the .env.local file with the Token and TreeDetector ( CoprocessorAdapter ) addresses deployed:

NEXT_PUBLIC_PROJECT_ID="e47c5026ed6cf8c2b219df99a94f60f4"
NEXT_PUBLIC_TOKEN_CONTRACT=""
NEXT_PUBLIC_COPROCESSOR_ADAPTER=""
make frontend

Demo

tree_detector_2.1.mp4