matgen / README.md
jingyangcarl's picture
update
1c74f53
|
raw
history blame
702 Bytes
metadata
title: Matgen
emoji: 🖼
colorFrom: purple
colorTo: red
sdk: docker
pinned: false
license: mit

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

setup locally

conda create -n matgen python=3.11 conda activate matgen pip install diffusers["torch"] transformers accelerate xformers pip install gradio pip install controlnet-aux

local authen

huggingface-cli login

on using Huggingface ZeroGPU

need to import spaces and the corresponding decorator https://huggingface.co/docs/hub/spaces-zerogpu

also, check the usage of controlnet over zerogpu here: https://huggingface.co/spaces/radames/Enhance-This-HiDiffusion-SDXL/blob/main/app.py