Longread translated automatically
Original size 1140x1600

Scrappy Generator

PROTECT STATUS: not protected

Patchwork—also known as scrap quilting—is a creative style characterized by sewing fabric scraps and/or pieces of diverse materials into a cohesive mosaic.

The main feature of patchwork is the uniqueness of each individual piece that forms the larger mosaic. In this project, I aimed to train a model capable of generating such unique fragments. The resulting generations could, in theory, be used as «sketches» for actual quilt patterns or knitting diagrams.

Model Training

For reference, photos of common patchwork fragment types, as well as examples of so-called granny squares—simple knitted squares often used in place of direct fabric scraps in quilting—were utilized. A dataset of 40 images was used for training.

Learning References (Patchwork)

Original size 659x653

Learning References (Patchwork)

Learning References (Granny Square)

Original size 722x722

Learning References (Granny Square)

The project was assembled on the Google Colab platform, utilizing libraries provided in the source code. Stable Diffusion served as the primary model, fine-tuned using LoRa and DreamBooth.

Original size 1631x240
Original size 1763x513

The image descriptions in the dataset were automatically generated using the BLIP image captioning model, as well as predefined prefixes and suffixes.

Original size 1618x318
Original size 1640x711

Before starting the course, all dataset images were converted into a uniform, compact format using a dedicated function to simplify the process.

Original size 1664x558

Generations

In conclusion, every generated image proved to be truly unique, consistent with the specified style, and feasible to produce.

However, the model has certain characteristics: when requesting a fragment featuring an animal or object, the model performs significantly better when the «patchwork» parameter is specified. Conversely, when generating colors, the model prefers to use the granny square technique, and patchwork design variations turn out mediocre. Furthermore, the dataset used to train the model contained examples of both requests across both techniques.

The exception to this rule is roses. A request to create a design featuring a rose yields a consistently good result regardless of the specified technique.

Original size 512x512
Original size 512x512
Original size 512x512
Original size 512x512
Scrappy Generator
София Пугачева создала генератор уникальных фрагментов для пэтчворка, которые могут использоваться как наброски для выкроек или схем вязания. Модель обучалась на датасете из 40 изображений и показала различную эффективность при генерации фрагментов с животными, цветами и розами.
Project description created with AI
Project created at 23.03.2026
More projects in artificial intelligence
Аминат Гадаева создала серию изображений, где известные хоррор-персонажи интерпретированы в стиле детского рисунка с помощью генеративной модели Stable Diffusion. Проект сочетает наивный визуальный язык с пугающими образами, подчёркивая контраст между простотой формы и тревожностью содержания.
Елисей Анищенков обучил генеративную нейросеть созданию реалистичных изображений десертов с использованием Python и искусственного интеллекта. Проект включает в себя датасет из 28 изображений формата 1:1 в высоком разрешении, использованных для обучения модели Stable Diffusion XL.
Александра Арефьева обучила нейросеть генерировать изображения средневековых птиц на основе собственных данных. Проект включает генерацию птиц в различных цветах и с элементами средневековой иллюстрации, включая некоторые неточности в виде лишних конечностей.
Софья Смоленкова обучила генеративную нейросеть Stable Diffusion создавать изображения в собственном стиле, используемом в дизайнах для онлайн-школы. Проект включает серию изображений, сгенерированных с применением коллажной техники и учебной тематики, с частичным сохранением текстур и стилистики оригинальных работ.
We use cookies to improve the operation of the HSE website and to enhance its usability. More detailed information on the use of cookies can be fou...
Show more