전체 글

for name, param in model.named_parameters(): if [LAYER_NAME] in name: param.requires_grad = True else: param.requires_grad = False ex) for name, param in model.named_parameters(): if 'rec_head' in name: param.requires_grad = True else: param.requires_grad = False https://soyoung97.github.io/pytorch-model-%EC%9D%BC%EB%B6%80-layer%EB%A7%8C-freeze-%ED%95%98%EA%B8%B0/ Pytorch Model 일부 Layer만 Freeze ..
초기 밝은 테마 -> 다크 테마 Settings -> Advanced Settings Editor theme 탭 클릭, 초기에 system Defaults만 적혀 있을 텐데 해당 내용 다 복사해서 오른쪽(User Preferences)로 복붙 20번째 라인 쯤에 "theme": "JupyterLab Light",를 "theme": "JupyterLab Dark", 로 변경 우측 상단으로 저장하면 Dark모드 적용 완료
opencv 내 이미지 크기를 조절해주는 resize함수 사용 시, 다음과 같은 에러 발생 cv2.error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function 'resize' > Overload resolution failed: > - Can't parse 'dsize'. Sequence item with index 0 has a wrong type > - Can't parse 'dsize'. Sequence item with index 0 has a wrong type 1. 이미지의 shape이 맞지 않는 경우 - img.shape을 print하여 None 타입이 아닌지를 확인 2. resize할 사이즈가 일반 숫자 타입이 아닌 경우 - resize ..
RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. 3080 GPU 사용 도중, 파이토치 버전과 CUDA버전 상호 호환성 문제로 인하여 생긴 오류로 보인다. +) 일단 anaconda 환경일 경우, cudatoolkit, pytorch를 제대로 설치한게 맞는지 conda list나 pip list로 내가 설치한 버전을 체크해보자. Python 3.6.15 | packaged by conda-forge..
Pytorch 기반의 딥러닝 모델 사용 도중, torch.utils.data.Dataloader로 정의된 dataloader의 next()함수를 호출하여 데이터를 로딩하는 과정에서 상당히 오랜 시간이 걸렸고, ctrl + C로 중단시켜 보니 아래와 같은 오류가 뜬다. ^CTraceback (most recent call last): File "train.py", line 243, in main(args) File "train.py", line 165, in main image_tensors, labels = train_dataset.get_batch() File "dataset.py", line 156, in get_batch image, text = data_loader_iter.next() File ..
논문 PAN++: Towards Efficient and Accurate End-to-End Spotting of Arbitrarily-Shaped Text Scene text detection and recognition have been well explored in the past few years. Despite the progress, efficient and accurate end-to-end spotting of arbitrarily-shaped text remains challenging. In this work, we propose an end-to-end text spotting framew arxiv.org 논문을 깊게 읽고 만든 자료가 아니므로, 참고만 해주세요. 얕은 지식으로 모델..
논문 Efficient and Accurate Arbitrary-Shaped Text Detection with Pixel Aggregation Network Scene text detection, an important step of scene text reading systems, has witnessed rapid development with convolutional neural networks. Nonetheless, two main challenges still exist and hamper its deployment to real-world applications. The first problem arxiv.org 논문을 깊게 읽고 만든 자료가 아니므로, 참고만 해주세요. 얕은 지식으로 모델..
논문 Shape Robust Text Detection with Progressive Scale Expansion Network Scene text detection has witnessed rapid progress especially with the recent development of convolutional neural networks. However, there still exists two challenges which prevent the algorithm into industry applications. On the one hand, most of the state arxiv.org 논문을 깊게 읽고 만든 자료가 아니므로, 참고만 해주세요. 얕은 지식으로 모델의 핵심 위주로만 파악한 자료..
https://m.blog.naver.com/sssang97/221786881113 리눅스에서 구글드라이브 파일 다운받기 먼저 구글드라이브에서 공유가능한 링크를 가져와야 한다. 공개모드로다가... 그리고 저 링크를 보면 id란 ... blog.naver.com 상단 참고 블로그를 보고 진행 드라이브의 공유 링크를 복사해서 아래처럼 파일 ID만 따온다. file/d/[파일 ID]/view?usp=sharing 링크 내 매개변수 id를 저장해놓고 커맨드 라인에 적절히 섞어서 진행 100 MB 이하 wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=파일ID' -O 파일명 대용량 파일 커맨드 wget --load-cookies ..
· 환경구축
https://yjs-program.tistory.com/1 Anaconda설치 Ubuntu 16.04 환경 : Ubuntu16.04 Anaconda Install 1. 파이썬 버전에 맞는 bash파일 다운로드. https://www.anaconda.com/download/#linux 2. 다운받은 bash파일을 command에 설치 bash Anaconda3-5.0.1-Linux-x86_64.sh 3. 설.. yjs-program.tistory.com 가상환경은 이미 설치했다는 가정하에 GPU 딥러닝 환경에 필수적인 CUDA, CUDNN을 설치해보자. 내가 로컬 환경이 존재한다면, 로컬에 다음 포스팅을 참고해서 그대로 설치해도 괜찮다. Ubuntu CUDA 설치 + CUDNN 본 환경은 딥러닝을 위한 ..
Js.Y
Y초보프로그래머