-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: pad_width
must be of integral type.
#45
Comments
@lxyhahaha did you solve the problem? |
@anas-899 I solved it by following code: |
@WenbinYang123
do you know how can I resolve it? |
it turned out that happened because of big batch_size = 16 Thanks |
@WenbinYang123
this is happening at the end of first Epoch 1/200 are you getting same error? |
@anas-899 you can change histogram_freq=10 to histogram_freq=0. |
@lxyhahaha you seem to be using Python 3 where |
@jermenkoo Thank you, I have just solved it by following your suggest. |
Merged a PR that should fix this, let me know if there are still problems, thanks! |
Hello, thank you for your code.
When I try to run the train.py to do a demo, but I get a "TypeError:
pad_width
must be of integral type.", and it points to the "Keras-FCN\utils\SegDataGenerator.py", line 238, in nextx = np.lib.pad(x, ((pad_h / 2, pad_h - pad_h / 2), (pad_w / 2, pad_w - pad_w / 2), (0, 0)), 'constant', constant_values=0.)". I don't know how to fix this problem, can you give me some suggestions?
The text was updated successfully, but these errors were encountered: