Skip to content

Commit

Permalink
jpeg instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains authored Jun 3, 2023
1 parent ce56dda commit 0dbd64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def generate_image():
import numpy as np
return np.random.randn(3, 1024, 1024)

# saves a new sampled image every 250ms as out/sampled.webp
# saves a new sampled image every 250ms as out/sampled.jpeg

sample_image_and_save_repeatedly(generate_image, 'out/sampled')

# use pm2 (node process manager) to run this script
# then use nginx to serve out/sampled.web
# then use nginx to serve out/sampled.jpeg
# optionally put behind cloudflare

```
Expand Down

0 comments on commit 0dbd64b

Please sign in to comment.