Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature]后端实现自定义模型训练 & [fix]前端去除冗余代码,规范样式命名 #30

Merged
merged 20 commits into from
Oct 10, 2022

Conversation

yibaikuai
Copy link
Member

  • 前端去除冗余代码,规范样式命名
  • 修复在线地图先使用目标检测后使用场景分类报错的bug
  • 前端复用工具类函数
  • 后端实现自定义权重训练

terayco and others added 18 commits September 28, 2022 20:52
* 新增场景分类功能

* 1.修复绘制目标框不准确的bug
2.修复图像偏色问题
3.将目标框颜色改为更显眼的紫色

* 修改滑窗步长,加快推理速度

* 1.修改场景分类读取图像的接口,改用paddelrs中的decode_image
2.修改地物分类结果图像的颜色显示
3.去除地物分类任务中的冗余代码

* 删除地物分类中冗余代码

* 1.修改错误函数名(批量处理)
2.删除渲染函数中冗余代码
3.改用cv2统一对图像进行操作处理,去除skimage的引用

* 1.变化检测滑窗推理部分改为PaddleRS原生的slider_predict()方法
2.滑窗尺寸和步长改为可调的
3.修改目标检测代码中的不恰当注释
4.修改错误函数名(上次没看到,梅开二度)

* 新增图像修复功能

* lint
# Conflicts:
#	frontend/src/components/AsideVue.vue
#	frontend/src/utils/getUploadImg.js
#	frontend/src/utils/gosomewhere.js
#	frontend/src/views/Home.vue
#	frontend/src/views/history/History.vue
#	frontend/src/views/mainfun/Classify.vue
#	frontend/src/views/mainfun/DetectChanges.vue
#	frontend/src/views/mainfun/RestoreImgs.vue
[Feature]后端实现自定义权重训练
Copy link
Member

@jscslld jscslld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

前端总体没问题,后续可尝试支持tif格式的地理图像的上传

const fileSuffix = file.name.substring(file.name.lastIndexOf(".") + 1)
const whiteList = ['jpg', 'jpeg', 'png', 'JPG', 'JPEG']
if (whiteList.indexOf(fileSuffix) === -1) {
this.$message.error("上传只能是 jpg,jpeg,png,JPG,JPEG格式,请重新上传");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后续可以考虑是否支持tif格式的图片的上传

@Bobholamovic Bobholamovic merged commit ba932ad into PaddleCV-SIG:develop Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants