Roop Api is a simple Rest api that allows you to use roop for faceswaping
- Ensure you have python installed on your machine
- Ensure you have micromamba installed on your machine
- Clone the repository
- Run the ansible playbook to install the required dependencies
- Ensure your virtual environment is activated by running the following command
micromamba activate face_api
- Run the following command to start the server
uvicorn main:app --reload
- go to /home/{{user}}/micromamba/envs/myenv/lib/python3.11/site-packages/basicsr/data/degradations.py
- Replace
from torchvision.transforms.functional_tensor import rgb_to_grayscale
from torchvision.transforms.functional import rgb_to_grayscale