Commit
·
bb834c6
1
Parent(s):
e22a845
fix README
Browse files
README.md
CHANGED
|
@@ -36,6 +36,22 @@ To run the demo, run the following commands:
|
|
| 36 |
+ Start Gradio Web Server: `python -m serve.gradio_web_server --controller http://localhost:10000 --model-list-mode reload --share`
|
| 37 |
+ Run interactive demo: `CUDA_VISIBLE_DEVICES=0 python -m interactive_demo --port 40000 --model_dir <PATH TO MODEL CKPT>`
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
## Contributing
|
| 40 |
|
| 41 |
Before committing to the repository, *make sure to set up your dev environment!*
|
|
|
|
| 36 |
+ Start Gradio Web Server: `python -m serve.gradio_web_server --controller http://localhost:10000 --model-list-mode reload --share`
|
| 37 |
+ Run interactive demo: `CUDA_VISIBLE_DEVICES=0 python -m interactive_demo --port 40000 --model_dir <PATH TO MODEL CKPT>`
|
| 38 |
|
| 39 |
+
When running the demo, the following parameters are adjustable:
|
| 40 |
+
+ Temperature
|
| 41 |
+
+ Max output tokens
|
| 42 |
+
|
| 43 |
+
The default interaction mode is Chat, which is the main way to use our models. However, we also support a number of other
|
| 44 |
+
interaction modes for more specific use cases:
|
| 45 |
+
+ Captioning: Here, you can simply upload an image with no provided prompt and the selected model will output a caption. Even if a prompt
|
| 46 |
+
is input by the user, it will not be used in producing the caption.
|
| 47 |
+
+ Bounding Box Prediction: After uploading an image, simply specify a portion of the image for which bounding box coordinates are desired
|
| 48 |
+
in the prompt and the selected model will output corresponding coordinates.
|
| 49 |
+
+ Visual Question Answering: Selecting this option is best when the user wants short, succint answers to a specific question provided in the
|
| 50 |
+
prompt.
|
| 51 |
+
+ True/False Question Answering: Selecting this option is best when the user wants a True/False answer to a specific question provided in the
|
| 52 |
+
prompt.
|
| 53 |
+
|
| 54 |
+
|
| 55 |
## Contributing
|
| 56 |
|
| 57 |
Before committing to the repository, *make sure to set up your dev environment!*
|