본문 바로가기

분류 전체보기

(83)
[prompt to prompt] 설치하기 & 에러들 1) attentionReplace 2) Refinement : 단어가 추가되어 refinement 필요 3) reweight => 일단 궁금한것 refinement!! 단어길이가 다른데, 어떻게 처리했음? Attention Control Options 더보기 cross_replace_steps: specifies the fraction of steps to edit the cross attention maps. Can also be set to a dictionary [str:float] which specifies fractions for different words in the prompt. self_replace_steps: specifies the fraction of steps to repla..
[딥러닝 읽기좋은 블로그들] 1) ViT : 자세히 설명 잘하심 https://hongl.tistory.com/234 Vision Transformer (3) - Attention Map Vision Transformer (1) Vision Transformer (2) Transformer 모델의 가장 큰 특징은 self-attention 으로 시퀀스의 각 위치가 어느 위치에 집중하는지 쉽게 시각화해서 볼 수 있다는 점입니다. 이미지 기반 딥러닝에 hongl.tistory.com 2) attention head https://codingopera.tistory.com/44
hugging face ssl error (requests.exceptions.SSLError: HTTPSConnectionPool(host='huggingface.co', port=443) requests.exceptions.SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-uncased/resolve/main/tokenizer_config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))) 가상 환경내에 vi /opt/conda/envs/sd/lib/python3.10/site-packages..
Stable diffusion with LoRA! https://stable-diffusion-art.com/lora/ What are LoRA models and how to use them in AUTOMATIC1111 - Stable Diffusion ArtLoRA models are small Stable Diffusion models that apply tiny changes to standard checkpoint models. They are usually 10 to 100 times smaller than checkpointstable-diffusion-art.com 위 게시물의 한글 번역. 이해내용. LoRA model은 standard checkpoint에 작은 변화를 가할 수 있는 작은 stable diffusion 모델이다. 오리지..
anaconda pip 경로 제대로 안잡힐때, PATH 랑 LD_LIBRARY_PATH 둘다 아무것도 않넣고 PATH=$PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH 해주고 source ~/.bashrc 했을때, 여전히 pip 경로 제대로 안잡히는지 봐라 아마 잡힐꺼다. 쓸데없는거 저 경로에 박아놓으면 때에따라 잘 못잡는다,. 방법2 python 버전은 제대로 잡히는데 pip만 안되면 which python 경로확인하고. (py39) yj@yj:~$ which python /home/yj/anaconda3/envs/py39/bin/python pip 는 /home/yj/anaconda3/envs/py39/bin/pip 에 있음 따라서 그냥 저거 직접 실행하면됨. /home/yj/anaconda3/envs/py39/bin/pip ..
[python] 이미지 유사도 체크 코드 두 개의 폴더 비교하여 중복 있을 경우 리스팅 1) opencv 사용 (structural similarity -- opencv-python 은 c++을 python으로 감싼거라서 속도는 거의 비슷 ) 2) structural similarity -- 갱장히 느림. multiprocessing 으로 속도 상향 . (core 수 최대로 잡음 유의) 3) 이중 for문 사용, 이전 인덱스는 비교하지 않음 ( 이미 비교 됬으니까 ) 4) 멀티프로세싱시에 파일에 쓰는게 안되서 일단은 그냥 출력하고 그거 긁어다가 사용... 출력 저장 왜 안되능가? from skimage.metrics import structural_similarity import cv2 import numpy as np import os fro..
yolov5 모르는 용어 정리 1. InfiniteDataLoader vs DataLoader 차이 > gpt 님이 말씀하사... DataLoader is a general-purpose data loader that loads a finite dataset in PyTorch. It provides an iterable over a given dataset that loads a specified number of samples at a time and applies transformations to each sample. It is commonly used in machine learning tasks such as image classification, object detection, and natural language pro..
[aihub 데이터처리] 특수문자 제거 (한줄 명령어, code포함) aihub 데이터에 왠... 한글이 많이 들어있다.... 짜증난다.. 하위파일에 특수문자가 들어있을경우 그냥 rename 때렸고, image 와 라벨 페어 맞추기 위해, json 파일내 파일명에서는 아래처럼 바꿔줬다. 아오 짜증나. - 파일명 제거는 파이썬 참고. -파일내 특수문자 제거는 sed로 함. sed -e 's/치환대상/치/g' ## 하위 파일들을 찾고, 하위 파일 "내용"에 특수문자 포함되어 있을 경우 제거 ## 실행 후 결과 출력 sed -e find . -type f -name "*.json" -print0 | xargs -0 sed -e 's/\\uace0//g' ## 파일에 진짜 쓰기 sed -i find . -type f -name "*.json" -print0 | xargs -0 s..