Skip to content

lucataco/cog-sdxl-panoramic-inpaint

Repository files navigation

sdxl-panoramic-inpaint Cog model

This is a custom model implementing a workflow to get a seamless 360 sdxl image, as a Cog model. Cog packages machine learning models as standard containers.

First, download the pre-trained weights:

cog run script/download-weights

Then, you can run predictions:

cog predict -i prompt="tron world"

Workflow:

1.SDXL image 1024x512

alt text

  1. Cut image in half vertically, swap left and right sections

alt text

  1. GFPGAN upscale 2x

alt text

  1. Crop out 1024x1024 middle section to inpaint seam

alt text

  1. Put flush seam back into upscaled image

alt text

About

Attempt at cog wrapper for Panoramic SDXL inpainted image

Topics

Resources

Stars

Watchers

Forks

Languages