BoyuanJiang commited on
Commit
08d8dcb
·
1 Parent(s): 747dadf
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,6 +24,7 @@ access_token = os.getenv("HF_TOKEN")
24
  fitdit_repo = "BoyuanJiang/FitDiT"
25
  repo_path = snapshot_download(repo_id=fitdit_repo, use_auth_token=access_token)
26
 
 
27
  class FitDiTGenerator:
28
  def __init__(self, model_root, device="cuda", with_fp16=False):
29
  weight_dtype = torch.float16 if with_fp16 else torch.bfloat16
@@ -72,7 +73,6 @@ class FitDiTGenerator:
72
 
73
  return im, pose_image
74
 
75
- @spaces.GPU
76
  def process(self, vton_img, garm_img, pre_mask, pose_image, n_steps, image_scale, seed, num_images_per_prompt, resolution):
77
  assert resolution in ["768x1024", "1152x1536", "1536x2048"]
78
  new_width, new_height = resolution.split("x")
 
24
  fitdit_repo = "BoyuanJiang/FitDiT"
25
  repo_path = snapshot_download(repo_id=fitdit_repo, use_auth_token=access_token)
26
 
27
+ @spaces.GPU
28
  class FitDiTGenerator:
29
  def __init__(self, model_root, device="cuda", with_fp16=False):
30
  weight_dtype = torch.float16 if with_fp16 else torch.bfloat16
 
73
 
74
  return im, pose_image
75
 
 
76
  def process(self, vton_img, garm_img, pre_mask, pose_image, n_steps, image_scale, seed, num_images_per_prompt, resolution):
77
  assert resolution in ["768x1024", "1152x1536", "1536x2048"]
78
  new_width, new_height = resolution.split("x")