# MLP_gradio **Repository Path**: ma-libo/mlp_gradio ## Basic Information - **Project Name**: MLP_gradio - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-04-25 - **Last Updated**: 2024-04-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MLP_gradio # 项目描述 作业 # 功能 本项目实现了以下功能: 通过gradio部署交互式页面 # 依赖 本项目依赖以下库: torch PIL 等... # 使用 在Pytorch_MLP.py中训练模型,然后使用 torch.save(model.state_dict(), 'best_mlp.pth') 保存模型的”参数“ 然后在gradio_app.py中使用torch.load('模型参数文件路径')载入模型参数,然后实例化模型之后,开启gradio接口,在浏览器访问即可 # 截图 ![输入图片说明](%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-04-25%20171810.png) ## 个人信息 - 学号: 202152320115 - 年级: 2021 - 专业: 智能科学与技术 - 班级: 一班