DarokarAmey/Image-Manipulation-Comfyui
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:
π 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:
βοΈ 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:
π‘ 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.
