Spaces:
Running
on
Zero
Running
on
Zero
NIRVANALAN
commited on
Commit
•
d737bfb
1
Parent(s):
3791ac5
update
Browse files- app.py +2 -0
- configs/i23d_args.json +1 -1
- nsr/train_util_diffusion.py +2 -1
app.py
CHANGED
@@ -369,6 +369,8 @@ def main(args):
|
|
369 |
"""
|
370 |
)
|
371 |
|
|
|
|
|
372 |
submit.click(fn=check_input_image, inputs=[input_image]).success(
|
373 |
fn=preprocess,
|
374 |
inputs=[input_image, preprocess_background],
|
|
|
369 |
"""
|
370 |
)
|
371 |
|
372 |
+
gr.Markdown(_CITE_)
|
373 |
+
|
374 |
submit.click(fn=check_input_image, inputs=[input_image]).success(
|
375 |
fn=preprocess,
|
376 |
inputs=[input_image, preprocess_background],
|
configs/i23d_args.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
"ddpm_model_path": "",
|
12 |
"cldm_model_path": "",
|
13 |
"rec_model_path": "",
|
14 |
-
"logdir": "./
|
15 |
"data_dir": "NONE",
|
16 |
"eval_data_dir": "/cpfs01/user/lanyushi.p/Repo/eccv24/open-source/InstantMesh/test_dir",
|
17 |
"eval_batch_size": 1,
|
|
|
11 |
"ddpm_model_path": "",
|
12 |
"cldm_model_path": "",
|
13 |
"rec_model_path": "",
|
14 |
+
"logdir": "./",
|
15 |
"data_dir": "NONE",
|
16 |
"eval_data_dir": "/cpfs01/user/lanyushi.p/Repo/eccv24/open-source/InstantMesh/test_dir",
|
17 |
"eval_batch_size": 1,
|
nsr/train_util_diffusion.py
CHANGED
@@ -331,7 +331,8 @@ class TrainLoopDiffusionWithRec(TrainLoop):
|
|
331 |
],
|
332 |
dim=-1) # B, 3, H, W
|
333 |
|
334 |
-
if
|
|
|
335 |
for batch_idx in range(gen_img.shape[0]):
|
336 |
sampled_img = Image.fromarray(
|
337 |
(gen_img[batch_idx].permute(1, 2, 0).cpu().numpy() *
|
|
|
331 |
],
|
332 |
dim=-1) # B, 3, H, W
|
333 |
|
334 |
+
if False:
|
335 |
+
# if save_img:
|
336 |
for batch_idx in range(gen_img.shape[0]):
|
337 |
sampled_img = Image.fromarray(
|
338 |
(gen_img[batch_idx].permute(1, 2, 0).cpu().numpy() *
|