Skip to content

Commit

Permalink
docs: update dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin committed Sep 4, 2024
1 parent 6b915cb commit f0b4737
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,22 @@ python requests_api.py -u http://127.0.0.1:8080 -t generate_layout_photos -i ./i

> 以下方式三选一
**拉取镜像:**

> 该镜像构建于 ARM 架构机器(如 Mac M1),x86 架构机器使用请用 Dockerfile 构建
> 用这种方式的,在第 2 步开始把镜像名`hivision_idphotos`改为`linzeyi/hivision_idphotos`
**方式一:拉取镜像:**

```bash
docker pull linzeyi/hivision_idphotos:v1
docker tag linzeyi/hivision_idphotos:v1 hivision_idphotos
```

**Dockrfile 构建镜像**
**方式二:Dockrfile 直接构建镜像**

在确保将模型权重文件[hivision_modnet.onnx](https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/tag/pretrained-model)放到根目录下后,在根目录执行:

```bash
docker build -t hivision_idphotos .
```

**Docker compose:**
**方式三:Docker compose 构建**

确保将模型权重文件 [hivision_modnet.onnx](https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/tag/pretrained-model) 放在根目录下后,在根目录下执行:

Expand Down
10 changes: 4 additions & 6 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,22 @@ python requests_api.py -u http://127.0.0.1:8080 -t generate_layout_photos -i ./i

> Choose one of the following three methods
**Pull Image from DockerHub:**

> This image is built on a machine with ARM architecture (e.g. Mac M1). If you want to use it on a machine with x86 architecture, please use Dockerfile.
> In this way, starting from step 2, change the image name `hivision_idphotos` to `linzeyi/hivision_idphotos`.
**Method 1 - Pull Image from DockerHub:**

```bash
docker pull linzeyi/hivision_idphotos:v1
docker tag linzeyi/hivision_idphotos:v1 hivision_idphotos
```

**Build Image:**
**Method 2 - Build Image:**

After ensuring that the model weight file [hivision_modnet.onnx](https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/tag/pretrained-model) is placed in the root directory, execute in the root directory:

```bash
docker build -t hivision_idphotos .
```

**Docker Compose:**
**Method 3 - Docker Compose:**

After ensuring that the model weight file [hivision_modnet.onnx](https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/tag/pretrained-model) is placed in the root directory, execute in the root directory:

Expand Down
9 changes: 5 additions & 4 deletions README_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,16 @@ python requests_api.py -u http://127.0.0.1:8080 -t generate_layout_photos -i ./i

## 1. イメージの取得またはビルド

**イメージの取得:**
> 以下の方法から 1 つを選択してください
> このイメージは ARM アーキテクチャマシン(例:Mac M1)で構築されており、x86 アーキテクチャマシンを使用する場合は Dockerfile を使用してください。
**方法その 1 です:イメージの取得:**

```bash
docker pull linzeyi/hivision_idphotos:v1
docker tag linzeyi/hivision_idphotos:v1 hivision_idphotos
```

**Dockrfile によるイメージの構築:**
**方法その 2 です:Dockrfile によるイメージの構築:**

> 次の 3 つの方法から 1 つを選択してください
Expand All @@ -150,7 +151,7 @@ docker pull linzeyi/hivision_idphotos:v1
docker build -t hivision_idphotos .
```

**Docker Compose:**
**方法その 3 です:Docker Compose:**

モデルのウェイトファイル[hivision_modnet.onnx](https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/tag/pretrained-model)がルートディレクトリに置かれていることを確認したら、ルートディレクトリで実行します:

Expand Down
9 changes: 4 additions & 5 deletions README_KO.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,22 @@ python requests_api.py -u http://127.0.0.1:8080 -t generate_layout_photos -i ./i

> 다음 3가지 방법 중 하나를 선택하십시오.
**이미지 가져오기:**

> 이 이미지는 ARM 아키텍처 머신(Mac M1 등)에서 빌드되었습니다. x86 아키텍처 머신에서 사용할 경우 Dockerfile을 사용하여 빌드하세요.
**방법 1:이미지 가져오기:**

```bash
docker pull linzeyi/hivision_idphotos:v1
docker tag linzeyi/hivision_idphotos:v1 hivision_idphotos
```

**Dockerfile로 이미지 빌드:**
**방법 2:Dockerfile로 이미지 빌드:**

모델 가중치 파일 [hivision_modnet.onnx](https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/tag/pretrained-model)을 루트 디렉토리에 놓고, 루트 디렉토리에서 다음 명령어를 실행하세요:

```bash
docker build -t hivision_idphotos .
```

**Docker Compose:**
**방법 3:Docker Compose:**

모델 가중치 파일 [hivision_modnet.onnx](https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/tag/pretrained-model)가 루트 디렉터리에 있는지 확인한 후 루트 디렉터리에서 실행합니다:

Expand Down

0 comments on commit f0b4737

Please sign in to comment.