起因粪便超难人工标记,清洁度计算又要用,开干!
《Development and validation of the Open-Source Automatic Bowel Preparation Scale》-2024.11
以这篇论文为蓝本做mask
1.开局天崩,可能是用网络下载的torch有断过导致损坏,torch又崩了
NameError: name '_C' is not defined
ModuleNotFoundError: No module named 'typing_extensions'
有网方便还是直接用指令
pip install torch==想要版本+cu118 torchvision==想要版本+cu118 torchaudio==想要版本 --index-url https://download.pytorch.org/whl/cu118(cuXX换成你的cuda版本,不用cuda不加就好了)
重新下download.pytorch.org/whl/torch/官网地址,我这次选择手动下载
1)确认是不是真崩了
import torch
print(torch.__version__) # 检查 PyTorch 版本,如果这里就出不来就要重新下,如果这里只是没有带cuda/cu113(意思是cuda11.3版本)字样,那就是下错成了cpu版本,要用到gpu的话重新下叭
print(torch.cuda.is_available()) # 检查