34 lines
767 B
Markdown
34 lines
767 B
Markdown
# GLASSES_AI_SERVER
|
|
|
|
RESTful API Server
|
|
|
|
|
|
### System Requirements
|
|
- Ubuntu 22.04
|
|
- python 3.12
|
|
- python packages: requirements.txt
|
|
|
|
### imagen
|
|
google cli 설치
|
|
```
|
|
https://cloud.google.com/sdk/docs/install?hl=ko#linux
|
|
```
|
|
```
|
|
gcloud init
|
|
gcloud auth application-default login
|
|
gcloud config set compute/region asia-east1
|
|
```
|
|
https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment?hl=ko
|
|
|
|
### cookie
|
|
```
|
|
https://github.com/acheong08/BingImageCreator
|
|
```
|
|
|
|
### faiss
|
|
검색된 이미지는 search_'matching'.png 로 저장됨
|
|
matching : 매칭률 (클수록 좋음)
|
|
|
|
### notice
|
|
const.py 에 지정한 OUTPUT_FOLDER 하위폴더에 이미지 저장됨.
|
|
faiss api 사용시 rest_vactor 서버 구동해야함. |