wjs0725 commited on
Commit
2c6ade1
1 Parent(s): 4a18092

Update flux/sampling.py

Browse files
Files changed (1) hide show
  1. flux/sampling.py +1 -0
flux/sampling.py CHANGED
@@ -33,6 +33,7 @@ def prepare(t5: HFEmbedder, clip: HFEmbedder, img: Tensor, prompt: str | list[st
33
  print("!!!!!!!!!!!!opts.source_prompt!!!!!!!!!!!!",len(prompt))
34
  print("!!!!!!!!!!!!opts.source_prompt!!!!!!!!!!!!",prompt)
35
  print("!!!!!!!!!!clip!!!!!!!!!",next(clip.parameters()).device)
 
36
  vec = clip(prompt)
37
  if vec.shape[0] == 1 and bs > 1:
38
  vec = repeat(vec, "1 ... -> bs ...", bs=bs)
 
33
  print("!!!!!!!!!!!!opts.source_prompt!!!!!!!!!!!!",len(prompt))
34
  print("!!!!!!!!!!!!opts.source_prompt!!!!!!!!!!!!",prompt)
35
  print("!!!!!!!!!!clip!!!!!!!!!",next(clip.parameters()).device)
36
+ print("!!!!!!!!!!!!clip model",clip)
37
  vec = clip(prompt)
38
  if vec.shape[0] == 1 and bs > 1:
39
  vec = repeat(vec, "1 ... -> bs ...", bs=bs)