Compare commits
No commits in common. "73b398b811a63b8118f688dc5190c8be3c4cf054" and "ad0b45e198db6438472c5e2d631e85524b065336" have entirely different histories.
73b398b811
...
ad0b45e198
@ -17,16 +17,14 @@ current_time = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
|||||||
|
|
||||||
|
|
||||||
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
||||||
pth_path = "whaiFusion11-17-16-16"
|
ckpt_path= r"/home/star/whaiDir/PFCFuse/models/whaiFusion11-17-10-34.pth"
|
||||||
ckpt_path= r"/home/star/whaiDir/PFCFuse/models/"+pth_path+".pth"
|
|
||||||
print("path_pth:{}".format(ckpt_path))
|
|
||||||
|
|
||||||
for dataset_name in ["sar"]:
|
for dataset_name in ["sar"]:
|
||||||
print("\n"*2+"="*80)
|
print("\n"*2+"="*80)
|
||||||
model_name=pth_path
|
model_name="PFCFuse Enhance 增加widthblock"
|
||||||
print("The test result of "+dataset_name+' :')
|
print("The test result of "+dataset_name+' :')
|
||||||
test_folder = os.path.join('test_img', dataset_name)
|
test_folder = os.path.join('test_img', dataset_name)
|
||||||
test_out_folder=os.path.join('test_result',pth_path,dataset_name)
|
test_out_folder=os.path.join('test_result',current_time,dataset_name)
|
||||||
|
|
||||||
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
||||||
Encoder = nn.DataParallel(Restormer_Encoder()).to(device)
|
Encoder = nn.DataParallel(Restormer_Encoder()).to(device)
|
||||||
|
4
train.py
4
train.py
@ -262,7 +262,5 @@ if True:
|
|||||||
'BaseFuseLayer': BaseFuseLayer.state_dict(),
|
'BaseFuseLayer': BaseFuseLayer.state_dict(),
|
||||||
'DetailFuseLayer': DetailFuseLayer.state_dict(),
|
'DetailFuseLayer': DetailFuseLayer.state_dict(),
|
||||||
}
|
}
|
||||||
savepth = os.path.join("models/whaiFusion" + timestamp + '.pth');
|
torch.save(checkpoint, os.path.join("models/whaiFusion"+timestamp+'.pth'))
|
||||||
torch.save(checkpoint, savepth)
|
|
||||||
print("save model:{}".format(savepth))
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user