2025-12-02 14:15:49 +09:00
|
|
|
# GLASSES_AI_SERVER
|
2025-01-14 13:42:47 +09:00
|
|
|
|
2025-01-14 17:26:27 +09:00
|
|
|
RESTful API Server
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### System Requirements
|
|
|
|
|
- Ubuntu 22.04
|
|
|
|
|
- python 3.12
|
|
|
|
|
- python packages: requirements.txt
|
|
|
|
|
|
|
|
|
|
### imagen
|
2025-01-16 15:17:12 +09:00
|
|
|
google cli 설치
|
|
|
|
|
```
|
|
|
|
|
https://cloud.google.com/sdk/docs/install?hl=ko#linux
|
|
|
|
|
```
|
2025-04-14 13:06:13 +09:00
|
|
|
```
|
|
|
|
|
gcloud init
|
|
|
|
|
gcloud auth application-default login
|
2025-07-30 13:29:24 +09:00
|
|
|
gcloud config set compute/region asia-east1
|
2025-04-14 13:06:13 +09:00
|
|
|
```
|
|
|
|
|
https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment?hl=ko
|
|
|
|
|
|
2025-03-18 13:05:31 +09:00
|
|
|
### cookie
|
2025-01-16 15:17:12 +09:00
|
|
|
```
|
|
|
|
|
https://github.com/acheong08/BingImageCreator
|
|
|
|
|
```
|
2025-01-14 17:26:27 +09:00
|
|
|
|
2025-04-28 11:26:19 +09:00
|
|
|
### faiss
|
|
|
|
|
검색된 이미지는 search_'matching'.png 로 저장됨
|
|
|
|
|
matching : 매칭률 (클수록 좋음)
|
|
|
|
|
|
2025-01-16 15:17:12 +09:00
|
|
|
### notice
|
2025-04-28 11:26:19 +09:00
|
|
|
const.py 에 지정한 OUTPUT_FOLDER 하위폴더에 이미지 저장됨.
|
|
|
|
|
faiss api 사용시 rest_vactor 서버 구동해야함.
|