diff --git a/docs/en/MMBench.md b/docs/en/MMBench.md index 8f5a036b..02db8b95 100644 --- a/docs/en/MMBench.md +++ b/docs/en/MMBench.md @@ -87,7 +87,7 @@ class MMBenchDataset(Dataset): ## How to construct the inference prompt ```python -if data_sample['context'] is None: +if data_sample['context'] is not None: prompt = data_sample['context'] + ' ' + data_sample['question'] + ' ' + data_sample['options'] else: prompt = data_sample['question'] + ' ' + data_sample['options'] @@ -101,11 +101,15 @@ C. Digital art D. Photo
- +
-``` -prompt = ###Human: Question: Which category does this image belong to? There are several options: A. Oil Painting, B. Sketch, C. Digital art, D. Photo ###Assistant: +```python +prompt = """ +###Human: Question: Which category does this image belong to? +There are several options: A. Oil Painting, B. Sketch, C. Digital art, D. Photo +###Assistant: +""" ``` You can make custom modifications to the prompt