Closed ierezell closed 5 years ago
Fixed by leaving torch.set_grad_enabled()
to True
in api.py l.181 (commit 01b75a9)
I don't know why pytorch don't like to have other network inside a dataloader...
Plus : cannot use num_workers in the pytorch dataLoader. Because the loader create multiple threads to load faster --> each thread will call the facealignement network and try to put images to GPU in parrallel which causes troubles.
Anyway with default behaviour (no thread, data loaded in the main process) everything is okay.
Thanks a lot for this beautiful and so usefull Api !
Im also getting this problem, installed it from conda
System : Linux (Archlinux) Package : Installed from pip (pip install face-alignement)
Code (inside a pytorch Dataset):
mp4files correspond to the videos of the dataset VoxCeleb2.
Expected behaviour : Load landmarks normally Real behaviour : Ram keep increasing more and more until process is killed
Everything before works fine and ram is okay, problem arise when loading landmarks.