Skip to content

Commit

Permalink
feat: Disable enhance image size limit.
Browse files Browse the repository at this point in the history
屏蔽AI增强图片大小限制

Log: 屏蔽AI增强图片大小限制
Change-Id: Id2d75fcb69d83843ec7ffa01a26ce3a1bf05944b
  • Loading branch information
rb-union committed Dec 7, 2023
1 parent 46a82b7 commit 058d65d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions libimageviewer/service/aimodelservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,6 @@ AIModelService::Error AIModelService::modelEnabled(int modelID, const QString &f
}

switch (modelID) {
// 待定需求,模糊背景和删除背景不设置限制
#if 0
case AIModelServiceData::BackgroundBlur:
Q_FALLTHROUGH();
case AIModelServiceData::BackgroundCut:
return NoError;
#endif
case AIModelServiceData::SuperResol: {
const int resolLimitWidth = 512;
const int resolLimitHeight = 512;
Expand All @@ -292,6 +285,8 @@ AIModelService::Error AIModelService::modelEnabled(int modelID, const QString &f
break;
}
default: {
// 暂时不再需要看图前端进行图片大小限制,屏蔽此处判断
#if 0
const int normalLimitWidth = 2160;
const int normalLimitHeight = 1440;

Expand All @@ -305,6 +300,7 @@ AIModelService::Error AIModelService::modelEnabled(int modelID, const QString &f
return PixelSizeError;
}
}
#endif
break;
}
}
Expand Down

0 comments on commit 058d65d

Please sign in to comment.