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

Colab notebook fails to run: PytorchVersionError #54

Closed
matthiasgeihs opened this issue Jun 5, 2023 · 5 comments
Closed

Colab notebook fails to run: PytorchVersionError #54

matthiasgeihs opened this issue Jun 5, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@matthiasgeihs
Copy link

Cell 4 of the Colab notebook hello_torch_dreams fails to run on the current default Colab environment.
The error is:

PytorchVersionError: Expected pytorch to have version 1.8.x or higher but got: 2.0.1+cu118
@Mayukhdeb
Copy link
Owner

Hi @matthiasgeihs, thanks for pointing out this issue. I will fix it ASAP and roll out a new version.
It might also contain some other interface changes, about which I will inform you after the update has been released.

@Mayukhdeb Mayukhdeb self-assigned this Jun 6, 2023
@Mayukhdeb Mayukhdeb added the bug Something isn't working label Jun 6, 2023
@Mayukhdeb
Copy link
Owner

Hi @matthiasgeihs. I have fixed the error you were facing.
You can install the latest dev version of torch-dreams with this command:

pip install git+https://github.com/Mayukhdeb/torch-dreams

Please note that I've also been working on a new upgrade to torch-dreams which involves batched image parameters. Hence there is a small interface change that you have to make on your custom objectives:

image

I have also updated the colab notebook to use the dev version for now. So it should run through without any problems.

@matthiasgeihs
Copy link
Author

Great, thanks for taking a look. Will try that out when I find some time. 🙏

@matthiasgeihs
Copy link
Author

OK, this works now. 👍

@Mayukhdeb
What would be very helpful for someone like me who is not already familiar with the method:
Have some explanations between the commands in the notebook, what exactly is happening there.

I got aware of the project as I was interested in explainable AI, but what I currently see is just some nice looking pictures being produced. I have a very rough idea of what might be happening under the hood, but tbh I don't understand much at the moment. What is the minimal example exactly demonstrating? I think a few high-level comments would really help! 🙂

That being said, the issue seems solved.

@Mayukhdeb
Copy link
Owner

Thank you for the feedback @matthiasgeihs! I will try to improve the readme to include explanations for what each snippet is doing. This is a good idea 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants