feat flux 取消污点检测 增加类别判断
fix
This commit is contained in:
@@ -91,7 +91,7 @@ class GenerateImage:
|
|||||||
image = result.as_numpy("generated_image")
|
image = result.as_numpy("generated_image")
|
||||||
image_result = cv2.cvtColor(np.squeeze(image.astype(np.uint8)), cv2.COLOR_RGB2BGR)
|
image_result = cv2.cvtColor(np.squeeze(image.astype(np.uint8)), cv2.COLOR_RGB2BGR)
|
||||||
is_smudge = True
|
is_smudge = True
|
||||||
if self.category == "sketch" and self.version == "fast":
|
if self.category == "sketch":
|
||||||
if self.version == "fast":
|
if self.version == "fast":
|
||||||
# 色阶调整
|
# 色阶调整
|
||||||
cutoff = 1
|
cutoff = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user