hillspen / qgan

QMIND 2021 QGAN Team Repository
1 stars 1 forks source link

mnist_enc/mnist_enc/ #16

Open yuncunlimeiyouyun opened 1 year ago

yuncunlimeiyouyun commented 1 year ago

Hello, I am a beginner. I am very interested in your code. But I have some problems, can you help me? I found that I can't run QGAN on my computer, the primary error occurs on the model(model = keras.models.load_model('mnist_enc/mnist_enc/')). I would like to know how mnist_enc is done. You say PCA method in your paper, where is your code to experiment with PCA? Your code helps me a lot! Looking forward to your reply.

hypercubed-music commented 1 year ago

The trained model is in this folder: https://github.com/hillspen/qgan/tree/main/mnist_enc/mnist_enc. Make sure you have the folder correct in the code and you can use the absolute path if you need to. Unfortunately I don't think we have the code we used to actually train the autoencoder, sorry about that. However, once you load the model, you can run model.summary() to see what the architecture was.

shubhamsonkar01 commented 2 months ago

Hello, while implementing your code i am facing an error (attaced belo), I have tried changing extension of the model it didnt work. when I chnged code to keras.layers.TFSMLayer for .pb extension I got an error :file not found. please help .

ValueError: File format not supported: filepath=mnist_enc/mnist_enc. Keras 3 only supports V3 .keras files and legacy H5 format files (.h5 extension). Note that the legacy SavedModel format is not supported by load_model() in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, use keras.layers.TFSMLayer(mnist_enc/mnist_enc, call_endpoint='serving_default') (note that your call_endpoint might have a different name)

shubhamsonkar01 commented 2 months ago

Hello, I am a beginner. I am very interested in your code. But I have some problems, can you help me? I found that I can't run QGAN on my computer, the primary error occurs on the model(model = keras.models.load_model('mnist_enc/mnist_enc/')). I would like to know how mnist_enc is done. You say PCA method in your paper, where is your code to experiment with PCA? Your code helps me a lot! Looking forward to your reply.

Hi i would like to know if you were able to run the code. If yes can you help me with the autoencoder architecture.

shubhamsonkar01 commented 2 months ago

Screenshot from 2024-05-01 18-28-44

I am facing this problem please help me i am unable to call model.summary(), hence not able to know the exact code for autoencoder.