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

Сrash when using in notebook #192

Closed
JargeZ opened this issue Dec 24, 2022 · 5 comments
Closed

Сrash when using in notebook #192

JargeZ opened this issue Dec 24, 2022 · 5 comments

Comments

@JargeZ
Copy link

JargeZ commented Dec 24, 2022

Hello!
I am using the following jupiter notebook
https://github.com/deforum/stable-diffusion/blob/main/Deforum_Stable_Diffusion.ipynb

When setting up the environment, the following line causes problems

file = open("./externals/Next_ViT/classification/nextvit.py", "r")

It looks like it wasn't intended to be used this way.

@milesgray
Copy link

You need to run install_next_vit.sh that is in the root of the repo, but it should be run from the root of the repo - not from, in the case of colab, /content

if you cloned using this command (resulting in the repo root being /deps/MiDaS/)
!git clone -q https://github.com/isl-org/MiDaS.git /deps/MiDaS

then you could use this trick to ensure the files end up in the right place
!cd /deps/MiDaS/; bash /deps/MiDaS/install_next_vit.sh

@tsound97
Copy link

Same issue when using colab

@GwendalC
Copy link

I want to take the opportunity to thank you warmly all of you guys, these AI notebooks give in my hands an artistic revolution. Hope you'll fix it soon
Thank you so much !

@thias15
Copy link
Contributor

thias15 commented Jan 2, 2023

We are working on a fix. Thanks for raising this issue.

@thias15
Copy link
Contributor

thias15 commented Jan 2, 2023

Fixed with #194

@thias15 thias15 closed this as completed Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants