We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f30f7 commit 6e918f1Copy full SHA for 6e918f1
run.py
@@ -39,7 +39,8 @@ def run():
39
)
40
41
# Training
42
- for code_length in [16, 32, 48, 128]:
+ #for code_length in [16, 32, 48, 128]:
43
+ for code_length in [16]:
44
args.code_length = code_length
45
checkpoint = hashnet.train(
46
train_dataloader,
@@ -57,16 +58,16 @@ def run():
57
58
logger.info('[code_length:{}][map:{:.4f}]'.format(args.code_length, checkpoint['map']))
59
60
# Save checkpoint
- 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
+ #torch.save(
+ # checkpoint,
+ # os.path.join('checkpoints', '{}_model_{}_code_{}_alpha_{}_map_{:.4f}.pt'.format(
+ # args.dataset,
+ # args.arch,
+ # args.code_length,
+ # args.alpha,
+ # checkpoint['map']),
+ # )
70
+ #)
71
72
73
def load_config():
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments