프로젝트 에러 (5) 썸네일형 리스트형 pytorch - gpu 사용하기 컴퓨터 사양: NVIDIA GeForce RTX 3060 Laptop GPU Windows 11 pro x64 기반 프로세서 운영체제 i7 1) 3060 + 최신버전 https://csm-kr.tistory.com/84 [Pytorch] RTX3060 window에서 최신 anaconda, 그래픽 드라이버, cuda11.7, cudnn, pytorch2.0 설치 환경 : window 10, RTX3060 / 1080 Ti 도됨 (2023/3월 기준) 순서는 다음과 같다. 1. anaconda 설치 2. 그래픽 드라이버 설치 3. visual studio 설치 4. cuda 11.7 설치 5. cudnn 설치 6. pytorch2.0 설치 1. anaconda 설치 https://www. csm-kr.ti.. "ValueError: The truth value of an array with more than one element isambiguous. Use a.any() or a.all()" 참고 : https://jimmy-ai.tistory.com/304 ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() Let x be a NumPy array. The following: (x > 1) and (x < 3) Gives the error message: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() ... stackoverflow.com 배열 비교시 (and 연산자 사용) 발생하는 듯 하다. 배열의 값을 비교하는 것인지.. 파이썬 python 주석 단축키 [ ctrl + / ] 안 될 때 파이썬 python 파이참 pycharm 주석 처리 여러줄 단축키 : [ ctrl + / ] 문제사항 단축키가 안 먹힐 때 [ ctrl + shift ] => microsoft 입력기로 변경해주면 된다. 참고 : https://dev-jinee.tistory.com/3 cv2.error: ~~ !_src.empty() in function 'cv::cvtColor' 2023-04-26 [Image Quilting for Texture Synthesis] ♣ 에러 내용 cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' ♣ 에러 부분 if __name__ == "__main__":# 해당 main.py 가 메인으로 불려왔을 때 실행 # Start the main loop here path = args.image_path# (호출인자)이미지 경로 - 사용자가 입력 # Get all blocks image = cv2.i.. cannot import name 'model_urls' from 'torchvision.models.vgg' 2023-04-25 ◈기존 코드 from torchvision.models.vgg import cfgs, make_layers #, model_urls def vgg19(avg_pool: bool = True, pretrained: bool = True,): # init.py 에서 사용 model = VGG19(avg_pool=avg_pool) # VGG19 는 클래스 -> class VGG19(nn.ModuleDict) if pretrained: # 매개변수로 pretrained 여부 받아왔음 ### 에러뜨는 부분 -> model_urls 사용 state_dict = load_state_dict_from_url(model_urls["vgg19"], progress=True) model.load_stat.. 이전 1 다음