图像分类优化#3278
Closed
MKHQ07 wants to merge 44 commits into
Closed
Conversation
donghaiwang
reviewed
Dec 16, 2025
| # print('模型已加载') | ||
|
|
||
| # 第三步:模拟无人机实时图像输入 | ||
| drone_image_folder = r"C:\Users\hyq52\Desktop\P1\potoh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改概述:
模拟无人机实时图像输入
修改的详细描述
1.原代码使用静态数据集,添加模拟无人机实时采集图像的逻辑(读取本地图片文件夹,模拟无人机摄像头流):
2移除预训练模型,改用原有的轻量化 CNN(减少模型参数,加快训练)。
3.通过Matplotlib实现可视化界面:展示数据集样本、实时绘制训练损失 / 准确率曲线、展示模型预测结果(标注正确 / 错误)。
经过了什么样的测试?
windows11
Python3.17
运行效果
动图、视频、截图等


