You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-19Lines changed: 16 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -454,31 +454,25 @@ The following is a demo of image inference
454
454
455
455
456
456
## 📝 Pixi Cheat Sheet
457
-
Here are some useful tasks you can run with Pixi.
457
+
Here are some useful tasks you can run with Pixi. You must install pixi on your machine first. See the [installation](#-installation) section for more details.
458
+
For all the commands below, you can add `-e cuda`if you have a CUDA enabled GPU on your machine.
458
459
459
-
Run a quickstart
460
+
Run a quickstart to check if your environment is setup correctly. By default, this will run in a CPU environment.
460
461
```bash
461
462
pixi run quickstart
462
463
```
463
464
464
-
Smoke test the package
465
-
```bash
466
-
pixi run -e cpu quickstart
467
-
```
465
+
or to run in a CUDA enabled environment
468
466
```bash
469
467
pixi run -e cuda quickstart
470
468
```
471
469
472
-
Train a model
473
-
```bash
474
-
pixi run -e cuda train-model
475
-
```
476
-
470
+
Live inference with pretrained model on webcam
477
471
```bash
478
-
pixi run -e cpu train-model
472
+
pixi run -e cuda live-inference-pretrained --webcam
479
473
```
480
474
481
-
Run live inference
475
+
Run live inference on a custom onnx model
482
476
```bash
483
477
pixi run -e cuda live-inference --onnx model.onnx --webcam --provider cuda --class-names classes.txt --inference-size 640
484
478
```
@@ -495,11 +489,6 @@ pixi run -e cuda live-inference --onnx model.onnx --webcam --provider cuda --cla
495
489
pixi run -e cpu live-inference --onnx model.onnx --input video.mp4 --class-names classes.txt --inference-size 320
496
490
```
497
491
498
-
Live inference with pretrained model on webcam
499
-
```bash
500
-
pixi run -e cuda live-inference-pretrained --webcam
501
-
```
502
-
503
492
Launch Gradio app
504
493
```bash
505
494
pixi run gradio-demo --model "best_prep.onnx" --classes "classes.txt" --examples "Rock Paper Scissors SXSW.v14i.coco/test"
pixi run export --config config.yml --checkpoint model.pth --output model.onnx
515
513
```
516
514
517
515
518
-
519
516
## ⚠️ Disclaimer
520
517
I'm not affiliated with the original DEIM authors. I just found the model interesting and wanted to try it out. The changes made here are of my own. Please cite and star the original repo if you find this useful.
0 commit comments