Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

이미지 지우기 AI 탐색 #1

Closed
SAgiKPJH opened this issue Dec 19, 2023 · 7 comments
Closed

이미지 지우기 AI 탐색 #1

SAgiKPJH opened this issue Dec 19, 2023 · 7 comments

Comments

@SAgiKPJH
Copy link
Contributor

SAgiKPJH commented Dec 19, 2023

1차 발견

@SAgiKPJH
Copy link
Contributor Author

Inpainting 논문

@SAgiKPJH
Copy link
Contributor Author

SAgiKPJH commented Dec 19, 2023

@SAgiKPJH
Copy link
Contributor Author

SAgiKPJH commented Dec 19, 2023

LaMa?

  • Large Mask Inpainting, 대형 마스크 인페인팅

@SAgiKPJH
Copy link
Contributor Author

Lama

@SAgiKPJH
Copy link
Contributor Author

참고할 만한 논문
https://subinium.github.io/LR007/

@SAgiKPJH
Copy link
Contributor Author

LaMa Docker로 활용하기

  1. LaMa git hub zip 다운 (https://github.com/advimman/lama/tree/main?tab=readme-ov-file)
  2. docker 폴더 내부 3_evaluate.sh 실행 (Linux)
  3. 명령어 실행
    Usage: ./3_evaluate.sh original_dataset_dir predictions_dir output_dir [other arguments to evaluate_predicts.py]

    ./3_evaluate.sh original predic out

@SAgiKPJH
Copy link
Contributor Author

SAgiKPJH commented Dec 28, 2023

simple LaMa

https://github.com/enesmsahin/simple-lama-inpainting

from simple_lama_inpainting import SimpleLama
from PIL import Image

simple_lama = SimpleLama()

img_path = "image.png"
mask_path = "mask.png"

image = Image.open(img_path)
mask = Image.open(mask_path).convert('L')

result = simple_lama(image, mask)
result.save("inpainted.png")

다음과 같이 쉽게 활용이 가능합니다.

@SAgiKPJH SAgiKPJH closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant