Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Commit
•
de2e902
1
Parent(s):
7b3bb19
Rename pipeline.py to custom_pipeline.py
Browse files
pipeline.py → custom_pipeline.py
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
import torch
|
2 |
import numpy as np
|
3 |
from diffusers import FlowMatchEulerDiscreteScheduler
|
4 |
-
from diffusers import
|
5 |
from diffusers.pipelines.flux.pipeline_output import FluxPipelineOutput
|
6 |
from typing import Any, Callable, Dict, List, Optional, Union
|
7 |
from PIL import Image
|
@@ -55,7 +55,7 @@ def prepare_timesteps(
|
|
55 |
return timesteps, num_inference_steps
|
56 |
|
57 |
# FLUX pipeline function
|
58 |
-
class FluxWithCFGPipeline(
|
59 |
|
60 |
@torch.inference_mode()
|
61 |
def generate_images(
|
|
|
1 |
import torch
|
2 |
import numpy as np
|
3 |
from diffusers import FlowMatchEulerDiscreteScheduler
|
4 |
+
from diffusers import FluxPipeline
|
5 |
from diffusers.pipelines.flux.pipeline_output import FluxPipelineOutput
|
6 |
from typing import Any, Callable, Dict, List, Optional, Union
|
7 |
from PIL import Image
|
|
|
55 |
return timesteps, num_inference_steps
|
56 |
|
57 |
# FLUX pipeline function
|
58 |
+
class FluxWithCFGPipeline(FluxPipeline):
|
59 |
|
60 |
@torch.inference_mode()
|
61 |
def generate_images(
|