RageshAntony commited on
Commit
ff3026d
·
verified ·
1 Parent(s): 6f5f7a4

rem one diff

Browse files
Files changed (1) hide show
  1. app.py +39 -7
app.py CHANGED
@@ -19,9 +19,6 @@ import glob
19
  from datetime import datetime
20
  from PIL import Image
21
 
22
- from onediffusion.diffusion.pipelines.onediffusion import OneDiffusionPipeline
23
- from onediffusion.models.denoiser.nextdit import NextDiT
24
- from onediffusion.dataset.utils import get_closest_ratio, ASPECT_RATIO_512
25
 
26
  #import os
27
  #cache_dir = '/workspace/hf_cache'
@@ -38,11 +35,46 @@ os.makedirs(OUTPUT_DIR, exist_ok=True)
38
  # Model configurations
39
  MODEL_CONFIGS = {
40
 
41
- "OneDiffusion": {
42
- "repo_id": "lehduong/OneDiffusion",
43
- "pipeline_class": OneDiffusionPipeline,
44
  # "cache_dir" : cache_dir
45
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  }
48
 
 
19
  from datetime import datetime
20
  from PIL import Image
21
 
 
 
 
22
 
23
  #import os
24
  #cache_dir = '/workspace/hf_cache'
 
35
  # Model configurations
36
  MODEL_CONFIGS = {
37
 
38
+ "FLUX": {
39
+ "repo_id": "black-forest-labs/FLUX.1-dev",
40
+ "pipeline_class": FluxPipeline,
41
  # "cache_dir" : cache_dir
42
+ },
43
+ "Stable Diffusion 3.5": {
44
+ "repo_id": "stabilityai/stable-diffusion-3.5-large",
45
+ "pipeline_class": StableDiffusion3Pipeline,
46
+ #"cache_dir" : cache_dir
47
+ },
48
+ "PixArt": {
49
+ "repo_id": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS",
50
+ "pipeline_class": PixArtSigmaPipeline,
51
+ #"cache_dir" : cache_dir
52
+ },
53
+ "SANA": {
54
+ "repo_id": "Efficient-Large-Model/Sana_1600M_1024px_BF16_diffusers",
55
+ "pipeline_class": SanaPipeline,
56
+ # "cache_dir" : cache_dir
57
+ },
58
+ "AuraFlow": {
59
+ "repo_id": "fal/AuraFlow",
60
+ "pipeline_class": AuraFlowPipeline,
61
+ # "cache_dir" : cache_dir
62
+ },
63
+ "Kandinsky": {
64
+ "repo_id": "kandinsky-community/kandinsky-3",
65
+ "pipeline_class": Kandinsky3Pipeline,
66
+ #"cache_dir" : cache_dir
67
+ },
68
+ "Hunyuan": {
69
+ "repo_id": "Tencent-Hunyuan/HunyuanDiT-Diffusers",
70
+ "pipeline_class": HunyuanDiTPipeline,
71
+ #"cache_dir" : cache_dir
72
+ },
73
+ "Lumina": {
74
+ "repo_id": "Alpha-VLLM/Lumina-Next-SFT-diffusers",
75
+ "pipeline_class": LuminaText2ImgPipeline,
76
+ #"cache_dir" : cache_dir
77
+ },
78
 
79
  }
80