XaiJu
sxela
sxela

patreon


For people having pytorch\xformers\torchvision.transforms.functional_tensor error

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

For people having pytorch\xformers\torchvision.transforms.functional_tensor error

Comments

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

Warpfusion

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

Igor Wewers

It's Inside braces () in your output frames names

Warpfusion

Ok, got it thanks! How can one find run number if the env is restarted? sorry if that seems like a dumb question

Igor Wewers

It's either skip checkbox or skip selection in drop-down. If you don't have that, then you're using an older version. Then you will have to start the render cell, cancel it and go to video export, then manually input run number there

Warpfusion

Yes i got my frames saved βœ”οΈ Okay i will double check that as i must have missed it 😀

Igor Wewers

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.

Warpfusion

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

Igor Wewers

Does it work now? without extra tweaks

Warpfusion

Does it work now? without extra tweaks

Warpfusion

All working better now with your code, only if I don't restart it

Footless Pirate

Hi! You can show this steps in scrren shots? Please :D . I cant resolve this problem :(

Pablo Azevedo

This works on v24.6, not v30 or v27. Thanks for the help been trying all day. I hate when Google Colab updated its env lol

Footless Pirate


More Creators