Stanislaw Szymanowicz commited on
Commit
7374f63
1 Parent(s): 3915b9c

Removing rendering

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +0 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def main():
91
  None,
92
  activate_output=False)
93
 
94
- reconstruction = {k: v[0].contiguous() for k, v in reconstruction_unactivated.items()}
95
  reconstruction["scaling"] = model.scaling_activation(reconstruction["scaling"])
96
  reconstruction["opacity"] = model.opacity_activation(reconstruction["opacity"])
97
 
@@ -111,11 +111,11 @@ def main():
111
  image = t_to_512(image)
112
  loop_renders.append(torch.clamp(image * 255, 0.0, 255.0).detach().permute(1, 2, 0).cpu().numpy().astype(np.uint8))
113
  loop_out_path = os.path.join(os.path.dirname(ply_out_path), "loop.mp4")
114
- imageio.mimsave(loop_out_path, loop_renders, fps=25)
115
  # export reconstruction to ply
116
  export_to_obj(reconstruction_unactivated, ply_out_path)
117
 
118
- return loop_out_path, ply_out_path
119
 
120
  with gr.Blocks() as demo:
121
  gr.Markdown(
 
91
  None,
92
  activate_output=False)
93
 
94
+ """reconstruction = {k: v[0].contiguous() for k, v in reconstruction_unactivated.items()}
95
  reconstruction["scaling"] = model.scaling_activation(reconstruction["scaling"])
96
  reconstruction["opacity"] = model.opacity_activation(reconstruction["opacity"])
97
 
 
111
  image = t_to_512(image)
112
  loop_renders.append(torch.clamp(image * 255, 0.0, 255.0).detach().permute(1, 2, 0).cpu().numpy().astype(np.uint8))
113
  loop_out_path = os.path.join(os.path.dirname(ply_out_path), "loop.mp4")
114
+ imageio.mimsave(loop_out_path, loop_renders, fps=25)"""
115
  # export reconstruction to ply
116
  export_to_obj(reconstruction_unactivated, ply_out_path)
117
 
118
+ return None, ply_out_path
119
 
120
  with gr.Blocks() as demo:
121
  gr.Markdown(
requirements.txt CHANGED
@@ -8,4 +8,3 @@ moviepy
8
  markupsafe==2.0.1
9
  gradio
10
  rembg
11
- git+https://github.com/graphdeco-inria/diff-gaussian-rasterization
 
8
  markupsafe==2.0.1
9
  gradio
10
  rembg