Skip to content

E2gmm_model_fit.py failed to run #572

@AAUHFZ

Description

@AAUHFZ

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions