yrr commited on
Commit Β·
1876385
1
Parent(s): 6128ddf
zero gpu
Browse filesFiles changed (4)
1234567891011121314import gradio as grfrom PIL import Imageimport osos.environ['CUDA_VISIBLE_DEVICES'] = '7'from OmniGen import OmniGenPipelinepipe = OmniGenPipeline.from_pretrained("shitao/tmp-preview")# η€ΊδΎε€ηε½ζ°οΌηζεΎεdef generate_image(text, img1, img2, img3, height, width, guidance_scale):input_images = [img1, img2, img3]# ε»ι€ None1234567891011121314151617import gradio as grfrom PIL import Imageimport osimport spaces# os.environ['CUDA_VISIBLE_DEVICES'] = '7'from OmniGen import OmniGenPipelinepipe = OmniGenPipeline.from_pretrained("shitao/tmp-preview")pipe.to("cuda")# η€ΊδΎε€ηε½ζ°οΌηζεΎε@spaces.GPUdef generate_image(text, img1, img2, img3, height, width, guidance_scale):input_images = [img1, img2, img3]# ε»ι€ None
app.py+4-1
imgs/test_cases/img1.jpgAdded

Large File Pointer Details
- SHA256: f0036a7c89f60de3366afc6fffedf52be91cf91da36b2fb9b1722e641debfeb7
- Pointer size: 131 Bytes
- Size of remote file: 176 kB
imgs/test_cases/img2.jpgAdded

Large File Pointer Details
- SHA256: 999845fb0e781cc8b9db0e9407ad6d4a528dc08677caec3fcc9f6ad6afc718bc
- Pointer size: 131 Bytes
- Size of remote file: 175 kB
imgs/test_cases/img3.jpgAdded

Large File Pointer Details
- SHA256: c1d2ba59e30efb043f77644c2fc9f59082899dcfe6a26cbf803de32c9eafff18
- Pointer size: 131 Bytes
- Size of remote file: 166 kB