Spaces:
Runtime error
Runtime error
File size: 495 Bytes
577d9ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/bin/bash
MODEL_PATH="./weights"
PROMPT="What is happening in the photo?"
IMAGE_FILE_PATH="test_images/image1.jpg"
MAX_TOKENS_TO_GENERATE=300
TEMPERATURE=0.8
TOP_P=0.9
DO_SAMPLE="False"
ONLY_CPU="FALSE"
python3 inference.py \
--model_path "$MODEL_PATH" \
--prompt "$PROMPT" \
--image_file_path "$IMAGE_FILE_PATH" \
--max_tokens_to_generate $MAX_TOKENS_TO_GENERATE \
--temperature $TEMPERATURE \
--top_p $TOP_P \
--do_sample $DO_SAMPLE \
--only_cpu $ONLY_CPU \ |