본문 바로가기

에러 모음14

Could not load library libcublasLt.so.12. Error: libcublasLt.so.12: cannot open shared object file: No such file or directory 본인 서버 우분투 22 CUDA 11.8 이 환경 안건들면서 위에 에러 해결하기 아래것 따라하십쇼 # install CUDA repo: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#network-repo-installation-for-ubuntu sudo apt update sudo apt download libcublas-12-0 mkdir contents dpkg-deb -xv libcublas-12-0__.deb contents/ sudo mv contents/usr/local/cuda-12.0/targets/x86_64-linux/lib/* /usr/local/cuda/lib64/ rm -rf contents http.. 2024. 4. 17.
[TensorFlow] error: Lowering tensor list ops is failed. Please consider using Select TF ops and disabling `_experimental_lower_tensor_list_ops` flag in the TFLite converter object. For example, converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLIT.. error: Lowering tensor list ops is failed. Please consider using Select TF ops and disabling `_experimental_lower_tensor_list_ops` flag in the TFLite converter object. For example, converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS, tf.lite.OpsSet.SELECT_TF_OPS]\n converter._experimental_lower_tensor_list_ops = False TFLite 모델로 바꿀때 생긴 문제 (RNN계열에서 생긴다) 이 오류 메시지는 TensorFlow Lite.. 2024. 3. 25.
[scipy] Exception has occurred: AttributeError module 'scipy.ndimage' has no attribute 'imread' image1_data = scipy.ndimage.imread(images[0]) 이렇게 scipy.ndimage.imread를 통해 이미지를 불러오려하면 다음과 같은 에러가 뜬다 Exception has occurred: AttributeError module 'scipy.ndimage' has no attribute 'imread' 적당히 검색하면.. 더이상 지원을 안하니 imageio.imread를 쓰자는 내용이 나온다 https://stackoverflow.com/questions/15345790/scipy-misc-module-has-no-attribute-imread imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Use .. 2023. 11. 22.
[wandb] AttributeError: module 'wandb' has no attribute 'sdk' wandb 최신 버전을 설치했더니 이런 에러가 뜬다 이는 파이썬 버전이 wandb와 맞지 않아서 발생한 에러인 것 같다 파이썬 버전 3.6을 쓴다고 했을 때 다음 버전에서는 에러가 발생하지 않는다 pip install wandb==0.15.5 레퍼런스 https://github.com/wandb/wandb/issues/6013 [CLI]: AttributeError: module 'wandb' has no attribute 'sdk' when running training with HuggingFace trainer on sagemaker · Iss Describe the bug Getting an Attribute error importing wandb with HuggingFace trainer on.. 2023. 8. 28.
[CUDA error: out of memory] 프로세스가 없는데 특정 gpu만 안될 때, nvidia-smi 사용하지 않고 gpu 프로세스 확인 RuntimeError: CUDA error: out of memory CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. --> GPU 메모리가 모자라면 얼만큼 모자르다고 떠야 하는데 아무것도 안뜨고 out of memory라고만 뜬다 상황: - nvidia-smi에 아무 프로세스도 잡히지 않음 - 같은 코드인데 gpu 7번을 지정하면 에러가 뜨고 6번을 지정하면 에러가 안뜸 - 원래 7번만 이상있었는데 디버깅하고 이것저것 하다보니 3번도 7번과 .. 2023. 7. 13.
tqdm 사용시 TypeError: 'module' object is not callable 데이터로더를 만들고 이를 tqdm을 사용해 배치 하나씩 꺼내오려고 한다. loader = DataLoader(dataset, batch_size=spec['batch_size'], num_workers=16, pin_memory=True) for batch in tqdm(loader, leave=False, desc='val'): 분명 데이터 로더도 잘 만들었고 문제가 없는것 같은데 다음과 같은 에러가 뜬다. 원인은 import에 있다. import tqdm 을 하면 안되고 from tqdm import tqdm 을 해야 한다. reference https://stackoverflow.com/questions/39323182/tqdm-module-object-is-not-callable tqdm: 'mo.. 2023. 6. 14.