Interact through CLI to generate an image and in-paint (modify) parts of the image until you're done!
📌 Note: Meant to be run on a Jetson Orin Nano Developer Kit with updated firmware. https://developer.nvidia.com/embedded/learn/get-started-jetson-orin-nano-devkit#prepare
Process:
- Describe an image
- View the image 🤔
- (need to copy onto host machine)
- Specify the (x,y) coordinates of a bounding box.
- Describe the changes you want within the bounding box.
- View the new image 👀
- (need to copy onto host machine again)
- Repeat until you're satisfied :)
ℹ️ Info: Each image generation will take a few minutes 🫠
- Build docker container
docker build --no-cache -t sketch-artist:latest .- Run docker container
docker run --gpus all --runtime nvidia -it sketch-artist:latest- Within container, run the script
python3 sketch.py- Copy out the images folder onto your host machine. (to view the images, as container has no easy method of viewing images)
# check all containers (`-a` for exited containers too)
docker ps -a
# recursively copy the imgs folder and contents into current working directory on host machine
# e.g., `docker cp b1a845f4f7ab:/sketch-artist/imgs/ .`
docker cp <container_id>:<file or dir path> <local_rel_path>
- diffusion pipeline
segmind/tiny-sd
- stable diffusion inpainting pipeline
runwayml/stable-diffusion-inpainting
- base docker image
dustynv/l4t-pytorch:r36.4.0