mvasil / fashion-compatibility

Learning Type-Aware Embeddings for Fashion Compatibility
BSD 3-Clause "New" or "Revised" License
152 stars 42 forks source link

RuntimeError keepdim=True #12

Closed qa276390 closed 5 years ago

qa276390 commented 5 years ago

Since torchvision is not compatible with Pytorch version 0.1.12, I am running this project with torch==1.1.0. And the error occur in line 119. Adding keepdim=True to torch.normcould prevent from that.

RuntimeError: The expanded size of the tensor (64) must  match the existing  size (66) at non-singleton dimension 2. Target sizes: [256, 66, 64]. Tensor sizes: [256, 66]