Spaces:
Sleeping
Sleeping
fix bug
Browse files
app.py
CHANGED
@@ -130,10 +130,12 @@ def inference(runner: DemoRunner, cfg: ProjectConfig, rgb, mask_hum, mask_obj, s
|
|
130 |
out_stage1.features_packed().cpu().numpy()).export(
|
131 |
outdir + f"/pred_std{std_coverage}_seed{input_seed}_stage1_{input_cls}.ply")
|
132 |
log += 'Successfully reconstructed the image.'
|
|
|
133 |
except Exception as e:
|
134 |
log = traceback.format_exc()
|
|
|
135 |
|
136 |
-
return fig,
|
137 |
|
138 |
|
139 |
@hydra.main(config_path='configs', config_name='configs', version_base='1.1')
|
|
|
130 |
out_stage1.features_packed().cpu().numpy()).export(
|
131 |
outdir + f"/pred_std{std_coverage}_seed{input_seed}_stage1_{input_cls}.ply")
|
132 |
log += 'Successfully reconstructed the image.'
|
133 |
+
outfile = outdir + f"/pred_std{std_coverage}_seed{input_seed}_stage2_{input_cls}.ply"
|
134 |
except Exception as e:
|
135 |
log = traceback.format_exc()
|
136 |
+
fig, outfile = None, None
|
137 |
|
138 |
+
return fig, outfile, log
|
139 |
|
140 |
|
141 |
@hydra.main(config_path='configs', config_name='configs', version_base='1.1')
|