-
Notifications
You must be signed in to change notification settings - Fork 6
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
Incompatibility with using the pretrained StyleSAN model (CIFAR-10) #8
Comments
Thank you very much for your interest in our work. Much appreciated. And, apologies for not timely replying to another post from you, #6 (comment) ). Unfortunately, we don't have a resource to address this issue. Is it possible to try using the Dockerfile we're providing (with the original setting |
Thank you for the prompt reply. I tried to set up Docker and I didn't get the previous error anymore, but now I got the error as shown below when I run the following code (the point of my code is to use the pretrained discriminator to give me discriminator confidence scores for synthetic images):
Here is the output I got:
Any insight on why the discriminator would not work would be helpful. |
Have you tried printing |
Yes. when I printed the device for images, labels, and model, I got the following output:
|
The original codebase on which our codebase is based is tricky and then I'm not sure, but it might be good to trace what device the variable san/stylesan-xl/feature_networks/vit.py Lines 56 to 97 in 0e52b14
|
I encountered some issues with trying to use the discriminator of the StyleSAN model pretrained on CIFAR-10. Specifically, I got this error:
After a brief search, it seems that the error is occuring because of a difference in Python/PyTorch version. In my current environment, my Python version is Python 3.12.8, Pytorch version 2.5.1+cu121 and I installed all packages as mentioned in requirements.txt (including dill==0.3.9). The code (loading the discriminator) seemed to work fine until this point. Additionally I realize that the requirements mentioned was to use Python 3.8, but when I created a new environment with Python 3.8 and installed all the requirements according to the requirements.txt file, I got errors as below, when I tried to run the code as follows:
Any insight regarding this would be very helpful. I can also show you the exact code that I am using the discriminator for.
The text was updated successfully, but these errors were encountered: