error (9) 썸네일형 리스트형 [pytorch] AttributeError: module 'distutils' has no attribute 'version' 에러 해결 문제점 해결 pip install setuptools==59.5.0 https://github.com/pytorch/pytorch/issues/69894 [pytorch error] GAN학습시 에러, RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation 에러 발생시 대처법 This happens because the opt_D.step() modifies the parameters of your discriminator inplace. But these parameters are required to compute the gradient for the generator. Hence the error. We fixed the inplace detection for the optimizers in 1.5, this is why it works in 1.4. You should re-organize your code to only do the steps() after all the gradients have been computed or make sure you don't mo.. [error handling] 0xc10100be python write video, cv2 video write가 안될때 0xc10100be 에러가 뜨면서 저장한 비디오가 실행이 안된다. 저장도 거의 안 된다. 6KB, 1KB 이런 식이다. 이럴 경우 어떻게 해결해야하나? 문제 원인) 바보 같은 실수를 한 게 gframe을 저장하려고 했단 것이다. frame은 (640, 480, 3)의 형태고 gframe은 (640, 480)이다. 흑백의 채널이 없는 이미지는 out.write(gframe)이 안 먹는다. 해결책 그냥 3채널의 frame을 write하자. https://github.com/ContinuumIO/anaconda-issues/issues/223 opencv - not writing output with cv2.VideoWriter.write · Issue #223 · ContinuumIO/anaconda-iss.. [torch] RuntimeError("{} is a zip archive 에러 해결 방법 에러 RuntimeError("{} is a zip archive (did you mean to use torch.jit.load()?)".format(f.name)) when loading model weights 문제 원인 : 학습은 torch 1.6 이상으로 하고 인퍼런스는 torch 1.6 버전 이하로 할 경우 위와 같은 에러가 발생한다. 해결 방법 : 학습시 모델을 저장할 때 다음과 같은 옵션을 추가하여 저장해준다. torch.save(model.state_dict(), path, _use_new_zipfile_serialization=False) [pandas] ValueError: Cannot mask with non-boolean array containing NA / NaN values 해결법 1. 문제가 발생하는 원인 조건문으로 mask(True 혹은 False로 이루어진 series) 를 만들고, df[ mask ] 로 df중 mask에 해당하는 row들만 선택할 수 있다. https://study-grow.tistory.com/entry/pandas-%ED%8A%B9%EC%A0%95-%EC%B9%BC%EB%9F%BC%EC%9D%98-%ED%96%89%EC%9D%B4-%EB%AC%B8%EC%9E%90%EC%97%B4%EC%9D%BC-%EA%B2%BD%EC%9A%B0-%ED%8A%B9%EC%A0%95-%EC%A1%B0%EA%B1%B4%EC%9D%84-%EB%A7%8C%EC%A1%B1%ED%95%98%EB%8A%94-%EC%B9%BC%EB%9F%BC%EB%A7%8C-select-%ED%95%9.. RuntimeError: cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. This error may appear if you passed in a non-contiguous input 에러 해결법 #RuntimeError: cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. This error may appear if you passed in a non-contiguous input Batch-size를 줄여준다. 해결 완료. ImportError: libtbb.so.2 오류 문제점 ImportError: libtbb.so.2: cannot open shared object file: No such file or directory 해결법 # Ubuntu/Debian sudo apt-get update sudo apt-get install libtbb2 # or : sudo apt-get install libtbb-dev # CentOS sudo yum update sudo yum install tbb # or: sudo yum install tbb-devel www.metagenomics.wiki/tools/bowtie2/install/libtbb-so-2 libtbb.so.2 - Metagenomics bowtie2 error: missing library libtbb.so.. [imaginare 설치] TypeError: Class advice impossible in Python3 에러 문제 TypeError: Class advice impossible in Python3. Use the @Implementer class decorator instead. apex 에러 해결법 apex를 지우고 다시 설치해준다. git clone https://www.github.com/nvidia/apex cd apex python setup.py install github.com/NVIDIA/apex/issues/116 TypeError: Class advice impossible in Python3 · Issue #116 · NVIDIA/apex TypeError Traceback (most recent call last) in () ----> 1 from pytorch_pretrained_bert.. 이전 1 2 다음