amazon-science / patchcore-inspection

Apache License 2.0
691 stars 142 forks source link

how to modify code if I use resnet18 backbone? #100

Open sunmengnan opened 2 months ago

sunmengnan commented 2 months ago

There is error here:

return torch.stack(_features, dim=1)

RuntimeError: stack expects each tensor to be equal size, but got [4608, 128] at entry 0 and [4608, 256] at entry 1