Idefics3-8B-Llama3 / preprocessor_config.json
andito's picture
andito HF staff
Update preprocessor_config.json
9cb63ce verified
raw
history blame
952 Bytes
{
"do_convert_rgb": true,
"do_image_splitting": true,
"do_normalize": true,
"do_pad": true,
"do_rescale": true,
"do_resize": true,
"image_mean": [
0.5,
0.5,
0.5
],
"image_processor_type": "Idefics3ImageProcessor",
"image_std": [
0.5,
0.5,
0.5
],
"max_image_size": {
"longest_edge": 364
},
"processor_class": "Idefics3Processor",
"chat_template": "<|begin_of_text|>{% for message in messages %}{{message['role'].capitalize()}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}",
"resample": 1,
"rescale_factor": 0.00392156862745098,
"size": {
"longest_edge": 1456
},
"vision_encoder_max_size": 364
}