yuval-alaluf / SAM

Official Implementation for "Only a Matter of Style: Age Transformation Using a Style-Based Regression Model" (SIGGRAPH 2021) https://arxiv.org/abs/2102.02754

Home Page:https://yuval-alaluf.github.io/SAM/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run SAM on CPU

minhtcai opened this issue · comments

Hi, what are the changes I need to make to run this on CPU? Thank you very much!
I've tried use 'cpu' instead of 'cuda', but I got this error while importing pSp:
ImportError: /root/.cache/torch_extensions/py37_cu113/fused/fused.so: cannot open shared object file: No such file or directory

You will need to replace the usage of the CUDA kernels that are used by default with a native implementation.
I hope the following thread can help: rosinality/stylegan2-pytorch#89

Thank you, I got it up and run, making a pull request soon!

commented

@minhtcai could you share your version that runs on CPU?