Skip to main content

ComfyReality 🎨✨

Professional AR/USDZ Content Creation Pipeline for ComfyUI

Python 3.12+ UV MIT License ComfyUI

ComfyReality transforms ComfyUI into a professional AR content creation studio. Generate stunning AR stickers, remove backgrounds with precision, and export production-ready USDZ files - all optimized for iOS ARKit and mobile devices.

✨ Features

  • 🎨 FLUX/SDXL AR Sticker Generation - Create stunning stickers optimized for AR viewing
  • ✂️ Advanced SAM2 Segmentation - Precise background removal with clean alpha channels
  • 📦 Professional USDZ Export - iOS ARKit-ready files with proper optimization
  • 🚀 GPU-Accelerated Pipeline - Optimized for NVIDIA GPUs with CUDA support
  • 📱 Mobile-First Design - AR content optimized for phones and tablets
  • 🔧 Modern Python Standards - Built with UV, Ruff, and 2025 best practices

🚀 Quick Start

Installation

Using UV (Recommended):

uv add comfy-reality

Using pip:

pip install comfy-reality

The ComfyUI nodes will be automatically available after installation - no manual setup required!

Available Nodes

  1. 🎨 AR Sticker Generator - Generate AR-optimized stickers using FLUX/SDXL
  2. ✂️ SAM2 Background Remover - Advanced segmentation and background removal
  3. 📦 USDZ AR Exporter - Export production-ready AR files for iOS

🎛️ Node Documentation

ARStickerGenerator

Generates high-quality stickers optimized for AR viewing using state-of-the-art diffusion models.

Parameters:

  • prompt: Text description of desired sticker
  • sticker_style: Style preset (cartoon, realistic, artistic, etc.)
  • background_style: Background handling (clean_white, transparent, etc.)
  • width/height: Output dimensions (recommended: 1024x1024)
  • guidance_scale: Control prompt adherence (7.5 typical)
  • num_inference_steps: Quality vs speed tradeoff (20-50)

SAM2Segmenter

Advanced background removal using Meta's Segment Anything Model 2.

Features:

  • Automatic subject detection
  • Clean alpha channel generation
  • Configurable edge smoothing
  • Multiple output formats

USDZExporter

Professional USDZ file creation for iOS ARKit compatibility.

Specifications:

  • Y-up coordinate system
  • 64-byte alignment
  • <25MB file size optimization
  • <25K vertex count limits
  • 1024×1024 texture optimization

🛠️ Development

Prerequisites

  • Python 3.12+
  • UV package manager
  • NVIDIA GPU with CUDA (recommended)

Development Setup

# Clone repository
git clone https://github.com/gerred/stickerkit.git
cd stickerkit/comfy-reality

# Install dependencies
uv sync --extra dev

# Install pre-commit hooks
pre-commit install

# Run tests
uv run pytest

# Lint code
uv run ruff check
uv run ruff format

Project Structure

comfy-reality/
├── src/comfy_reality/     # Main package
│   ├── nodes/            # ComfyUI nodes
│   ├── models/           # Model loaders
│   └── utils/            # Shared utilities
├── tests/                # PyTest test suite
├── docs/                 # Documentation
├── examples/             # Example workflows
└── pyproject.toml        # Modern Python project config

📊 Performance

  • Sticker Generation: ~10-30 seconds (depends on steps, GPU)
  • Background Removal: ~2-5 seconds per image
  • USDZ Export: ~1-3 seconds per file
  • Memory Usage: ~6-12GB VRAM (varies by model)

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

🔗 Links


Made with ❤️ for the ComfyUI community

Metadata

Release files for comfy-reality 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for comfy-reality 0.0.1
File Size Uploaded Provenance
comfy_reality-0.0.1.tar.gz 110.7 kB Without provenance Details

Release files / comfy_reality-0.0.1.tar.gz

Download URL comfy_reality-0.0.1.tar.gz
Size 110.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eedc3e140ba7b189f923a932e115889117ffc9d5e6534d0ed597d4c80cb36382
BLAKE2b-256 checksum
How to use checksums
9cafcb71e7f76dd1b718691e1de2a61f3d56179533440708f9e21c86bf7a1a89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.15

Security for comfy-reality 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page