Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
write to excel
Browse files Browse the repository at this point in the history
  • Loading branch information
Max You authored and Max You committed Dec 14, 2023
1 parent 1c3e4d0 commit cf9793c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lseg_repri.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,13 @@ def episodic_validate(args):
with torch.no_grad():
for i in range(args.batch_size_val):
# load each pair in the episode one by one
batch = next(args.val_loader)
try:
batch = next(args.val_loader)
except:
# for multiple runs
args.val_loader = iter(args.val_loader)
batch = next(args.val_loader)

qry_img = batch['query_img']
q_label = batch['query_mask']
spprt_imgs = batch['support_imgs']
Expand Down

0 comments on commit cf9793c

Please sign in to comment.