代码拉取完成,页面将自动刷新
同步操作将从 chenmingling/MRI_Deep_learning 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
from easydict import EasyDict as edict
import json
import os
# data path and log path
config = edict()
config.testing = edict()
# model
config.MODEL_NAME = 'u_net_bn_new_2' # srcnn, vgg7, vgg_deconv_7,SRresnet,u_net,EDSR
config.INPUT_SIZE = 384 # the image size input to the network
config.PE_size_ori = 288
config.FE_size_ori = 384
config.Scale =1
config.LEARNING_RATE = 0.0001
config.TRAINING_EPOCHS = 250000
config.BATCH_SIZE = 2
config.DISPLAY_STEP = 10
config.crop_size_PE = 288
config.crop_size_FE = 384
config.validation_PE = 288
config.validation_FE = 384
config.early_stop_number = 40
config.NUM_CHANNELS = 6
config.training_BN = True
# testing
config.testing.patch_size_PE = 288
config.testing.patch_size_FE = 384
config.testing_BN = False
#### Filename
config.Train_filename = os.path.join('train')
config.Test_filename = os.path.join('train','test_real_data','xujun','xujun_with_DPA_simulation')
config.Test_filename2 = os.path.join('train','6_channel_hanlu')
config.tfrecord_filename = os.path.join('Amp_6channel.tfrecord')
config.restore_model_filename = os.path.join('model_Amp_6channel_bn_7_12',config.MODEL_NAME,'good','mymodel')
config.save_model_filename = os.path.join('model_Amp_one_channel_bn_8_15_all_echo',config.MODEL_NAME,'common','mymodel')
config.save_model_filename_best = os.path.join('model_Amp_one_channel_bn_8_15_all_echo',config.MODEL_NAME,'good','mymodel')
# testing for all pictures
config.Test_Batch_size = 4
config.TESTING_NUM = int(288/config.Test_Batch_size)
config.log_dir = "log_{}".format(config.MODEL_NAME)
config.saving_path = os.path.join('F:\matlab\Data_address_cml\BrainQuant_AI\Data','xujun','xujun_with_DPA_simulation')
###
def log_config(filename, cfg):
with open(filename, 'w') as f:
f.write("================================================\n")
f.write(json.dumps(cfg, indent=4))
f.write("\n================================================\n")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。