mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
508 stars 135 forks source link

Deploying on EC2 #266

Open annie-bhaiya opened 3 months ago

annie-bhaiya commented 3 months ago

I'm not able to deploy it on ec2. It says that they don't have CUDA GPUs, but google says that the hardware does have that!

mrhan1993 commented 3 months ago

I am not sure as I have no environment on Google cloud, but you can try to install cuda follow cuda-downloads and try again

PlexPt commented 3 months ago

you need a GPU Instance. Like p2, p3 p4d, p5, g3, g4, g5. And Select this AMI: Deep Learning OSS Nvidia Driver AMI GPU PyTorch 2.1.0 image

Then follow the command below to start:

git clone  https://github.com/konieshadow/Fooocus-API
cd Fooocus-API
pip install -r requirements.txt 
python main.py