DCurro / CannyEdgePytorch

189 stars 29 forks source link

runtime error #3

Open ArcherrrrR opened 5 years ago

ArcherrrrR commented 5 years ago

Hello, thanks for your great work!

But there are some errors when I try to use your code. Some runtime errors occur in the forward part, line 120 channel_select_filtered_positive = all_filtered.view(-1)[indices.long()].view(1,height,width) RuntimeError: index -9223372036854775808 is out of bounds for dimension 0 with size 524288

I am a new hand in coding and I can not find the reasons. Can you help me to see why it occurs? Thanks a lot!