-
Notifications
You must be signed in to change notification settings - Fork 29
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: deconv_length() missing 1 required positional argument: 'output_padding' #13
Comments
Another problem is: "Too many indices for array, skipping files " , with 10 images and mask. but when i load MSCOCO data set with 10 images and mask it working. |
Hi hiteshnitetc, How many channels in your mask image? It should be only one channel as gray scale images. |
@Cheng-Lin-Li Hello, yes my mask images are gray scale only, with channel 1, and keras is set to channel last topology |
I have same issue, code works fine with MSCOCO dataset, but have same error with different datasets. |
TypeError: deconv_length() missing 1 required positional argument: 'output_padding'.. This issue can be solved using keras=2.1.6 with python 3.6.x |
Hello, The data were obtained with And then I run thanks for your help |
Extract from
|
I found the solution : |
Thanku you for your detailed reply, i will try out your suggestions.
…On Mon, Jul 15, 2019 at 8:04 PM fenaux ***@***.***> wrote:
I found the solution :
In test.py
Line 109 weights_path = join(args.data_root_dir, args.weights_path)
then data should not be repeated in weight_path => command line modified
accordingly
python3 ./main.py --test --Kfold 2 --net segcapsr3 --data_root_dir=data
--loglevel 2 --which_gpus=-2 --gpus=0 --dataset mscoco17 --weights_path
saved_models/segcapsr3/split-0_batch-1_shuff-1_aug-0_loss-dice_slic-1_sub--1_strid-1_lr-0.0001_recon-20.0_model_20180705-092846.hdf5
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13?email_source=notifications&email_token=AHJSSSX4HX2I54ARU3TBRRLP7SDG7A5CNFSM4H6J6QBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ54NIQ#issuecomment-511428258>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHJSSSWEEGUGQDGO3J3CQPDP7SDG7ANCNFSM4H6J6QBA>
.
--
Hitesh Tekchandani
PhD Research Scholar
NIT Raipur
India
|
Hi fenaux, Thanks for your findings and suggestions. |
I get the same issue. |
If using the latest version of Keras please use output_padding=None, this seems to solve the issue |
Getting following error.
|
Traceback (most recent call last):
File "./main.py", line 281, in
main(arguments)
File "./main.py", line 95, in main
model_list = create_model(args=args, input_shape=net_input_shape, enable_decoder=True)
File "/home/nd/capsnet/SegCaps-master (copy)/utils/model_helper.py", line 29, in create_model
model_list = CapsNetR3(input_shape, args.num_class, enable_decoder)
File "/home/nd/capsnet/SegCaps-master (copy)/segcapsnet/capsnet.py", line 55, in CapsNetR3
name='deconv_cap_1_1')(conv_cap_4_1)
File "/home/nd/anaconda3/lib/python3.6/site-packages/keras/engine/base_layer.py", line 457, in call
output = self.call(inputs, **kwargs)
File "/home/nd/capsnet/SegCaps-master (copy)/segcapsnet/capsule_layers.py", line 250, in call
out_height = deconv_length(self.input_height, self.scaling, self.kernel_size, self.padding)
TypeError: deconv_length() missing 1 required positional argument: 'output_padding'
The text was updated successfully, but these errors were encountered: