2U1 / Phi3-Vision-Finetune

An open-source implementaion for fine-tuning Phi3-Vision and Phi3.5-Vision by Microsoft.
Apache License 2.0
62 stars 9 forks source link

Runtime Error #27

Open xones267 opened 5 days ago

xones267 commented 5 days ago

pixel_values = torch.cat([pv for pv in all_pixel_values if pv is not None], dim=0) if any(all_pixel_values) else None RuntimeError: Boolean value of Tensor with more than one value is ambiguous

such error exist while I am using the finetune_lora_vision script

2U1 commented 5 days ago

Does your dataset has mixed modality? I just updated the code for the issue, so you can use it. However I'm not sure this code can handle mixed modality dataset.