jiaweir commited on
Commit
fc94f83
1 Parent(s): 56c83bd
Files changed (2) hide show
  1. app.py +2 -2
  2. configs/4d_demo.yaml +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def check_video_input(image_block: Image.Image):
39
  raise gr.Error("Please generate a video first")
40
 
41
 
42
- @spaces.GPU(duration=120)
43
  def optimize_stage_1(image_block: Image.Image, preprocess_chk: bool, seed_slider: int):
44
  if not os.path.exists('tmp_data'):
45
  os.makedirs('tmp_data')
@@ -60,7 +60,7 @@ def optimize_stage_1(image_block: Image.Image, preprocess_chk: bool, seed_slider
60
  # return [os.path.join('logs', 'tmp_rgba_model.ply')]
61
  return os.path.join('tmp_data', f'{img_hash}_rgba_generated.mp4')
62
 
63
- @spaces.GPU(duration=120)
64
  def optimize_stage_2(image_block: Image.Image, seed_slider: int):
65
  img_hash = hashlib.sha256(image_block.tobytes()).hexdigest()
66
 
 
39
  raise gr.Error("Please generate a video first")
40
 
41
 
42
+ @spaces.GPU()
43
  def optimize_stage_1(image_block: Image.Image, preprocess_chk: bool, seed_slider: int):
44
  if not os.path.exists('tmp_data'):
45
  os.makedirs('tmp_data')
 
60
  # return [os.path.join('logs', 'tmp_rgba_model.ply')]
61
  return os.path.join('tmp_data', f'{img_hash}_rgba_generated.mp4')
62
 
63
+ @spaces.GPU(duration=200)
64
  def optimize_stage_2(image_block: Image.Image, seed_slider: int):
65
  img_hash = hashlib.sha256(image_block.tobytes()).hexdigest()
66
 
configs/4d_demo.yaml CHANGED
@@ -30,7 +30,7 @@ lambda_svd: 0
30
  # training batch size per iter
31
  batch_size: 7
32
  # training iterations for stage 1
33
- iters: 300
34
  # training iterations for stage 2
35
  iters_refine: 50
36
  # training camera radius
 
30
  # training batch size per iter
31
  batch_size: 7
32
  # training iterations for stage 1
33
+ iters: 500
34
  # training iterations for stage 2
35
  iters_refine: 50
36
  # training camera radius