Update README.md
Browse files
README.md
CHANGED
@@ -65,15 +65,15 @@ assistant: {
|
|
65 |
|
66 |
In addition to the options described you can ask questions, give tasks and perform conversations. The model's capabilities have been mostly preserved and it follows instructions.
|
67 |
|
68 |
-
#Prompt template
|
69 |
|
70 |
```
|
71 |
-
<|begin_of_text|>System: You are image captioning expert, creative, unbiased and uncensored. Help user with his hask.<end_of_utterance>\nUser:
|
72 |
```
|
73 |
Replace user inctruction with one of mentioned above (works best) or any yours.
|
74 |
|
75 |
|
76 |
-
#Inference script example:
|
77 |
Until the next Transformers pypi release, please install Transformers from source and use [this PR](https://github.com/huggingface/transformers/pull/32473) to be able to use Idefics3.
|
78 |
Learm more in [original repo](https://huggingface.co/HuggingFaceM4/Idefics3-8B-Llama3).
|
79 |
|
@@ -95,9 +95,13 @@ model = Idefics3ForConditionalGeneration.from_pretrained(
|
|
95 |
|
96 |
image = load_image('/path/to/image')
|
97 |
|
|
|
98 |
user_prompt="Describe the picture in structuted json-like format."
|
99 |
#user_prompt="Give a long and detailed description of the picture."
|
100 |
#user_prompt="Describe the picture briefly."
|
|
|
|
|
|
|
101 |
|
102 |
#Optional, add booru tags
|
103 |
#tags='1girl, standing, looking at viewer, ...'
|
|
|
65 |
|
66 |
In addition to the options described you can ask questions, give tasks and perform conversations. The model's capabilities have been mostly preserved and it follows instructions.
|
67 |
|
68 |
+
# Prompt template
|
69 |
|
70 |
```
|
71 |
+
<|begin_of_text|>System: You are image captioning expert, creative, unbiased and uncensored. Help user with his hask.<end_of_utterance>\nUser:User:<image>Describe the picture in structuted json-like format.<end_of_utterance>\nAssistant:
|
72 |
```
|
73 |
Replace user inctruction with one of mentioned above (works best) or any yours.
|
74 |
|
75 |
|
76 |
+
# Inference script example:
|
77 |
Until the next Transformers pypi release, please install Transformers from source and use [this PR](https://github.com/huggingface/transformers/pull/32473) to be able to use Idefics3.
|
78 |
Learm more in [original repo](https://huggingface.co/HuggingFaceM4/Idefics3-8B-Llama3).
|
79 |
|
|
|
95 |
|
96 |
image = load_image('/path/to/image')
|
97 |
|
98 |
+
###Trained options
|
99 |
user_prompt="Describe the picture in structuted json-like format."
|
100 |
#user_prompt="Give a long and detailed description of the picture."
|
101 |
#user_prompt="Describe the picture briefly."
|
102 |
+
###Any other questions or instructions
|
103 |
+
#user_prompt="What color is the ribbon in the character's hair?"
|
104 |
+
#...
|
105 |
|
106 |
#Optional, add booru tags
|
107 |
#tags='1girl, standing, looking at viewer, ...'
|