mrhan1993 / Fooocus-API

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

Replicate Generation failing #299

Closed NaveenGTK closed 3 weeks ago

NaveenGTK commented 2 months ago

Hello, thank you for the amazing work. Recently I pushed this model to Replicate with a custom checkpoint. But when I try to generate images I get the following error:

**Prediction failed.

ImageGenerationParams.init() missing 3 required positional arguments: 'save_meta', 'meta_scheme', and 'save_name'**

Error log:

Traceback (most recent call last): File "/root/.pyenv/versions/3.11.9/lib/python3.11/site-packages/cog/server/worker.py", line 217, in _predict result = predict(**payload) ^^^^^^^^^^^^^^^^^^ File "/src/predict.py", line 259, in predict params = ImageGenerationParams( ^^^^^^^^^^^^^^^^^^^^^^ TypeError: ImageGenerationParams.__init__() missing 3 required positional arguments: 'save_meta', 'meta_scheme', and 'save_name'

mrhan1993 commented 2 months ago

Do not use latest version, tag v0.4.0.3 is the latest version have been tested and work well on replicate.