Tengfei-Wang / HFGI

CVPR 2022 HFGI: High-Fidelity GAN Inversion for Image Attribute Editing
https://tengfei-wang.github.io/HFGI/
457 stars 50 forks source link

Upgrade to Cog version 0.1 #9

Open chenxwh opened 1 year ago

chenxwh commented 1 year ago

The new version of Cog improves the Python API, along with several other changes. Particularly pydantic is now used for Predictor and the previous version will be deprecated.

This PR upgrades the Replicate demo and API to Cog version >= 0.1. I have already pushed this to Replicate, so you don't need to do anything for the demo to keep working :) https://replicate.com/tengfei-wang/hfgi