From 5e57ac14097bbeaf00ac4488a5afce9d6e86e04f Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 8 Apr 2025 21:53:14 +0000 Subject: [PATCH] [U] Update readme usage guide --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6dde338..5289416 100644 --- a/README.md +++ b/README.md @@ -27,15 +27,12 @@ pip install -r requirements.txt Then you can run the inference scripts to generate images: ``` python -# For full model inference -python ./inference.py --model_type full +python -m hi_diffusers "A cat holding a sign that says 'hello world'" -# For distilled dev model inference -python ./inference.py --model_type dev - -# For distilled fast model inference -python ./inference.py --model_type fast +# or you can specify the model +python -m hi_diffusers "A cat holding a sign that says 'hello world'" -m fast ``` + > **Note:** The inference script will automatically download `meta-llama/Meta-Llama-3.1-8B-Instruct` model files. If you encounter network issues, you can download these files ahead of time and place them in the appropriate cache directory to avoid download failures during inference. ## Gradio Demo @@ -43,6 +40,7 @@ python ./inference.py --model_type fast We also provide a Gradio demo for interactive image generation. You can run the demo with: ``` python +pip install gradio python gradio_demo.py ```