mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(nodes): disable mosaic fill
Needs a bit of tweaking, leaving the code in just disabled/commented it out.
This commit is contained in:
parent
f0b1bb0327
commit
d6ccd5bc81
@ -100,7 +100,7 @@ async def get_app_deps() -> AppDependencyVersions:
|
|||||||
|
|
||||||
@app_router.get("/config", operation_id="get_config", status_code=200, response_model=AppConfig)
|
@app_router.get("/config", operation_id="get_config", status_code=200, response_model=AppConfig)
|
||||||
async def get_config() -> AppConfig:
|
async def get_config() -> AppConfig:
|
||||||
infill_methods = ["tile", "lama", "cv2", "color", "mosaic"]
|
infill_methods = ["tile", "lama", "cv2", "color"] # TODO: add mosaic back
|
||||||
if PatchMatch.patchmatch_available():
|
if PatchMatch.patchmatch_available():
|
||||||
infill_methods.append("patchmatch")
|
infill_methods.append("patchmatch")
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ logger = InvokeAILogger.get_logger()
|
|||||||
|
|
||||||
|
|
||||||
def get_infill_methods():
|
def get_infill_methods():
|
||||||
methods = Literal["tile", "color", "lama", "cv2", "mosaic"]
|
methods = Literal["tile", "color", "lama", "cv2"] # TODO: add mosaic back
|
||||||
if PatchMatch.patchmatch_available():
|
if PatchMatch.patchmatch_available():
|
||||||
methods = Literal["patchmatch", "tile", "color", "lama", "cv2", "mosaic"]
|
methods = Literal["patchmatch", "tile", "color", "lama", "cv2"] # TODO: add mosaic back
|
||||||
return methods
|
return methods
|
||||||
|
|
||||||
|
|
||||||
@ -145,9 +145,9 @@ class CV2InfillInvocation(InfillImageProcessorInvocation):
|
|||||||
return cv2_inpaint(image)
|
return cv2_inpaint(image)
|
||||||
|
|
||||||
|
|
||||||
@invocation(
|
# @invocation(
|
||||||
"infill_mosaic", title="Mosaic Infill", tags=["image", "inpaint", "outpaint"], category="inpaint", version="1.0.0"
|
# "infill_mosaic", title="Mosaic Infill", tags=["image", "inpaint", "outpaint"], category="inpaint", version="1.0.0"
|
||||||
)
|
# )
|
||||||
class MosaicInfillInvocation(InfillImageProcessorInvocation):
|
class MosaicInfillInvocation(InfillImageProcessorInvocation):
|
||||||
"""Infills transparent areas of an image with a mosaic pattern drawing colors from the rest of the image"""
|
"""Infills transparent areas of an image with a mosaic pattern drawing colors from the rest of the image"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user