IshmaelBelghazi / ALI

Adversarially Learned Inference
MIT License
311 stars 80 forks source link

Preprocess_representation has a bug for me #19

Open MarziEd opened 7 years ago

MarziEd commented 7 years ago

Hi, I was trying to reproduce the representation learning results of paper. Everything works fine except "preprocess_representations" script. It is leading to this error:

File "scripts/preprocess_representations", line 32, in preprocess_svhn bricks=[ali.encoder.layers[-9], ali.encoder.layers[-6], AttributeError: 'GaussianConditional' object has no attribute 'layers'

Any help would be appreciated.

priverasalas commented 7 years ago

Try modifying

bricks=[ali.encoder.layers[-9], ali.encoder.layers[-6], ali.encoder.layers[-6]

for

bricks=[ali.encoder.mapping.layers[-9], ali.encoder.mapping.layers[-6], ali.encoder.mapping.layers[-6]