mrhan1993 / Fooocus-API

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

focus startup parameters #101

Closed Laidawang closed 8 months ago

Laidawang commented 8 months ago

I often use some hyperparameter startup items of fooocus. Can I add it to the api? ex:--all-in-fp16 --always-gpu

konieshadow commented 8 months ago

@Laidawang Can you test it in dev branch? I just add base support for Fooocus cli arguments, and need feedback.

Laidawang commented 8 months ago

image i think the --gpu-device-id not work, but --all-in-fp16 works well, Because I didn’t receive cuda out of memory when I used fp16 for the first time, but I did receive it when I used fp32.

Laidawang commented 8 months ago

The memory cost seems to be increasing. I consume about 6g of memory in main branch, but using fp16 in the dev branch cost about 12g.

konieshadow commented 8 months ago

image i think the --gpu-device-id not work, but --all-in-fp16 works well, Because I didn’t receive cuda out of memory when I used fp16 for the first time, but I did receive it when I used fp32.

Missed a block of code for applying '--gpu-device-id'. Just added.

konieshadow commented 8 months ago

It's on main branch now.

Laidawang commented 8 months ago

cool!!!!