Stable Diffusion Prompt: Python imports os, random, json, tkinter, and tkinter.fil for GUI apps

Banner

Prompt:

import os import random import json import tkinter as tk from tkinter import filedialog, ttk from PIL import Image, ImageEnhance, ImageTk, ImageSequence # Пути к ресурсам BASE_BEAVER_PATH = "base_beaver.png" BACKGROUNDS_DIR = "backgrounds/" FLAGS_DIR = "flags/" ACCESSORIES_DIR = "accessories/" LEGENDARY_ACCESSORIES_DIR = "legendary_accessories/" OUTPUT_DIR = "output_images/" # Цветовые фильтры меха FUR_COLORS = { "Brown": 1.0, "Dark Brown": 0.8, "Gray": 0.5, "Black": 0.3, "Red": 1.2, "Golden": 1.5 } # Уровни редкости RARITY_TIERS = { "Common": 0.7, "Rare": 0.2, "Legendary": 0.1 } # Создаем папку для результата os.makedirs(OUTPUT_DIR, exist_ok=True) # Загружаем базового бобра base_beaver = Image.open(BASE_BEAVER_PATH).convert("RGBA") # Фильтры: Glow и VHS-эффект def apply_glow(image): return image.filter(ImageEnhance.Brightness(image).enhance(1.3)) def apply_vhs_effect(image): r, g, b, a = image.split() r = r.offset(-3, 0) # Смещение красного канала return Image.merge("RGBA", (r, g, b, a)) # Функция генерации случайного бобра с анимацией def generate_random_variant(selected_fur_color, apply_effects=False, generate_gif=False): bg_path = random.choice(os.listdir(BACKGROUNDS_DIR)) flag_path = random.choice(os.listdir(FLAGS_DIR)) # Выбираем аксессуар с учетом редкости acc_choice = random.choices( ["common", "rare", "legendary"], weights=[RARITY_TIERS["Common"], RARITY_TIERS["Rare"], RARITY_TIERS["Legendary"]] )[0] if acc_choice == "legendary": acc_path = random.choice(os.listdir(LEGENDARY_ACCESSORIES_DIR)) acc_full_path = os.path.join(LEGENDARY_ACCESSORIES_DIR, acc_path) else: acc_path = random.choice(os.listdir(ACCESSORIES_DIR)) acc_full_path = os.path.join(ACCESSORIES_DIR, acc_path) # Загружаем изображения background = Image.open(os.path.join(BACKGROUNDS_DIR, bg_path)).convert("RGBA") flag = Image.open(os.path.join

Tags:

  • Animal
  • Cartoon
  • Product Design
  • model westernrealism

You Might Also Be Interested In

AI Image Generator

Generate images effortlessly from your text prompts. Use any available model or upload your own, with full control over parameters like ControlNet and LoRA for a tailored creative experience.

Stable Diffusion Prompts

Find the best Stable Diffusion prompts to inspire your creativity.

Stable Diffusion 3.5 Large

Stable Diffusion 3.5 Large is an 8-billion-parameter model delivering high-quality, prompt-adherent images up to 1 megapixel, customizable for professional use on consumer hardware.

Stable Diffusion 3.5 Large Turbo

Stable Diffusion 3.5 Large Turbo is a fast, high-quality AI image generator that delivers exceptional prompt adherence in just four steps, optimized for consumer hardware.

Stable Diffusion 3 Medium

Stable Diffusion 3 Medium makes it easy to create high-quality images from text prompts.

Stable Diffusion Web UI

A web interface with the Stable Diffusion AI model to create stunning AI art online.