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

第五章 运行model_builder test.py一直报错 #90

Open
MA000LLAIN opened this issue Oct 8, 2020 · 0 comments
Open

第五章 运行model_builder test.py一直报错 #90

MA000LLAIN opened this issue Oct 8, 2020 · 0 comments

Comments

@MA000LLAIN
Copy link

[ RUN ] ModelBuilderTest.test_create_faster_rcnn_inception_resnet_v2_model_from_config
INFO:tensorflow:time(main.ModelBuilderTest.test_create_faster_rcnn_inception_resnet_v2_model_from_config): 0.0s
I1008 16:53:06.772712 1116 test_util.py:1973] time(main.ModelBuilderTest.test_create_faster_rcnn_inception_resnet_v2_model_from_config): 0.0s
[ FAILED ] ModelBuilderTest.test_create_faster_rcnn_inception_resnet_v2_model_from_config
[ RUN ] ModelBuilderTest.test_create_faster_rcnn_model_from_config_with_example_miner
INFO:tensorflow:time(main.ModelBuilderTest.test_create_faster_rcnn_model_from_config_with_example_miner): 0.0s
I1008 16:53:06.774710 1116 test_util.py:1973] time(main.ModelBuilderTest.test_create_faster_rcnn_model_from_config_with_example_miner): 0.0s
[ FAILED ] ModelBuilderTest.test_create_faster_rcnn_model_from_config_with_example_miner
[ RUN ] ModelBuilderTest.test_create_faster_rcnn_resnet_v1_models_from_config
INFO:tensorflow:time(main.ModelBuilderTest.test_create_faster_rcnn_resnet_v1_models_from_config): 0.0s
I1008 16:53:06.777708 1116 test_util.py:1973] time(main.ModelBuilderTest.test_create_faster_rcnn_resnet_v1_models_from_config): 0.0s
[ FAILED ] ModelBuilderTest.test_create_faster_rcnn_resnet_v1_models_from_config
[ RUN ] ModelBuilderTest.test_create_rfcn_resnet_v1_model_from_config
INFO:tensorflow:time(main.ModelBuilderTest.test_create_rfcn_resnet_v1_model_from_config): 0.0s
I1008 16:53:06.778707 1116 test_util.py:1973] time(main.ModelBuilderTest.test_create_rfcn_resnet_v1_model_from_config): 0.0s
[ FAILED ] ModelBuilderTest.test_create_rfcn_resnet_v1_model_from_config
[ RUN ] ModelBuilderTest.test_create_ssd_inception_v2_model_from_config
INFO:tensorflow:time(main.ModelBuilderTest.test_create_ssd_inception_v2_model_from_config): 0.0s
I1008 16:53:06.780707 1116 test_util.py:1973] time(main.ModelBuilderTest.test_create_ssd_inception_v2_model_from_config): 0.0s
[ FAILED ] ModelBuilderTest.test_create_ssd_inception_v2_model_from_config
[ RUN ] ModelBuilderTest.test_create_ssd_mobilenet_v1_model_from_config
INFO:tensorflow:time(main.ModelBuilderTest.test_create_ssd_mobilenet_v1_model_from_config): 0.0s
I1008 16:53:06.781706 1116 test_util.py:1973] time(main.ModelBuilderTest.test_create_ssd_mobilenet_v1_model_from_config): 0.0s
[ FAILED ] ModelBuilderTest.test_create_ssd_mobilenet_v1_model_from_config
[ RUN ] ModelBuilderTest.test_session
[ SKIPPED ] ModelBuilderTest.test_session

ERROR: test_create_faster_rcnn_inception_resnet_v2_model_from_config (main.ModelBuilderTest)
test_create_faster_rcnn_inception_resnet_v2_model_from_config (main.ModelBuilderTest)

Traceback (most recent call last):
File "D:/python/code/deeplearning/Deep-Learning-21-Examples-master/chapter_5/research/object_detection/builders/model_builder_test.py", line 329, in test_create_faster_rcnn_inception_resnet_v2_model_from_config
model = model_builder.build(model_proto, is_training=True)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 76, in build
return _build_faster_rcnn_model(model_config.faster_rcnn, is_training)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 217, in _build_faster_rcnn_model
first_stage_only = frcnn_config.first_stage_only
AttributeError: first_stage_only

======================================================================
ERROR: test_create_faster_rcnn_model_from_config_with_example_miner (main.ModelBuilderTest)
test_create_faster_rcnn_model_from_config_with_example_miner (main.ModelBuilderTest)

Traceback (most recent call last):
File "D:/python/code/deeplearning/Deep-Learning-21-Examples-master/chapter_5/research/object_detection/builders/model_builder_test.py", line 388, in test_create_faster_rcnn_model_from_config_with_example_miner
model = model_builder.build(model_proto, is_training=True)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 76, in build
return _build_faster_rcnn_model(model_config.faster_rcnn, is_training)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 217, in _build_faster_rcnn_model
first_stage_only = frcnn_config.first_stage_only
AttributeError: first_stage_only

======================================================================
ERROR: test_create_faster_rcnn_resnet_v1_models_from_config (main.ModelBuilderTest)
test_create_faster_rcnn_resnet_v1_models_from_config (main.ModelBuilderTest)

Traceback (most recent call last):
File "D:/python/code/deeplearning/Deep-Learning-21-Examples-master/chapter_5/research/object_detection/builders/model_builder_test.py", line 264, in test_create_faster_rcnn_resnet_v1_models_from_config
model = model_builder.build(model_proto, is_training=True)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 76, in build
return _build_faster_rcnn_model(model_config.faster_rcnn, is_training)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 217, in _build_faster_rcnn_model
first_stage_only = frcnn_config.first_stage_only
AttributeError: first_stage_only

======================================================================
ERROR: test_create_rfcn_resnet_v1_model_from_config (main.ModelBuilderTest)
test_create_rfcn_resnet_v1_model_from_config (main.ModelBuilderTest)

Traceback (most recent call last):
File "D:/python/code/deeplearning/Deep-Learning-21-Examples-master/chapter_5/research/object_detection/builders/model_builder_test.py", line 454, in test_create_rfcn_resnet_v1_model_from_config
model = model_builder.build(model_proto, is_training=True)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 76, in build
return _build_faster_rcnn_model(model_config.faster_rcnn, is_training)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 217, in _build_faster_rcnn_model
first_stage_only = frcnn_config.first_stage_only
AttributeError: first_stage_only

======================================================================
ERROR: test_create_ssd_inception_v2_model_from_config (main.ModelBuilderTest)
test_create_ssd_inception_v2_model_from_config (main.ModelBuilderTest)

Traceback (most recent call last):
File "D:/python/code/deeplearning/Deep-Learning-21-Examples-master/chapter_5/research/object_detection/builders/model_builder_test.py", line 125, in test_create_ssd_inception_v2_model_from_config
model = self.create_model(model_proto)
File "D:/python/code/deeplearning/Deep-Learning-21-Examples-master/chapter_5/research/object_detection/builders/model_builder_test.py", line 57, in create_model
return model_builder.build(model_config, is_training=True)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 74, in build
return _build_ssd_model(model_config.ssd, is_training)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 127, in _build_ssd_model
is_training)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 106, in _build_ssd_feature_extractor
reuse_weights)
TypeError: init() missing 1 required positional argument: 'conv_hyperparams_fn'

======================================================================
ERROR: test_create_ssd_mobilenet_v1_model_from_config (main.ModelBuilderTest)
test_create_ssd_mobilenet_v1_model_from_config (main.ModelBuilderTest)

Traceback (most recent call last):
File "D:/python/code/deeplearning/Deep-Learning-21-Examples-master/chapter_5/research/object_detection/builders/model_builder_test.py", line 196, in test_create_ssd_mobilenet_v1_model_from_config
model = self.create_model(model_proto)
File "D:/python/code/deeplearning/Deep-Learning-21-Examples-master/chapter_5/research/object_detection/builders/model_builder_test.py", line 57, in create_model
return model_builder.build(model_config, is_training=True)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 74, in build
return _build_ssd_model(model_config.ssd, is_training)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 127, in _build_ssd_model
is_training)
File "D:\python\code\deeplearning\Deep-Learning-21-Examples-master\chapter_5\research\object_detection\builders\model_builder.py", line 106, in _build_ssd_feature_extractor
reuse_weights)
TypeError: init() missing 1 required positional argument: 'conv_hyperparams_fn'


Ran 7 tests in 0.012s

FAILED (errors=6, skipped=1)
报错内容如上所示,我在网上看到别人说出现这种原因是因为python2语言在python3版本上有不兼容的地方所以报的错,我的配置如下:
tensorflow 2.3
python 3.7
有没有人会解决这种问题?谢谢了

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