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

error to run #1

Open
ramdhan1989 opened this issue May 6, 2021 · 0 comments
Open

error to run #1

ramdhan1989 opened this issue May 6, 2021 · 0 comments

Comments

@ramdhan1989
Copy link

ramdhan1989 commented May 6, 2021

Hi, this is very good repo. I try to run vector_capsule, matrix_capsule, and alexnet but I have errors :
during running alexnet, there is problem in self.inference()
Traceback (most recent call last): File "main.py", line 42, in <module> tf.app.run() File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\absl\app.py", line 299, in run _run_main(main, args) File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\absl\app.py", line 250, in _run_main sys.exit(main(argv)) File "main.py", line 26, in main model = SiameseNet(tf.Session(), args, HammingSet) File "D:\Ramdhan\SSL\Self-Supervised_Jigsaw_Puzzle-master\models\AlexNet\Siamese.py", line 29, in __init__ self.inference() File "D:\Ramdhan\SSL\Self-Supervised_Jigsaw_Puzzle-master\models\AlexNet\Siamese.py", line 45, in inference Siamese_out.append(AlexNet(x[i], self.keep_prob, self.is_train)) TypeError: 'module' object is not callable

during running vector_capsule I got an error from self.configure_network()

`Errors may have originated from an input operation.
Input Source operations connected to node Optimizer/Siamese/fc_caps/W_0:
Optimizer/gradients/Siamese/fc_caps/map/while/MatMul/Enter_grad/b_acc_3 (defined at D:\Ramdhan\SSL\Self-Supervised_Jigsaw_Puzzle-master\models\CapsNet\Siamese.py:160)

Original stack trace for 'Optimizer/Siamese/fc_caps/W_0':
File "main.py", line 42, in
tf.app.run()
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\absl\app.py", line 299, in run
_run_main(main, args)
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\absl\app.py", line 250, in _run_main
sys.exit(main(argv))
File "main.py", line 26, in main
model = SiameseNet(tf.Session(), args, HammingSet)
File "D:\Ramdhan\SSL\Self-Supervised_Jigsaw_Puzzle-master\models\CapsNet\Siamese.py", line 33, in init
self.configure_network()
File "D:\Ramdhan\SSL\Self-Supervised_Jigsaw_Puzzle-master\models\CapsNet\Siamese.py", line 169, in configure_network
self.summary_list.append(tf.summary.histogram(var.name, grad))
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\summary\summary.py", line 179, in histogram
tag=tag, values=values, name=scope)
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\ops\gen_logging_ops.py", line 329, in histogram_summary
"HistogramSummary", tag=tag, values=values, name=name)
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\framework\ops.py", line 3616, in create_op
op_def=op_def)
File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\framework\ops.py", line 2005, in init
self._traceback = tf_stack.extract_stack()`

during running matrix_capsule I got an error from self.configure_network()

Traceback (most recent call last): File "main.py", line 42, in <module> tf.app.run() File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\absl\app.py", line 299, in run _run_main(main, args) File "C:\Users\Owner\Anaconda3\envs\segmentation_model_keras\lib\site-packages\absl\app.py", line 250, in _run_main sys.exit(main(argv)) File "main.py", line 26, in main model = SiameseNet(tf.Session(), args, HammingSet) File "D:\Ramdhan\SSL\Self-Supervised_Jigsaw_Puzzle-master\models\CapsNet\Siamese.py", line 33, in __init__ self.configure_network() File "D:\Ramdhan\SSL\Self-Supervised_Jigsaw_Puzzle-master\models\CapsNet\Siamese.py", line 146, in configure_network self.loss_func() File "D:\Ramdhan\SSL\Self-Supervised_Jigsaw_Puzzle-master\models\CapsNet\Siamese.py", line 105, in loss_func loss = margin_loss(self.y, self.v_length, self.conf) AttributeError: 'SiameseCapsNet' object has no attribute 'v_length'

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