Skip to content

Commit

Permalink
Merge pull request #24 from LabsMaya/xenowits/docs-about
Browse files Browse the repository at this point in the history
Update docs commands
  • Loading branch information
xenowits authored Feb 25, 2024
2 parents 516fe91 + c3ff799 commit aca13f0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
4 changes: 2 additions & 2 deletions book/comparison.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Comparison

We compared our performance by implementing the zk proof of transformations in risc-zero, SP1 and our
hand-rolled custom gnark circuits.
We are currently comparing the performance of generating zk proof of transformations by implementing it
in risc-zero, SP1 and our hand-rolled custom gnark circuits.
7 changes: 3 additions & 4 deletions book/introduction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Introduction

[Maya Labs](https://mayalabs.tech/) is an R&D company that builds tools to ensure the authenticity of digital media content.
<img src="./logo.png" width="300" height="300">

[//]: # (![]&#40;./logo.png&#41;)

<img src="./logo.png" width="300" height="300">
[Maya Labs](https://mayalabs.tech/) is an R&D company that aims to solve the problem of misinformation
and AI deepfake media content by providing tools for verifying the authenticity and provenance of images and videos.
36 changes: 18 additions & 18 deletions book/runmaya.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ Maya CLI provides commands for both `proving` an image transformation and `verif

You can also look at the available transformations for `proving` by running:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove --help
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove --help
```

Similarly, to look at the available transformations for `verifying`, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify --help
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify --help
```

## Crop

To prove that an image is cropped correctly, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove crop \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove crop \
--original-image=./sample/original.png \
--cropped-image=./sample/cropped.png \
--height-start-new=0 \
Expand All @@ -28,7 +28,7 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove crop \

To verify that an image is cropped correctly, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify crop \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify crop \
--cropped-image=./sample/cropped.png \
--proof-dir=proofs
```
Expand All @@ -37,15 +37,15 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify crop \

To prove that an image is correctly flipped vertically, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove flip-vertical \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove flip-vertical \
--original-image=./sample/original.png \
--final-image=./sample/flipped_vertical.png \
--proof-dir=proofs
```

To verify that an image is correctly flipped vertically, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify flip-vertical \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify flip-vertical \
--final-image=./sample/flipped_vertical.png \
--proof-dir=proofs
```
Expand All @@ -54,15 +54,15 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify flip-vertical

To prove that an image is correctly flipped horizontally, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove flip-horizontal \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove flip-horizontal \
--original-image=./sample/original.png \
--final-image=./sample/flipped_horizontal.png \
--proof-dir=proofs
```

To verify that an image is correctly flipped horizontally, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify flip-horizontal \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify flip-horizontal \
--final-image=./sample/flipped_horizontal.png \
--proof-dir=proofs
```
Expand All @@ -71,15 +71,15 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify flip-horizonta

To prove that an image is correctly rotated by 90 degrees clockwise, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove rotate90 \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove rotate90 \
--original-image=./sample/original.png \
--final-image=./sample/rotated90.png \
--proof-dir=proofs
```

To verify that an image is correctly rotated by 90 degrees clockwise, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify rotate90 \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify rotate90 \
--final-image=./sample/rotated90.png \
--proof-dir=proofs
```
Expand All @@ -88,15 +88,15 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify rotate90 \

To prove that an image is correctly rotated by 180 degrees clockwise, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove rotate180 \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove rotate180 \
--original-image=./sample/original.png \
--final-image=./sample/rotated180.png \
--proof-dir=proofs
```

To verify that an image is correctly rotated by 180 degrees clockwise, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify rotate180 \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify rotate180 \
--final-image=./sample/rotated180.png \
--proof-dir=proofs
```
Expand All @@ -105,15 +105,15 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify rotate180 \

To prove that an image is correctly rotated by 270 degrees clockwise, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove rotate270 \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove rotate270 \
--original-image=./sample/original.png \
--final-image=./sample/rotated270.png \
--proof-dir=proofs
```

To verify that an image is correctly rotated by 270 degrees clockwise, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify rotate270 \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify rotate270 \
--final-image=./sample/rotated270.png \
--proof-dir=proofs
```
Expand All @@ -122,7 +122,7 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify rotate270 \

To prove that an image is correctly brightened by a brightness factor `f`, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove brighten \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove brighten \
--original-image=./sample/original.png \
--final-image=./sample/rotated180.png \
--factor=2 \
Expand All @@ -131,7 +131,7 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove brighten \

To verify that an image is correctly brightened by a brightness factor `f`, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify brighten \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify brighten \
--final-image=./sample/rotated180.png \
--factor=2 \
--proof-dir=proofs
Expand All @@ -141,7 +141,7 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify brighten \

To prove that an image is correctly contrasted by a brightness factor `f`, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove constrast \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest prove constrast \
--original-image=./sample/original.png \
--final-image=./sample/contrasted.png \
--factor=2 \
Expand All @@ -150,7 +150,7 @@ docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 prove constrast \

To verify that an image is correctly contrasted by a brightness factor `f`, run:
```shell
docker run --rm -v "$(pwd):/opt/maya" mayalabs/maya:v0.0.1 verify contrast \
docker run --rm -v "$(pwd):/opt/maya" labsmaya/maya:latest verify contrast \
--final-image=./sample/contrasted.png \
--factor=2 \
--proof-dir=proofs
Expand Down

0 comments on commit aca13f0

Please sign in to comment.