CoolFace
Apppublic

DarokarAmey/Image-Manipulation-Comfyui

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes
App README

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

🧠 ComfyCPU Studio (2vCPU Edition)

A lightweight ComfyUI CPU setup running on:

2 vCPUs + 16GB RAM No GPU. Just optimization.

I built this because I genuinely can’t afford GPU upgrades right now. So instead of waiting for better hardware, I optimized everything to run properly on CPU.

This Space focuses on practical workflows that actually work on limited hardware.

You are free to make new workflows and test this space's limitation.

If you want to see whats happening in the workflow, click on "Console" in bottom left.

PS - If it breaks/crashes you just have to click on - "Manager" top right, then on - "Restart" in red box. It should then reboot the Comfyui properly.


πŸš€ Core Workflows

All workflows below are embedded inside the PNG images.

πŸ‘‰ Just drag the image into ComfyUI and the full workflow loads automatically.

Do NOT re-save the PNG or compress it β€” metadata will be lost.


πŸ–Ό 1️⃣ SD 1.5 Image Generation (CPU Optimized)

512Γ—512 Stable Diffusion 1.5 generation tuned for 2vCPU.

  • β€”15–18 steps
  • β€”Euler sampler
  • β€”CFG 6–7
  • β€”Batch size = 1
  • β€”No high-res fix

⏳ Expect ~1–3 minutes per image (this is CPU life).

Drag this into ComfyUI:

[image]


πŸ” 2️⃣ Image Upscale (RealESRGAN + ClearReality)

Enhance low-resolution images using lightweight upscalers.

Perfect for:

  • β€”AI images
  • β€”Old photos
  • β€”Small thumbnails
  • β€”Light detail recovery

Uses:

  • β€”RealESRGAN_x4plus
  • β€”4x-ClearRealityV1

Drag this into ComfyUI:

[image]


βœ‚οΈ 3️⃣ Background Remover (Rembg / U2Net)

Clean background removal using ONNX U2Net.

Great for:

  • β€”Product photos
  • β€”Profile pictures
  • β€”PNG cutouts
  • β€”Editing pipelines

Fast and very stable on CPU.

Drag this into ComfyUI:

[image]


πŸ’‘ Why CPU Only?

Because I’m broke.

Simple.

No GPU. No paid hardware upgrades. Just patience and optimization.

Instead of chasing expensive infrastructure, I focused on:

  • β€”Stable workflows
  • β€”Clean outputs
  • β€”Real-world use cases
  • β€”CPU-safe configuration

This project proves you can still build useful AI tools without a GPU.


βš™οΈ Hardware & Limits

Running on:

  • β€”2 vCPU
  • β€”16GB RAM
  • β€”Docker Space

βœ… What works well

  • β€”512Γ—512 diffusion
  • β€”Face restoration
  • β€”Background removal
  • β€”Upscaling
  • β€”Light batch processing

❌ What does NOT work well

  • β€”SDXL
  • β€”1024Γ—1024 generation
  • β€”Multiple ControlNets
  • β€”High-res fix loops
  • β€”Batch size > 1

Everything here is tuned for CPU survival.


πŸ›  Recommended Settings

For best performance:

  • β€”Resolution: 512Γ—512
  • β€”Steps: 15
  • β€”CFG: 6–7
  • β€”Sampler: Euler
  • β€”Batch size: 1
  • β€”Disable high-res fix

If it feels slow:

  • β€”Reduce steps to 12
  • β€”Try 448Γ—448

🧩 Experimental / In Progress

I’m slowly experimenting with:

  • β€”Face restoration (GFPGAN / CodeFormer)
  • β€”Portrait enhancer pipeline
  • β€”Short video frame upscaling
  • β€”Cleaner UI presets

As long as this stays on 2vCPU, everything will remain CPU-optimized.


🧠 Future Plans

If (very big if) I eventually get access to a GPU:

  • β€”SDXL support
  • β€”Better ControlNet workflows
  • β€”IPAdapter stylization
  • β€”Automation pipelines
  • β€”Cleaner public UI version

For now, this is a CPU lab.