ggsDing/SAM-CD

list index out of range

Closed this issue · 4 comments

image

line 177, in forward
featA_s4 = self.Adapter4(featsA[3].clone().to(device1))
IndexError: list index out of range

when I run this program, this place shows the list index out of range, I find the length is 3, I just don't figure out why, could you please help me ?

solved

how too solve?

I have the same problem how to fix it。
image

Hi! After modifying the Ultralytics source files, I still encountered the same issue. Could you please help me?