diff --git a/src/lcd/scripts/diffuser.py b/src/lcd/scripts/diffuser.py index 4e544da..8919db8 100644 --- a/src/lcd/scripts/diffuser.py +++ b/src/lcd/scripts/diffuser.py @@ -168,12 +168,13 @@ print("✓") # -----------------------------------------------------------------------------# # --------------------------------- main loop ---------------------------------# # -----------------------------------------------------------------------------# -wandb.init( - project="vanilla-diffuser", - entity="lang-diffusion", - name=f"hulc-{args.wandb_name}", - config=vars(args), -) +if args.wandb: + wandb.init( + project="vanilla-diffuser", + entity="lang-diffusion", + name=f"hulc-{args.wandb_name}", + config=vars(args), + ) n_epochs = int(args.n_train_steps // args.n_steps_per_epoch) diff --git a/src/lcd/utils/clevr/eval.py b/src/lcd/utils/clevr/eval.py index c22ca97..15d1aef 100644 --- a/src/lcd/utils/clevr/eval.py +++ b/src/lcd/utils/clevr/eval.py @@ -208,7 +208,12 @@ def evaluate( [p.wait() for p in processes] print("Processes finished") - results = [float(p.communicate()[1].decode().split("\n")[-1]) for p in processes] + try: + results = [float(p.communicate()[1].decode().split("\n")[-1]) for p in processes] + except: + print(processes[0].communicate()[0].decode('utf-8')) + print(processes[0].communicate()[1].decode('utf-8')) + raise Exception('Subprocesses failed') return sum(results) / len(results), num_processes * dry_eval_args.num_sequences # print(result) diff --git a/submodules/data b/submodules/data index 70085b8..0fb469b 160000 --- a/submodules/data +++ b/submodules/data @@ -1 +1 @@ -Subproject commit 70085b8e820177830d0eadb45f4a3972c0eaf267 +Subproject commit 0fb469beaeaa788bbe7aa2bcff75caeac8d5e6da diff --git a/submodules/talar-openreview-fork b/submodules/talar-openreview-fork index 83416d7..d25f942 160000 --- a/submodules/talar-openreview-fork +++ b/submodules/talar-openreview-fork @@ -1 +1 @@ -Subproject commit 83416d76fa9a782dcd0a00a0e673b73a3a224fb4 +Subproject commit d25f942095d5db240039ddf22e81d096bc6b2251