-
Notifications
You must be signed in to change notification settings - Fork 311
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
CEM_MAFImageExplainer - broken Example Notebook #117
Comments
Hi. Glad to help you figure this out. I believe there was an issue with tensorflow 1.14.0 (I encountered this long ago). I recommend trying tensorflow 1.13.1. And further, I've never run this successfully on CPU - I imagine you will get memory issues. I've only successfully run this notebook using gpu, so if you have access to gpu, please install tensorflow with tensorflow-gpu=1.13.1. |
Thank you very much for your fast reply. At the moment, I don't have access to a gpu, but when I do, I will report back. |
Yes, please try on GPU when you can. I can confirm that I get the same error when running on CPU (more specifically using a tensorflow-gpu installation but forcing to only use CPU using the command os.environ['CUDA_VISIBLE_DEVICES'] = '-1'). However, when using the same installation and using the GPU, it runs fine. As you suggested, this is likely to do requirements of the GAN model in progressive_growing_of_gans that is used in this example to generate a PN. |
Hello, would you mind showing me why the CEM_MAF of the models is empty? I cannot do the step "Download pretrained celebA model" and "Load the downloaded celebA model" (Code chunk 3 and 4 ) |
Hi. Have you resolved your issue? The models folder is empty because the models are too large to include in the AIX360 repository. Rather the block Download pretrained celebA modellocal_path_models = '../../aix360/models/CEM_MAF' will download the model from a fixed link and put it in local_path_models. The link for downloading the model as well as all the attribute models that are needed can be found in the file aix360/algorithms/contrastive/dwnld_CEM_MAF_celebA.py. All relevant urls start with http://aix360.mybluemix.net and this might have been down (going through some support/updates) when you tried. Please try again as I have just run it and downloaded all models without issue. If you still have issues, please provide also the relevant errors you are seeing. |
I'm sorry, but I do not see the errors. Could you please try to post them again? Regarding CelebA, you do not need to know the format. In the notebook, blocks 7 and 8 show how to load and process the data and then to predict given you've loaded the model. R Regarding CPU, it will not work and GPU will be needed for this tool. Also, make sure you read the lines after block 3 of the notebook beginning with "The following steps must be taken to get open-source code: ". You must download the generator and place it in the proper folder as instructed in the notebook. |
Hello, I met a problem about download the sample image when I run the code above in block 6:
I found the URL in function
or maybe I can try other images I found myself, but I don't know whether the two .npy file would be useful? Wish you for reply. Thanks. I solve the problem by access the URL manually, I can download now by |
First, I want to thank you very much for providing this toolkit! I am eager to use your implementation for my own research!
Unfortunately, as I was working through the example "CEM-MAF-CelebA.ipynb" notebook for contrastive explanations, I was stopped dead while obtaining the pertinent negative explanation. (Code chunk 12)
Error message:
...
My setup:
I tried this example twice. Once on a windows machine (CPU only) and on a linux machine (CPU only). Both systems error out at the same step. The installation of aix360 worked both times according to the setup instructions in the git documentation.
My hypothesis:
I am thinking that the pickled CelebA model (karras2018iclr-celebahq-1024x1024.pkl) is the cause of this error.
Maybe the problem lies with the requirements. AIX360 needs
tensorflow=1.14.0
whereas progressive_growing_of_gans requirestensorflow-gpu>=1.6.0
.I would really appreciate it, if you could help me out on this, as I want to know, if it's a model problem, which I can fix with my own models in the future, or if it's something more complicated than that.
Thank you very much in advance!
The text was updated successfully, but these errors were encountered: