Open LiuCharming opened 4 days ago
File "/root/autodl-tmp/minimind-v-master/model/model.py", line 391, in count_vision_proj before = h[i, :image_indices[i][0], :]
IndexError: list index out of range
这跟数据集有关嘛?
数据里有
不清楚我是直接下载下来的后面我看看数据集
是这样的吗空格会影响吗 其他的无效占位符倒是没看到过
Traceback (most recent call last): File "/root/autodl-tmp/minimind-v-master/2-sft_vlm.py", line 229, in
train_epoch(epoch, wandb)
File "/root/autodl-tmp/minimind-v-master/2-sft_vlm.py", line 64, in train_epoch
logits = model(X, Y, image_encoders=image_encoders).logits
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, *kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/minimind-v-master/model/myModel.py", line 424, in forward
h = self.count_vision_proj(tokens=tokens, h=h, image_encoders=image_encoders, seqlen=seqlen)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/minimind-v-master/model/myModel.py", line 394, in count_vision_proj
if len(image_indices[i]) == 0: