You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ There are three training steps involved.
187
187
188
188
1. Five random seeds on 5-fold cross-validation on the `Adience` dataset.
189
189
190
-
Since the reported metrics (i.e. accuracy) is 5-fold cross-validation, we will do the same here. In order to get the least biased numbers, we run this five times each with a different seed. This means that we are training in total of 25 times and report the average of the 25 numbers. Configure the values in `cross-val.json` and run `python cross-val.py`.
190
+
Since the reported metrics (i.e., accuracy) is 5-fold cross-validation, we will do the same here. In order to get the least biased numbers, we run this five times each with a different seed. This means that we are training in total of 25 times and report the average of the 25 numbers. Configure the values in `cross-val.json` and run `python cross-val.py`.
@@ -257,9 +257,29 @@ Check out [this demo video](https://youtu.be/Dna_Hp-s78I).
257
257
python3 app.py
258
258
```
259
259
260
-
After running the container (i.e. `docker run -it --rm -p 10003:10003 tae898/age-gender`), you can run `client.py` (e.g. `python client.py --image-path test-images/matrix-tae-final_exported_37233.jpg`) to get estimated genders and ages in the picture.
260
+
### Running a client
261
261
262
-
NB: You also have to run the face-detection-recognition (`docker run -it --rm -p 10002:10002 tae898/face-detection-recognition`forCPU or `docker run --gpus all -it --rm -p 10002:10002 tae898/face-detection-recognition-cuda` for cuda), before running `client.py`. This separation might be annoying but the modularization will helpin the future.
262
+
First install the requirements by running `pip install requirements-client.txt`, and then run the two containers:
263
+
264
+
1. `docker run -it --rm -p 10002:10002 tae898/face-detection-recognition`for CPU or `docker run --gpus all -it --rm -p 10002:10002 tae898/face-detection-recognition-cuda`for cuda.
265
+
1. `docker run -it --rm -p 10003:10003 tae898/age-gender`for CPU or `docker run -it --rm -p 10003:10003 --gpus all tae898/age-gender-cuda`for cuda.
266
+
267
+
Now that the two containers are running, you can run `client.py`. There are two options to run the client.
0 commit comments