Skip to content

Commit 74572eb

Browse files
[Fix] Fix Sail VL
1 parent c12c397 commit 74572eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vlmeval/vlm/sail_vl.py

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def build_transform(input_size):
3333

3434

3535
def process_response(response, dataset_name):
36+
if dataset_name is None:
37+
return response
3638
if listinstr(['ChartQA', 'OCRVQA'], dataset_name):
3739
if len(response) >= 1 and response[-1] == '.':
3840
response = response[:-1]

0 commit comments

Comments
 (0)