728x90
반응형
발생한 오류
학습을 진행하려고 하는 중에
importerror: cannot import name 'get_num_classes' from 'torchmetrics.utilities.data'
(/opt/conda/lib/python3.8/site-packages/torchmetrics/utilities/data.py)
에러가 발생하였다.
해결 방법
pip install torchmetrics==0.6.0
Reference
728x90
반응형
LIST
'Error' 카테고리의 다른 글
[오류 해결] ERROR: no matching distribution found for torch==1.7.1+cu110 (0) | 2024.06.03 |
---|---|
[오류 해결] module 'tensorflow._api.v2.io' has no attribute 'tf_record_iterator' (0) | 2024.06.03 |
[오류 해결] unrar : command not found error - ubuntu (0) | 2024.06.03 |
[오류 해결] unzip : command not found - ubuntu (0) | 2024.06.03 |
[오류 해결] runtimeerror: dataloader worker (pid(s) 1534, 1535) exited unexpectedly (0) | 2024.06.03 |
728x90
반응형
발생한 오류
학습을 진행하려고 하는 중에
importerror: cannot import name 'get_num_classes' from 'torchmetrics.utilities.data'
(/opt/conda/lib/python3.8/site-packages/torchmetrics/utilities/data.py)
에러가 발생하였다.
해결 방법
pip install torchmetrics==0.6.0
Reference
728x90
반응형
LIST
'Error' 카테고리의 다른 글
[오류 해결] ERROR: no matching distribution found for torch==1.7.1+cu110 (0) | 2024.06.03 |
---|---|
[오류 해결] module 'tensorflow._api.v2.io' has no attribute 'tf_record_iterator' (0) | 2024.06.03 |
[오류 해결] unrar : command not found error - ubuntu (0) | 2024.06.03 |
[오류 해결] unzip : command not found - ubuntu (0) | 2024.06.03 |
[오류 해결] runtimeerror: dataloader worker (pid(s) 1534, 1535) exited unexpectedly (0) | 2024.06.03 |