在使用 fastapi 服务器时,在 tcache2 中发现了 free() 错误: 发现了双重释放
我只是使用以下代码来提供一个 http 服务器用于测试: `import yaml import uvicorn from fastapi import FastAPI, UploadFile, File from model_task.models.layout_detection.yolo import LayoutDetectionYOLO app = FastAPI() with open('config.yaml', 'r', encoding='utf8') as file: config = yaml.safe_load(file) layout_config = config['tasks']['layout_detection']['model_config'] layout_model = LayoutDetectionYOLO(layout_config) @app.post("/test") async def test_inference(file: UploadFile = File()): image = await file.read() ori_layout_res = layout_model.predict([image])[0] return {"result": ori_layout_res} if __name__ == '__main__': uvicorn.run(app='__main__:app', host='0.0.0.0', port=15000) 但是出现了以下错误: <img width="906" height="260" alt="Image" src="https://GitHub.com/user-attachments/assets/b6b638e1-9f46-4d1b-b125-99c262112127" /> 我不知道为什么 ...希望有人能帮助一下,提前感谢!
内容来源: opendatalab/PDF-Extract-Kit