Hello, when I run the code, I found this problem.
I think it might be because I'm using python3 and I'm causing the problem. So I modified the definition of pad in the def create_network() in the Class Darknet(nn.Module). Change it to "//",such as pad = (kernel_size-1)//2 if is_pad else 0
This will work successfully.
Hello, when I run the code, I found this problem. I think it might be because I'm using python3 and I'm causing the problem. So I modified the definition of pad in the def create_network() in the Class Darknet(nn.Module). Change it to "//",such as pad = (kernel_size-1)//2 if is_pad else 0 This will work successfully.