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

VIME_Training.ipynb #2

Open
edangx100 opened this issue Feb 18, 2023 · 2 comments
Open

VIME_Training.ipynb #2

edangx100 opened this issue Feb 18, 2023 · 2 comments

Comments

@edangx100
Copy link

edangx100 commented Feb 18, 2023

Hi Antons,

When i run this notebook, i have this error at Cell 22:

  • ValueError: Input 0 of layer "sequential_3" is incompatible with the layer: expected shape=(None, 110), found shape=(None, 5, 110)

May I check with you how to resolve this error?

Cell 22 :

vime_s = tf.keras.models.load_model('./vime_self')

# Sequential model to produce embeddings
encoding_model = Sequential(
    [
        Input( num_features),
        vime_s.encoder
    ]
)

dense_model = Sequential(
    [
        Input(num_features),
        Dense(num_features, activation="relu"),
    
    ]
)

# Create corrupted sample
samples = X_val_unlabelled.sample(10)
sample_corrupted = generate_k_corrupted(
    x=samples,
    k=5,
    p_m=0.4
)

val_encoding = encoding_model.predict(sample_corrupted, batch_size=batch_size)
random_encoding = dense_model.predict(sample_corrupted, batch_size=batch_size)
@j-h-CoDe
Copy link

i have same issue with upper comment.
how can i solve it?

@nitzantal
Copy link

Same here

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