郭军

Results 2 comments of 郭军

我用cursor生成了一个方法,本地测试可用,方便的话,可以加到api中 # 添加新的接口: 生成带背景图的证件照 @app.post("/idphoto_with_background") async def idphoto_with_background_inference( input_image: UploadFile = File(None), input_image_base64: str = Form(None), height: int = Form(413), width: int = Form(295), human_matting_model: str = Form("modnet_photographic_portrait_matting"), face_detect_model: str...

不好意思,python语言我不会,但是你的代码,我本地报错 ![image](https://github.com/user-attachments/assets/8a61e84e-d39b-4f0b-8f50-2008b0c9466c)