Home Artists Posts Import Register

Content

Google Colab has updated its env, so we need to fix a few things for it to work.

Installers for v0.20+ have been updated. Those notebooks should work without any manual fixes.


For people having pytorch\xformers error (xFormers can't load C++/CUDA extensions) and all sorts of import errors like ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor':

1) run Prepare folders & Install cell
2) check "skip install" after running it
3) add a new code cell below it with this code:

!pip uninstall torch xformers -y
!python -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 xformers==0.0.21

and run it.
4) delete or comment that newly added cell to make sure you don't run it every time you restart the env.
5) restart your env and run all as usual

Files

Comments

Igor Wewers

Hey there, thank you for the recent tut you uploaded! i obviously liked and commented on YT. However there's one question that arose: after a successful run i sometimes struggle with the video generation section, due to google colab being in a half active state but active due to background execution. i seem to have never successfully generated a video unfortunately and now I#m asking if you could provide or help me find a solution so i can run this cell independently with my generated frames if some goes south in a 14h run

sxela

But default the output frames are saved on your Google drive. You can also run the notebook and skip the render (there is a checkbox or drop-down option for that in cell 4), and then go to save video cell.

Igor Wewers

okay – thank you also for the fast response! I'm amazed by this notebook! Cheers

sxela

Make sure to join discord, I reply faster there, as Patreon only notifies via email