Skip to content

Instantly share code, notes, and snippets.

@drwelby
Last active July 12, 2019 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drwelby/cd0bb5bdbb43251d126fee8adca9d29c to your computer and use it in GitHub Desktop.
Save drwelby/cd0bb5bdbb43251d126fee8adca9d29c to your computer and use it in GitHub Desktop.

canvas.town

Mastodon works like Twitter, but instead of a central server users are on independent instances that can talk to each other.

Let's say every Canvas grid tile is an account on a server called canvas.town. It can post activities, like:

Z40-0df769@canvas.town: WV04 acquired imagery over me, ID 1001212350

It can also take commands if someone sends it a message.

marc@digitalglobe.com: @Z40-0df769@canvas.town /list ids

@Z40-0df769@canvas.town: @marc@digitalglobe.com: I have ids: 1001212f87, 1234123588

Other accounts can follow these grid accounts. ML models could have accounts on another instance called mlbots.space.

boat_detects_chloe@mlbots.space then follows the tile accounts it's interested in. If it sees a message about an acquisition, it can ask the grid tile to process it using commands.

boat_detects_chloe@mlbots.space: @Z40-0df769@canvas.town /generate 1001212350

Z40-0df769@canvas.town: I generated a new tile for cat_id 1001212350

When it sees a message about a tile being generated, it can then start the model on the new image. When it's done, it can tell the tile what it did, and the tile can 'retweet' it so other subscribers know something happened there:

boat_detects_chloe@mlbots.space: @Z40-0df769@canvas.town I ran a detection on 1001212350, stored in IPH in 627453457345

Z40-0df769@canvas.town: @boat_detects_chloe@mlbots.space ran a detection on 1001212350, stored in IPH in 627453457345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment