Skip to content

Commit 7b79dcb

Browse files
committed
.
1 parent fe3e6e6 commit 7b79dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

verl/workers/fsdp_workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def _process_multi_modal_inputs(self, data: DataProto):
479479
else:
480480
multi_modal_inputs = {}
481481

482-
if multi_modal_inputs['pixel_values'].ndim() == 3:
482+
if multi_modal_inputs['pixel_values'].ndim == 3:
483483
# Some image processor return with batch dim (such as glm4.1), we need to squeeze the pix_value.
484484
# i.e. (1,patch,pix_per_patch) -> (patch,pix_per_patch)
485485
multi_modal_inputs['pixel_values'] = multi_modal_inputs['pixel_values'].squeeze(0)

0 commit comments

Comments
 (0)