Skip to content

Commit

Permalink
update docker env
Browse files Browse the repository at this point in the history
  • Loading branch information
cavalleria committed Aug 25, 2021
1 parent 98a2104 commit d951649
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![python-url](https://img.shields.io/badge/Python-3.x-red.svg)](https://www.python.org/)
[![pytorch-url](https://img.shields.io/badge/Pytorch>=1.4-blue.svg)](https://pytorch.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
![Docker Pulls](https://img.shields.io/docker/pulls/cavall/cavaface_env?logo=docker).

By Yaobin Li and Liying Chi

Expand Down
14 changes: 7 additions & 7 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
1: dict(
SEED=1337,
SYNC_DATA=True,
SYNC_DATA_NUMCLASS=50 * 10000, # 2059904,
SYNC_DATA_NUMCLASS=100 * 10000, # 2059904,
DATA_ROOT="../data/webface260m",
VAL_SET="lfw, cfp_fp, agedb_30",
MODEL_ROOT="../models/tmp/model",
IS_RESUME=False,
BACKBONE_RESUME_ROOT="",
HEAD_RESUME_ROOT="",
BACKBONE_NAME="IR_50", # support: ['MobileFaceNet', 'ResNet_50', 'ResNet_101', 'ResNet_152',
BACKBONE_NAME="IR_100", # support: ['MobileFaceNet', 'ResNet_50', 'ResNet_101', 'ResNet_152',
#'IR_50', 'IR_101', 'IR_152', 'IR_SE_50', 'IR_SE_100', 'IR_SE_101', 'IR_SE_152',
#'AttentionNet_IR_56', 'AttentionNet_IRSE_56','AttentionNet_IR_92', 'AttentionNet_IRSE_92',
#'ResNeSt_50', 'ResNeSt_101', 'ResNeSt_100']
HEAD_NAME="ArcFace", # ArcFace, ParallelArcFace
LOSS_NAME="CrossEntropy", # CrossEntropy, ParallelArcLoss
ENABLE_MODEL_PARALLEL=False,
HEAD_NAME="ParallelArcFace", # ArcFace, ParallelArcFace
LOSS_NAME="ParallelArcLoss", # CrossEntropy, ParallelArcLoss
ENABLE_MODEL_PARALLEL=True,
MODEL_PARALLEL_DIM=1, # -1/1/0
ENABLE_AMP=True,
OPTIMIZER="sgd",
ENABLE_ZERO_OPTIM=False,
ENABLE_ZERO_OPTIM=True,
INPUT_SIZE=[112, 112],
EMBEDDING_SIZE=512,
BATCH_SIZE=1024,
BATCH_SIZE=512,
EVAL_FREQ=2000,
LR=0.1,
LR_SCHEDULER="cosine",
Expand Down
12 changes: 1 addition & 11 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# Installation

## Requirements

1. Install pytorch==1.4.0 and torchvision==0.5.0 following [official instruction](https://pytorch.org/).
2. Clone this repo.
3. Install dependencies:

```python
pip install -r requirements.txt
```

4. (Option) If you are used to using docker, the dockerhub is [pytorch_env](https://hub.docker.com/r/cavall/pytorch_env) ![Docker Pulls](https://img.shields.io/docker/pulls/cavall/pytorch_env?logo=docker).
Please pull docker images [cavaface_env](https://hub.docker.com/r/cavall/cavaface_env)
1 change: 0 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ def print_pass(*args):
{"params": backbone_paras_only_bn},
]
if cfg["ENABLE_ZERO_OPTIM"]:
print("using ZeroRedundancyOptimizer")
optimizer = ZeroRedundancyOptimizer(
backbone.parameters(),
optimizer_class=torch.optim.SGD,
Expand Down

0 comments on commit d951649

Please sign in to comment.