Ubuntu 부팅 시 해상도 640x480 고정 문제 (EDID Handshake) 해결법
·
Setting/Ubuntu
Ubuntu에서 부팅 시 듀얼 모니터 중 하나가 640x480 저해상도로 잡히는 문제가 발생했다. 모니터를 껐다 켜면 정상(QHD)로 돌아오지만 매번 그러기 불편하여 방법을 찾아보았다. 원인EDID Handshake Failure사용중인 모니터 (필립스 EVNIA 27M2N5500L)의 절전 모드가 깊어서 부팅 속도가 빠른 PC가 신호(EDID)를 요청할 때 응답을 못 받아 안전 모드인 640x480으로 송출한 것이다. 해결 방법EEID Override모니터 정보(EDID)를 파일로 저장해 우분투가 EDID를 강제 인식할 수 있도록 한다. (1) 모니터 정보 파일(bin) 추출저해상도 모니터를 껐다 켜 정상 해상도로 나올 때 `nvidia-settings`를 켠다.sudo nvidia-settings ..
[Google Study Jam X IT’s Study] Build Real World AI Applications with Gemini and Imagen (4)
·
Study/Google Skills
Build a Multi-Modal GenAI Application: Challenge Lab Challenge scenarioAI 기반 꽃다발 디자인 회사의 개발자로 현실적인 꽃다발 이미지를 생성하고 생성된 꽃다발의 설명 요약을 제공한다. Task 1Develop a Python function named `generate_bouquet_image(prompt)`. This function should invoke the `imagen-3.0-generate-002` model using the supplied `prompt`, generate the image, and store it locally. For this challenge, use the prompt:Create an image cont..
[Google Study Jam X IT’s Study] Build Real World AI Applications with Gemini and Imagen (3)
·
Study/Google Skills
Build an application to send Chat Prompts using the Gemini model프롬프트 응답 방식에는 스트리밍 응답과 일반(비스트리밍) 응답이 있다. 스트리밍 응답은 모델이 출력 토큰(몇 글자)를 생성할 때마다 실시간으로 바로 출력한다. 일반 응답은 모든 출력 토큰이 생성된 후에 출력한다. Chat responses without using stream:from google import genaifrom google.genai.types import HttpOptions, ModelContent, Part, UserContentimport loggingfrom google.cloud import logging as gcp_logging# ------ Below cl..
[Google Study Jam X IT’s Study] Build Real World AI Applications with Gemini and Imagen (2)
·
Study/Google Skills
Build an AI Image Generator app using Imagen on Vertex AICode텍스트 프롬프트를 입력으로 받아 이미지를 생성한다.import argparseimport vertexaifrom vertexai.preview.vision_models import ImageGenerationModeldef generate_image( project_id: str, location: str, output_file: str, prompt: str) -> vertexai.preview.vision_models.ImageGenerationResponse: """Generate an image using a text prompt. Args: project_id: ..
[Google Study Jam X IT’s Study] Build Real World AI Applications with Gemini and Imagen (1)
·
Study/Google Skills
Build an AI Image Recognition app using Gemini on Vertex AI 목적Vertex AI SDK를 사용하여 Google의 AI 서비스에 연결하는 방법 학습미리 훈련된 생성 AI 모델을 사용하는 방법 학습AI가 처리해야 할 입력 (Image + Text)을 제공하는 방법에 대한 이해AI 모델에서 생성된 텍스트 응을 처리하고 해석하는 방법 학습AI 애플리케이션 구축의 기본 사항 이해 Working with Vertex AI Python SDK 환경 변수 설정export GOOGLE_CLOUD_PROJECT="project-id"export GOOGLE_CLOUD_LOCATION="REGION"export GOOGLE_GENAI_USE_VERTEXAI=True Code미..
[Google Study Jam X IT’s Study] Gemini in BigQuery (4)
·
Study/Google Skills
Implement Multimodal Vector Search with BigQuery: Challenge LabPROJECT_ID`qwiklabs-gcp-03-b5156984b274`CONNECTION_REGION`us-east1`CONNECTION_NAME`vector_conn`DATASET_NAME`gcc_bqml_dataset`OBJECT_TABLE_NAME`gcc_image_object_table`MODEL_NAME`gcc_embedding`DEFINE_ENDPOINT`ENDPOINT = 'multimodalembedding@001'`EMBEDDINGS_TABLE_NAME`gcc_retail_store_embeddings`SEARCH_RESULTS_TABLE`gcc_vector_search_ta..