Skip to content

我已解决test_dice极低的问题 | I have resolved the problem that the test_dice is extremely low #39

@LambdaLi

Description

@LambdaLi

4219d3454a33e3d8670b9c5962935a49

d7ed6caf4221afffec5cf90fbb07ef42_720

这个代码我跑了四次,最后发现是自己对题主的意思理解错误导致,然后我花了几天时间逐行阅读代码,希望我的遭遇能够帮助到各位:`

①不要预处理‘测试集(test)’!!!不要预处理‘测试集(test)’!!!不要预处理‘测试集(test)’!!!重要的事情说三遍,只需要预处理训练集(train),dataset_lits_test.py会对测试(test)集图像进行处理。

②前面前辈说到的ResUNet.py里135-161行的map里的upsample里的scale参数后两位减半。

③把test.py第25行的注释给取消注释,该行的作用看注释的注释,做完后便!!!不!!!需要像前辈之前说的运行test.py时把②里说到的减半参数->进行恢复。

I ran this code four times and finally realized that it was due to my incorrect understanding of the author's meaning. I spent a few days reading the code line by line, hoping that my experience can help everyone:
① Do not preprocess the 'test set'!!! Do not preprocess the 'test set'!!! Do not preprocess the 'test set'!!! Say important things three times, just preprocess the training set, dataset_ Lits_ Test. py will process the test set images.
② The last two digits of the scale parameter in the upsample in the map from lines 135 to 161 of ResUNet. py mentioned by the previous generation are halved.
③ Uncomment the 25th line of test.py. The purpose of this line depends on the annotation. Once it is done, it will be ready.We don't need to restore the parameters halved mentioned in ② when running test. py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions