목록비전 AI (VISION) (16)
토니의 연습장
# Copyright (c) Meta Platforms, Inc. and affiliates.# All rights reserved.# This source code is licensed under the license found in the# LICENSE file in the root directory of this source tree.import torchfrom torch import nnfrom torch.nn import functional as Ffrom typing import Any, Dict, List, Tuplefrom .image_encoder import ImageEncoderViTfrom .mask_decoder import MaskDecoderfrom .prompt_encod..

Replicate AI - FLUX LoRA 모델 사용출처 : https://youtu.be/c1fCRP9S1NQ Replicate - Run AI with an APIDeploying machine learning models at scale is hard. If you've tried, you know. API servers, weird dependencies, enormous model weights, CUDA, GPUs, batching.replicate.com Pixel DOJO - FLUX LoRA 모델 사용출처 : https://youtu.be/OoMGLfXCzsI https://fluxproweb.com/flux-ai-image-generator/ Free Flux AI Online f..

아래 예시 코드는 n8n에서 보여지는 플로우(트리거 → 유튜브 자막 추출 → 요약 → 정보 추출 → AI Agent → 데이터 머지 → 디스코드 발송/노션 저장 → …)를 파이썬에서 유사한 기능으로 구성했을 때의 예시입니다. 실제 서비스에 사용하기 위해서는 각종 API 키, 보안, 에러 처리, 예외 상황 대응 등이 추가로 필요하며, 경우에 따라 더 세분화된 로직이 요구될 수 있습니다. 또한 설명을 돕기 위한 간소화된 예시이므로 필요에 맞게 수정하여 사용하세요.1. Trigger (예시: 스크립트 시작 또는 Flask 엔드포인트)n8n의 “When clicking ‘Test workflow’”처럼, 파이썬 스크립트가 시작되는 시점을 트리거로 봅니다. 간단히 “main.py”로 시작하는 경우 예시는 아래와 ..

If you encounter an error with Easy GetNode/SetNode when running ComfyUI, follow these steps to resolve it:(Simply installing KJNodes from Custom Node Installation may not resolve the issue.) Modify the config.ini file to set security_level to weak. In the "Install via Git URL" section, enter https://github.com/yolain/ComfyUI-Easy-Use.git and proceed with the installation.
In [ ]:# import the librariesimport torch, pdbfrom torch.utils.data import DataLoaderfrom torch import nnfrom torchvision import transformsfrom torchvision.datasets import MNISTfrom torchvision.utils import make_gridfrom tqdm.auto import tqdmimport matplotlib.pyplot as plt/home/joseph/miniconda3/envs/multimodal/lib/python3.11/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load ..

txt2img img2img (with txt) SDXLTurbo DreamShaperXL turbo

ComfyUI 실행시 easy GetNode/SetNode 에러가 발생하면 아래와 같이 조치하면 됩니다.(간단히 Custom Node 설치에서 KJNodes 설치해서 해결되지 않을 경우) config.ini 에서 security_level 을 weak 으로 변경해 줍니다. Install via Git URL에서 https://github.com/yolain/ComfyUI-Easy-Use.git 를 입력하여 설치를 진행해 줍니다.
실시간 작동을 위한 속도에도 주안점을 둔 object detection 모델입니다.한 번의 loss 계산으로 detection 문제를 해결하며, 모델 성능 개선 / 모델 효율 개선 등 번갈아가며 현재 v10까지 나온 상태입니다. YOLO v1 (2016)DarkNet (convolution network) : Backbone224*224로 이미지 조정하여 학습 후 7*7*256의 output feature로 출력되고, 448*448 Detection을 실시합니다.총 7*7 grid로 embedding 됩니다.Grid cell 당 2개의 bounding box가 설정되며, Cell 당 object confidence score / bounding box / class probability 정보 output..