Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e918f1

Browse files
author
Tree
committed
Update
1 parent 42f30f7 commit 6e918f1

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

‎run.py‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def run():
3939
)
4040

4141
# Training
42-
for code_length in [16, 32, 48, 128]:
42+
#for code_length in [16, 32, 48, 128]:
43+
for code_length in [16]:
4344
args.code_length = code_length
4445
checkpoint = hashnet.train(
4546
train_dataloader,
@@ -57,16 +58,16 @@ def run():
5758
logger.info('[code_length:{}][map:{:.4f}]'.format(args.code_length, checkpoint['map']))
5859

5960
# Save checkpoint
60-
torch.save(
61-
checkpoint,
62-
os.path.join('checkpoints', '{}_model_{}_code_{}_alpha_{}_map_{:.4f}.pt'.format(
63-
args.dataset,
64-
args.arch,
65-
args.code_length,
66-
args.alpha,
67-
checkpoint['map']),
68-
)
69-
)
61+
#torch.save(
62+
# checkpoint,
63+
# os.path.join('checkpoints', '{}_model_{}_code_{}_alpha_{}_map_{:.4f}.pt'.format(
64+
# args.dataset,
65+
# args.arch,
66+
# args.code_length,
67+
# args.alpha,
68+
# checkpoint['map']),
69+
# )
70+
#)
7071

7172

7273
def load_config():

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /