We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
作者,你好!我在运行推理函数step3_TestOrInference.py时,将fold_flag设为False后模型预测结果直接输出为0。但是当我将flod_flag设为True时,模型可以输出结果。会有预测结果图像生成。
下面是我更改的代码部分: img_path = r'tn3k_dian2\tn3k_point\test-image' mask_path = r'tn3k_dian2\tn3k_point\test-mask' csv_file = r'tn3k_dian2\output.csv' save_path = r'inference'
# 是否使用设定好的分折信息 fold_flag =False # 预测测试集则设置为False直接读取img_path中PNG文件进行测试,True则使用分折信息
使用的模型权重文件也存在: weight_c1=r'result\TNSCUI\dpv3plus_stage1_5_1\models\epoch400_Testdice0.0000.pkl' weight_c2=r'result\TNSCUI\dpv3plus_stage2_5_1\models\epoch400_Testdice0.0000.pkl'
请问问题出在哪里?
The text was updated successfully, but these errors were encountered:
@apuomline 老哥,想请教一下,为啥我一直调不起来GPU,怎么设置都是CPU在跑
Sorry, something went wrong.
No branches or pull requests
作者,你好!我在运行推理函数step3_TestOrInference.py时,将fold_flag设为False后模型预测结果直接输出为0。但是当我将flod_flag设为True时,模型可以输出结果。会有预测结果图像生成。
![image](https://private-user-images.githubusercontent.com/119391475/279227492-8b5a9b9d-f543-4f35-8145-cd82784e41e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwMjU5MjksIm5iZiI6MTcyNTAyNTYyOSwicGF0aCI6Ii8xMTkzOTE0NzUvMjc5MjI3NDkyLThiNWE5YjlkLWY1NDMtNGYzNS04MTQ1LWNkODI3ODRlNDFlNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQxMzQ3MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kMTlhOTNjM2MwM2Y3YzdmMTUxMDljMTg4MWY1NWNhNDQzNTFmNmI5NjZkY2NiZWFhOTQwNzAyNzM2YmY1MWZkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.5N17dfxDVs2Yzu2R08fHelRmH666kQXNfw9hdOQsHOI)
下面是我更改的代码部分:
img_path = r'tn3k_dian2\tn3k_point\test-image'
mask_path = r'tn3k_dian2\tn3k_point\test-mask'
csv_file = r'tn3k_dian2\output.csv'
save_path = r'inference'
使用的模型权重文件也存在:
weight_c1=r'result\TNSCUI\dpv3plus_stage1_5_1\models\epoch400_Testdice0.0000.pkl'
weight_c2=r'result\TNSCUI\dpv3plus_stage2_5_1\models\epoch400_Testdice0.0000.pkl'
请问问题出在哪里?
The text was updated successfully, but these errors were encountered: