Deadmon commited on
Commit
f7577e0
·
verified ·
1 Parent(s): 91e8f79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -13,6 +13,10 @@ from image_datasets.canny_dataset import canny_processor, c_crop
13
  from src.flux.sampling import denoise_controlnet, get_noise, get_schedule, prepare, unpack
14
  from src.flux.util import load_ae, load_clip, load_t5, load_flow_model, load_controlnet, load_safetensors
15
 
 
 
 
 
16
  # Define the ModelSamplingFlux class
17
  class ModelSamplingFlux(torch.nn.Module):
18
  def __init__(self, model_config=None):
 
13
  from src.flux.sampling import denoise_controlnet, get_noise, get_schedule, prepare, unpack
14
  from src.flux.util import load_ae, load_clip, load_t5, load_flow_model, load_controlnet, load_safetensors
15
 
16
+ # Define the flux_time_shift function
17
+ def flux_time_shift(shift, base, timestep):
18
+ return base * (timestep ** shift)
19
+
20
  # Define the ModelSamplingFlux class
21
  class ModelSamplingFlux(torch.nn.Module):
22
  def __init__(self, model_config=None):