Education*
Devops
Architecture
F/B End
B.Chain
Basic
Others
CLOSE
Search For:
Search
BY TAGS
linux
HTTP
golang
flutter
java
fintech
개발환경
kubernetes
network
Docker
devops
database
tutorial
cli
분산시스템
www
블록체인
AWS
system admin
bigdata
보안
금융
msa
mysql
redis
Linux command
dns
javascript
CICD
VPC
FILESYSTEM
S3
NGINX
TCP/IP
ZOOKEEPER
NOSQL
IAC
CLOUD
TERRAFORM
logging
IT용어
Kafka
docker-compose
Dart
생성 AI 모델 Flux.1 설치 및 사용
Recommanded
Free
YOUTUBE Lecture:
<% selectedImage[1] %>
yundream
2024-11-17
2024-11-17
499
# Flux.1 Flux.1은 이미지 생성 AI 분야에서 주목받고 있는 모델이다. **Black Forest Labs**에서 개발하였으며, "텍스트를 기반으로 고품질의 이미지를 생성"하는데 특화되어 있다. **Stable Diffusion** 과 함께 가장 주목 받고 있는 모델이다. Stable Diffusion에 비해서 더 높은 품질의 이미지를 만들 수 있다. SD를 이용해서 인물을 만들 경우 얼굴 표정, 손, 발 등 세부적인 디테일에서 어색한 부분이 나타날 수 있다. 이때 문에 여러 테스트를 거치거나 확장을 설치해서 보정을 해야 하는데, Flux.1은 특히 인물 생성에서 즉시 사용해도 될 만큼의 높은 성능을 보여준다. Stable Diffusion 설치 문서는 [스테이블 디퓨전 설치 및 사용해보기](https://www.joinc.co.kr/w/sd_install) 문서를 참고하자. # 설치 환경 Flux.1은 윈도우즈, 리눅스, 맥 어디든 설치 할 수 있다. 이 문서는 "리눅스 운영체제"를 기준으로 테스트했다. 1. 운영체제: 우분투 리눅스 24.10 2. NVIDIA GeForce RTX 4060 Ti 16G 3. 32G RAM 4. AMD Ryzen 5 5600X 6- Core # Stable diffusion webui forge **Stable Diffusion WebUI Forge**는 Stable Diffusion 모델을 기반으로 하는 생성 이미지 AI를 빠르고 편리하게 사용 할 수 있도록 도와주는 **플러그인 관리 시스템**이다. 이러한 확장 가능한 플러긍린 기능을 이용해서 Flux.1 같은 모델도 쉽게 사용 할 수 있다. 생성 이미지 모델은 매우 큰 크기를 가지고 있다. aria2를 이용하면 좀 더 빠르게 모델을 다운로드 할 수 있다. ``` sudo apt-get update sudo apt-get upgrade -y ``` ``` sudo apt-get install -y aria2 ``` **Stable diffusion webui forge 저장소**를 clone 한다. ``` git clone https://github.com/lllyasviel/stable-diffusion-webui-forge cd stable-diffusion-webui-forge ``` ## flux1-dev 설치 및 실행 aria2c는 wget과 같은 파일 다운로드 프로그램이다. HTTP, HTTPS, FTP 프로토콜 뿐만 아니라 BitTorrent, Metalink와 같은 추가 프로토콜도 지원한다. 또한 여러 소스에서 동시에 파일을 받아 분할 다운로드 할 수 있는 기능이 있어서 다운로드 속도를 높이는데 유리하다. aria2c로 ``` aria2c -c -x 16 -s 16 -k 1M https://huggingface.co/lllyasviel/flux1-dev-bnb-nf4/resolve/main/flux1-dev-bnb-nf4-v2.safetensors -d models/Stable-diffusion -o flux1-dev-bnb-nf4-v2.safetensors ``` ``` python launch.py --theme dark --disable-xformers ``` ## 프롬프트 예제 ``` an arab young business man in modern coffe shop under his apartment, elegant modern day light photoghraphy, ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vTT_W7fyyTnhceHmgJnKRyIjuIXXR5qYmnwfmbBIc4pf0RJymAADqySYTP2fPWveYQaYfw36dINkqXK/pub?w=904&h=1158) ``` Ultra-realistic Pikachu, detailed fur, bright yellow color, expressive eyes with lifelike reflections, small nose, realistic electric sparks around cheeks, set in a natural forest background, highly detailed texture on fur and skin, cinematic lighting, 8K resolution, photorealistic rendering ``` ![Flux.1 생성 이미지 예제](https://docs.google.com/drawings/d/e/2PACX-1vS-WMsa43kcNQQ7C3O0fC6DV8kujSOX5oHqXlg1RIq5iotgT3pf_wo_imRapypVb65qbxKyr8vz0QL1/pub?w=902&h=1150) ``` A [young] woman with [long, wavy brunette hair] rests her head on her clasped hands, she is looking in the camera. She is dressed in [a black top] and wears [a delicate bracelet on her left wrist]. Her expression is [gentle and thoughtful], enhanced by [natural makeup and a hint of pink lipstick]. The background is [dark and blurred], drawing attention to [her face and hands] ``` ![Flux.1 생성 이미지 예제](https://docs.google.com/drawings/d/e/2PACX-1vR3nx6vWvJez5ifonG9sTy1-OnWSRgH1YHY7dHxjb1Vhq7OMhL9RDrqHuT_EvNBuCoqxi_DlQVaOUmq/pub?w=898&h=1155) ``` masterpiece, best quality, girl, collarbone, wavy hair, looking at viewer, blurry foreground, upper body, necklace, contemporary, plain pants, intricate, print, pattern, ponytail, freckles, red hair, dappled sunlight, smile, happy ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vSauwvluWFWMNp1mXE0FOjI53zxZVYQBXB2CSxZBX0j9EfV6FGhs4v9UCVEFn5mafy7jgozRgJKQbAL/pub?w=900&h=1156) ``` johnny depp photo portrait, film noir style, monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vQghs_8KC6EomsjEn8qZ-qM8sE41V2EADlJl0_1TrgpczWx3B_pQfmBc5_-aiLBrGAMnEXRFCyBDWk_/pub?w=900&h=1154) ``` a woman with black armored uniform, futuristic, giant robot, inspired by Krenz Cushart, neoism, kawacy, wlop, gits anime ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vRAPvrzqpF4Y7tlSp9LKqKylbeeZYiCcAaMPJK06IRHoRvbclH85TccxUukVFuj9EAvzEnMbTnDQhsW/pub?w=900&h=1156) ``` Cityscape in photorealistic style, detailed buildings, and lifelike lighting. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vRWE4Y9ATdFpfzg7gwBnLi9LLBSmFvBfkX_zTeQPWlKFimKMf5rMhg0stZyn3bO9Ormkda7WorFUL38/pub?w=898&h=1153) ``` Busy city market in comic book style, exaggerated features, and bold lines. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vQSDw1KSk7sglhtCpO_nwP23CSKPXt2tyi6NNtYE9FxvbLtYxxpWnyP7zy4fjV7nNq45vJsLpEO-6Bn/pub?w=900&h=1154) ``` Design a hyper-realistic scene of ['Penempatan Usang Ditebing Pergunungan,'] showcasing [a weathered wooden house teetering on the edge of a rugged cliff], viewed from a low angle. The house features a small balcony with laundry hanging out to dry, casting sharp shadows under the bright midday sun. Lush greenery envelops the base of the cliff, while the expansive landscape is mostly hidden by dense foliage. Although the day is clear, the scene evokes an eerie and isolated atmosphere, with sharp, high-contrast details amplifying the sense of desolation and solitude. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vQYnY00zdVs1IpPWBx3dxPafOc613stRXyY8yxc3ZApLVP3JauC00uQbZ2Zaxy3f1q5HEpmaANsQ94S/pub?w=896&h=1152) ``` A character model sheet of [anime girl] displaying a wide range of poses and perspectives, such as the front, side, and back. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vRkYPzkgPGR322aQXs4WYKjHb8-suwuGgHIns-b8BmttFhszgAqg2Dy3bTymhxbyeLfq2ZvhVY3MygM/pub?w=894&h=1156) ``` Capture a street food vendor in Tokyo at night, shot with a wide-angle lens (24mm) at f/1.8. Use a shallow depth of field to focus on the vendor’s hands preparing takoyaki, with the glowing street signs and bustling crowd blurred in the background. High ISO setting to capture the ambient light, giving the image a slight grain for a cinematic feel. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vRH14MKfC3AdQog5-PGmeos-ZkMU_3pi3eX1hlOBLluH84U2IsbsRWx7Rm-AHQG1Bq3XGoE_btZFtTG/pub?w=897&h=1154) ``` Depict a cozy, warmly lit bookstore cafe on a rainy evening. The atmosphere should be inviting and nostalgic, with soft yellow lighting from vintage lamps illuminating rows of well-worn books. Show patrons reading in comfortable armchairs, steam rising from their coffee cups. The large front window should reveal a glistening wet street outside, with blurred lights from passing cars. Emphasize the contrast between the warm interior and the cool, rainy exterior. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vS6d2pI7iyK3IZkzi9XfETG11dAlikPrLT7PDoRAhgrDu127kI2Q9iDG-3cDloQKuy5p_KrPsHWFhf-/pub?w=899&h=1154) ``` Layer 1 (Background): Depict a city of interconnected floating islands suspended in a pastel sky. The islands should have a mix of whimsical architecture styles, from towering spires to quaint cottages. Show distant airships and flying creatures in the background. Layer 2 (Middle ground): Focus on the main marketplace area. Illustrate a wide plaza with colorful stalls and shops selling exotic goods. Include floating platforms that serve as walkways between different sections of the market. Layer 3 (Foreground): Populate the scene with a diverse array of fantasy creatures and humanoids. Show vendors calling out to customers, children chasing magical floating bubbles, and a street performer juggling balls of light. In the immediate foreground, depict a detailed stall selling glowing potions and mystical artifacts. Atmosphere: The overall mood should be vibrant and magical, with soft, ethereal lighting that emphasizes the fantastical nature of the scene. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vTzfq6MZXNubbK4UWCDdVUW5k6e1A4ugJu3RavDbqV0f2YhjsQYo2F30TNfEPuJdQekbuBd5GKVgl3-/pub?w=900&h=1156) ``` Create an image that fuses the precision of M.C. Escher’s impossible geometries with the bold colors and shapes of Wassily Kandinsky’s abstract compositions. The subject should be a surreal cityscape where buildings seamlessly transform into musical instruments. Use Escher’s techniques to create paradoxical perspectives and interconnected structures, but render them in Kandinsky’s vibrant, non-representational style. Incorporate musical notations and abstract shapes that flow through the scene, connecting the architectural elements. The color palette should be rich and varied, with particular emphasis on deep blues, vibrant reds, and golden yellows. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vQmRSY6DPz7scTTf3t550OtuJkwvwYox5Hxf9gvJoJHIbqwsuq4l3nTsCKX2iBqaLzFf49ZPyrA7fP_/pub?w=900&h=1156) ``` Create a surreal advertisement poster for a fictional time travel agency. The background should depict a swirling vortex of clock faces and historical landmarks from different eras. In the foreground, place large, bold text that reads “CHRONO TOURS: YOUR PAST IS OUR FUTURE” in a retro-futuristic font. The text should appear to be partially disintegrating into particles that are being sucked into the time vortex. Include smaller text at the bottom with fictional pricing and the slogan “History is just a ticket away!” ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vQjAwLPKMmi18k8mquISGY953n4DPPPAb2IRLFjYMBW7Ds_Iw245wHhoxwLxAj8u-BOerXDWMQq_nys/pub?w=898&h=1155) ``` Create an image in the style of Vincent van Gogh’s “Starry Night,” but replace the village with a futuristic cityscape. Maintain the swirling, expressive brushstrokes and vibrant color palette of the original, emphasizing deep blues and bright yellows. The city should have tall, glowing skyscrapers that blend seamlessly with the swirling sky. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vS761QlbAr5kOY7kp3PvVUPws0sWVgYqWBcpx0YexXtGycCtjS1L0SYvPHdx26CMKy6VvmPtLVEjldg/pub?w=898&h=1153) ``` Ultra-realistic Charmander from Pokemon, smooth orange skin with detailed texture and slight gloss, large expressive eyes with lifelike reflections, small fangs visible, realistic flame on tail with warm glowing effect, subtle smoke around flame, set in a rocky or volcanic background, highly detailed skin texture, cinematic lighting, photorealistic rendering ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vQZYI3LszQOMHLAH-7Nltc80FI6jn80vGC0tmCBY0Y_Aa8sTc_11D2Z8NcQSGFxG-wwB8fVZtje4U2e/pub?w=898&h=1153) ``` (masterpiece, digital art:1.3) , highly intricate double exposure art inspired by Yuumei, (close-up of a person's eye:1.2) superimposed on a bustling city street, cyberpunk aesthetic, trending on CGSociety, multiple exposure technique, overlaying textures with glowing holographic elements, technicolor palette, bright city lights illuminating the scene, reminiscent of "The Matrix" film's Pinterest color scheme, high definition rendering, colorful dream-like atmosphere, elaborate details in the digital art, futuristic and vibrant, captivating visual narrative. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vQhK5cKwOLO98LEABEbJMnhIQPMVzrEAg1znBKYZp7jHtn2qp-dyzc0Rw5N8VF_IhVPSHPJXo3GFtYc/pub?w=898&h=1153) ``` snapchat portrait of a brunette 20-year old woman, in a messy room with a poster on the wall reading "DEEPFAKE", soft directional lighting ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vTUjPMSLoXqrVmlpak0-cmxXeBFK5Mf_J44Tw3IUt_wPrlGeZi_p2ITgiVwSUbOHqinliKgtXsD3oCS/pub?w=897&h=1152) ``` Create a surreal, ethereal dreamscape with floating islands, bioluminescent plants, and a sky filled with multiple moons of different colors. Include a solitary figure on one of the islands, gazing at the celestial display. ``` ![](https://docs.google.com/drawings/d/e/2PACX-1vQISfmPzTz_QYf9cCZrhZMUtQaPlKj9niRn1KWtaphruSDqVmmjgQ5H7_szI0cepgYwFUz1TO-j6pDH/pub?w=897&h=1153) ## 참고 * [저사양 GPU로 Flux를 무료로 즐기세요](https://fornewchallenge.tistory.com/entry/%F0%9F%8E%A8Flux-Dev-FP8-%EB%B2%84%EC%A0%84-%EC%A0%80%EC%82%AC%EC%96%91-GPU%EB%A1%9C-Flux%EB%A5%BC-%EB%AC%B4%EB%A3%8C%EB%A1%9C-%EC%A6%90%EA%B8%B0%EC%84%B8%EC%9A%94#google_vignette) * [Install FLUX.1-dev via WebUI Forge on Ubuntu](https://zahiralam.com/blog/from-text-to-image-install-flux-1-dev-via-webui-forge-on-ubuntu/)
Recent Posts
Vertex Gemini 기반 AI 에이전트 개발 02. 생성 AI에 대해서
Vertex Gemini 기반 AI 에이전트 개발 01. 소개
Vertex Gemini 기반 AI 에이전트 개발-소개
생성 AI 모델 Flux.1 설치 및 사용
GPT를 이용한 Reranker 테스트
5분만에 만들어보는 Streamlit 챗봇
Let's encrypt로 SSL 인증서 관리하기
Upscayl을 이용한 이미지 업스케일링
스테이블 디퓨전 설치 및 사용해보기
Elasticsearch 설치
Archive Posts
Tags
AI
Copyrights © -
Joinc
, All Rights Reserved.
Inherited From -
Yundream
Rebranded By -
Joonphil
Recent Posts
Archive Posts
Tags