Skip to content
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

Code Help #1

Open
LittleMaWen opened this issue Sep 12, 2019 · 0 comments
Open

Code Help #1

LittleMaWen opened this issue Sep 12, 2019 · 0 comments

Comments

@LittleMaWen
Copy link

I run "python runner.py --mode train --model mobilenet-v1 --class_map_path class_map.csv --train_clip_dir train_curated --train_csv_path train_curated.csv --train_dir train_dir".

Traceback (most recent call last):
File "runner.py", line 225, in
tf.app.run(main)
File "/home/dcase/anaconda3/envs/xytensorflow/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/dcase/anaconda3/envs/xytensorflow/lib/python3.7/site-packages/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/dcase/anaconda3/envs/xytensorflow/lib/python3.7/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "runner.py", line 205, in main
warmstart_exclude_scopes=split_csv(flags.warmstart_exclude_scopes))
File "/home/dcase/mawen/multi-label/baseline/train.py", line 28, in train
hparams=hparams, epoch_batches=epoch_batches, training=True)
File "/home/dcase/mawen/multi-label/baseline/model.py", line 169, in define_model
embedding = define_mobilenet_v1(features=features, hparams=hparams)
File "/home/dcase/mawen/multi-label/baseline/model.py", line 82, in define_mobilenet_v1
net = slim.conv2d(net, 16, kernel_size=3, stride=1, padding='SAME')
File "/home/dcase/anaconda3/envs/xytensorflow/lib/python3.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 182, in func_with_args
return func(*args, **current_args)
File "/home/dcase/anaconda3/envs/xytensorflow/lib/python3.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1159, in convolution2d
conv_dims=2)
File "/home/dcase/anaconda3/envs/xytensorflow/lib/python3.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 182, in func_with_args
return func(*args, **current_args)
File "/home/dcase/anaconda3/envs/xytensorflow/lib/python3.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1025, in convolution
(conv_dims + 2, input_rank))
TypeError: %d format: a number is required, not NoneType

I don't know how to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant