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

E2gmm_model_fit.py failed to run #572

Open
AAUHFZ opened this issue Aug 25, 2024 · 2 comments
Open

E2gmm_model_fit.py failed to run #572

AAUHFZ opened this issue Aug 25, 2024 · 2 comments

Comments

@AAUHFZ
Copy link

AAUHFZ commented Aug 25, 2024

I encountered the following error while running the e2gmm_model_fit-py command. What should I do

building decoder with 13241 Gaussian, using 64 anchor points
Traceback (most recent call last):
File "/home/yuexin/.conda/envs/eman2/bin/e2gmm_model_fit.py", line 845, in
main()
File "/home/yuexin/.conda/envs/eman2/bin/e2gmm_model_fit.py", line 284, in main
gen_model=build_decoder_CA(pts[None,...], icls, meanzero=False, freeamp=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yuexin/.conda/envs/eman2/bin/e2gmm_model_fit.py", line 37, in build_decoder_CA
x0=tf.keras.Input(shape=(ninp))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yuexin/.conda/envs/eman2/lib/python3.12/site-packages/keras/src/layers/core/input_layer.py", line 154, in Input
layer = InputLayer(
^^^^^^^^^^^
File "/home/yuexin/.conda/envs/eman2/lib/python3.12/site-packages/keras/src/layers/core/input_layer.py", line 47, in init
shape = backend.standardize_shape(shape)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yuexin/.conda/envs/eman2/lib/python3.12/site-packages/keras/src/backend/common/variables.py", line 515, in standardize_shape
raise ValueError(f"Cannot convert '{shape}' to a shape.")
ValueError: Cannot convert '4' to a shape.

@sludtke42
Copy link
Member

sludtke42 commented Aug 25, 2024 via email

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

3 participants
@sludtke42 @AAUHFZ and others