yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

마크다운 TIL 템플릿

김영훈 2024.01.03 11:58 조회 수 : 1379

# 2024-01-02 학습 내역

## 주제 1: 파이썬 pip 설치 에러 해결

### 문제:
- `AttributeError: module 'tarfile' has no attribute 'data_filter'`

### 해결 방법:
- pip 모듈을 최신 버전으로 업데이트
  ```bash
  python -m pip install --upgrade pip
  ```

---

## 주제 2: Stable Diffusion 설치 - Rocky Linux 9

### 환경 설정:
- **시스템**: Rocky Linux 9
- **Python 버전**: 3.9
- **기타 설정**: SELinux 및 방화벽 비활성화

### 설치 절차:
1. **Pip 설치 및 업그레이드**
   ```bash
   dnf install -y python-pip
   python -m pip install --upgrade pip
   ```

2. **Git 설치**
   ```bash
   dnf install -y git
   ```

3. **Stable Diffusion 소스 다운로드**
   ```bash
   git clone https://github.com/Stability-AI/stablediffusion
   ```

4. **Python 모듈 설치**
   ```bash
   cd stablediffusion
   pip install -r requirements.txt
   ```

### 사용 예시:
1. **Classic Img2Img**
   ```bash
   python scripts/img2img.py --prompt "A fantasy landscape, trending on artstation" --init-img <path-to-img.jpg> --strength 0.8 --ckpt <path/to/model.ckpt>
   ```

2. **Text-to-Image**
   ```bash
   python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse" --ckpt <path/to/768model.ckpt/> --config configs/stable-diffusion/v2-inference-v.yaml --H 768 --W 768  
   ```

---


  • 추천 0

  • 비추천 0
이 게시물을
목록

댓글 0

번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 3008
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 2514
» 마크다운 TIL 템플릿 김영훈 2024.01.03 1379
248 Stable Diffusion 설치 - rockylinux9 [테스트 - 나 / 정리 -chatgpt] [1] 김영훈 2024.01.02 1805
247 AttributeError: module 'tarfile' has no attribute 'data_filter' 에러 김영훈 2024.01.02 1147
246 2023년 월간 소비 비중 file 김영훈 2024.01.01 729
245 rocky linux 9 - init_script.sh 김영훈 2023.12.08 1419
244 자바스크립트 화살표 함수 김영훈 2023.10.06 686
243 sar bash 스크립트 [1] 김영훈 2023.09.05 1582
242 ELK Stack 테스트 [1] 김영훈 2023.08.30 889
241 CentOS7 php 7.4 + composer 설치 김영훈 2023.08.18 1071
240 iptables ip 포워딩 [1] 김영훈 2023.08.17 1077
239 삼성 스마트태그 배터리 - CR2032 김영훈 2023.08.15 484
238 geoip2 python [1] 김영훈 2023.08.10 1212
237 pyapns_client 동시에 여러 기기로 푸시 보내기 김영훈 2023.08.03 699
236 2학기 수강신청 김영훈 2023.08.01 602
235 let's encrypt 와일드카드 인증서 발급 (CentOS7) [2] 김영훈 2023.07.26 896
234 FCM 푸시보내기 - firebase_admin 김영훈 2023.07.20 1711
233 FCM 푸시 보내기 - pyfcm 김영훈 2023.07.20 1503
232 rockylinux kvm [1] 김영훈 2023.07.12 1066
231 SAP_1. Identity & Federation Section 김영훈 2023.06.13 664
230 [Bard] node.js forever 사용법 알려줘 김영훈 2023.05.18 999
쓰기 태그
 첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지