Недавно у меня появилась кошка, и, вдохновившись её фотографиями, я решила создать на их основе новые изображения с котами.
Примеры исходных изображений
Принцип работы кода
prompt — у меня есть 5 задач для создания в каждой он создает по 2 фотографии.
Original size 1680x317
Команда import выполняет функцию, аналогичную pip install, однако является встроенным механизмом для подключения необходимых модулей и библиотек в коде.
Original size 1748x146
Мы импортируем модули torch, diffusers, StableDiffusionPipeline, PIL, image и os для обеспечения корректной работы кода и возможности выполнения всех необходимых операций в рамках проекта.
Характеристики для промпта — задаю параметры для генерации изображения с использованием искусственного интеллекта.
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
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key