Skip to content

Error with the example notebook #1

@erhanbas

Description

@erhanbas

I am following the example when I train the model with:

geom_model, morph_model, disc_model, gan_model = \
    train.train_model(training_data=training_data,
                      n_nodes=n_nodes,
                      input_dim=input_dim,
                      n_epochs=n_epochs,
                      batch_size=batch_size,
                      n_batch_per_epoch=n_batch_per_epoch,
                      d_iters=d_iters,
                      lr_discriminator=lr_discriminator,
                      lr_generator=lr_generator,
                      d_weight_constraint=d_weight_constraint,
                      g_weight_constraint=g_weight_constraint,
                      m_weight_constraint=m_weight_constraint,
                      rule=rule,
                      train_loss=train_loss,
                      verbose=True)

I get the following typeError

.../BonsaiNet/layers.py in feature_extractor(inputs, n_nodes, batch_size)
    187     """
    188     print inputs
--> 189     geometry_input = inputs[:, :, :3]
    190     morphology_input = inputs[:, :, 3:]
    191 

TypeError: list indices must be integers, not tuple

it looks like merged input has the "[<tf.Tensor 'merge_1/concat:0' shape=(?, 19, 23) dtype=float32>]" format.

It doesn't look like installation problem just based on the error, any idea what is going on?
Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions