An EVM Linux-powered coprocessor as an tree image detector
Tree image detector YOLOv8 based model powered by EigenLayer cryptoeconomic security
-
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
-
Cartesi CLI is an easy-to-use tool to build and deploy your dApps. To install it, run:
npm i -g @cartesi/cli
- Start the devnet coprocessor infrastructure:
cartesi-coprocessor start-devnet
- Build and Publish the application:
cd coprocessor
cartesi-coprocessor publish --network devnet
- Deploy
TreeDetector.sol
andToken.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>
- 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