Question about generate_data.py
hyunseoki opened this issue · comments
Hyunseok, Lee commented
Although it does not affect the final results,
please consider this minor change in your code to reflect the original paper contents
It will be helpful for debugging
paper :
## bias is basically neglected in tensorflow
onehots = np.pad(np.eye(3136).reshape((3136, 56, 56, 1)), ((0,0), (4,4), (4,4), (0,0)), "constant");
images = tf.nn.conv2d(onehots, np.ones((9, 9, 1, 1)), [1]*4, "SAME")
code as is :
CoordConv/experiments/generate_data.py
Line 25 in 647bcfe
code to be:
conv_layer = nn.Conv2d(in_channels=1, out_channels=1, kernel_size=(9, 9), padding=4, stride=1, bias=False)
Chao Wen commented
Thanks for your reminder, I will try to update the relevant code.