Text-to-Image
Diffusers
Safetensors
English
StableDiffusionPipeline
stable-diffusion
lcm
titan-engine
concept-art
rpg
Instructions to use m-h2/titan-art with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use m-h2/titan-art with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("m-h2/titan-art", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("m-h2/titan-art", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]π Titan Art Engine (v1.0) - Fast Inference LCM
Titan Art Engine is a highly optimized, Latent Consistency Model (LCM) distilled text-to-image generative AI. Engineered specifically by Aljokar (Mahmoud Hassan) to serve as the visual backbone for the Titan Connect ecosystem, powering immersive storytelling modules, RPG mechanics, and dynamic environments.
π Model Architecture and Tech Specs
- Base Model: Stable Diffusion 1.5 (Distilled via LCM)
- Parameters: ~860M
- Precision: FP32 / FP16
- Inference Speed: Ultra-fast (< 20s on standard CPU, < 2s on GPU)
- Optimal Steps: 4 to 8 steps
- Optimal CFG Scale: 1.5 to 2.0
π― Intended Use and Ecosystem Integration
This model is fine-tuned for rapid environment and concept art generation without relying on expensive GPU clusters. It is seamlessly integrated into:
- Story Mode Modules: Generating dynamic backgrounds and scenarios based on player choices and visibility logic.
- Thematic Aesthetics: Specifically calibrated for 1940s Noir (e.g., Noir: The Last Interrogation), Neon Cyberpunk (e.g., Neon Panzer), and Medieval Dark Fantasy.
π¨ Style Capabilities
- Textured Oil Painting: Heavy impasto brush strokes for medieval and historical settings.
- Cinematic Noir: High-contrast chiaroscuro, volumetric fog, and rain-slicked streets.
- Gritty Cyberpunk: Neon reflections, dystopian architecture, and synthwave moods.
π» Quick Start (Diffusers API)
Deploy the model locally or on a cloud instance using the diffusers library.
from diffusers import StableDiffusionPipeline, LCMScheduler
import torch
# Initialize the Titan Engine
model_id = "m-h2/titan-art"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32)
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
pipe.to("cpu")
# Generate a scene
prompt = "A medium shot of medieval knights in armor, cinematic lighting, thick texture oil painting"
image = pipe(prompt=prompt, num_inference_steps=4, guidance_scale=1.8).images[0]
image.save("titan_scene.webp")
β οΈ Limitations and Bias
Facial Detail at Distance: Due to the aggressive 4-step CPU limitation for fast inference, distant human faces may lack sharp detail. It is recommended to use silhouettes, faceless characters, or medium/close-up shots for character focus.
Stylization vs. Photorealism: While capable of realistic outputs, the engine's latent space is heavily weighted towards artistic, stylized, and painted aesthetics to maximize player immersion in narrative environments.
- Downloads last month
- 51