Skip to content

Commit 9adfa7f

Browse files
authored
Update README.md
1 parent 380ad22 commit 9adfa7f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -150,26 +150,27 @@ where NGPUS is the number of gpus available.
150150

151151
* Vanilla scene graph generation model with resnet-101 as backbone:
152152
```
153-
python main.py --config-file configs/baseline_res101_joint.yaml
153+
python main.py --config-file configs/sgg_res101_joint.yaml --algorithm $ALGORITHM
154154
```
155155

156156
Multi-GPU training:
157157
```
158-
python -m torch.distributed.launch --nproc_per_node=$NGPUS main.py --config-file configs/baseline_res101_joint.yaml
158+
python -m torch.distributed.launch --nproc_per_node=$NGPUS main.py --config-file configs/sgg_res101_joint.yaml --algorithm $ALGORITHM
159159
```
160-
where NGPUS is the number of gpus available.
160+
where NGPUS is the number of gpus available. ALGORIHM is the scene graph generation model name.
161161

162162
### Train scene graph generation model stepwise (train detector first, and then sgg):
163163

164164
* Vanilla scene graph generation model with resnet-101 as backbone:
165165
```
166-
python main.py --config-file configs/baseline_res101_step.yaml
166+
python main.py --config-file configs/sgg_res101_step.yaml --algorithm $ALGORITHM
167167
```
168168

169169
Multi-GPU training:
170170
```
171-
python -m torch.distributed.launch --nproc_per_node=$NGPUS main.py --config-file configs/baseline_res101_step.yaml
171+
python -m torch.distributed.launch --nproc_per_node=$NGPUS main.py --config-file configs/sgg_res101_step.yaml --algorithm $ALGORITHM
172172
```
173+
where NGPUS is the number of gpus available. ALGORIHM is the scene graph generation model name.
173174

174175
## Evaluate
175176

@@ -188,12 +189,12 @@ where CHECKPOINT is the iteration number. By default it will evaluate the whole
188189

189190
* Vanilla scene graph generation model with resnet-101 as backbone:
190191
```
191-
python main.py --config-file configs/baseline_res101_{joint/step}.yaml --inference --resume $CHECKPOINT
192+
python main.py --config-file configs/baseline_res101_{joint/step}.yaml --inference --resume $CHECKPOINT --algorithm $ALGORITHM
192193
```
193194

194195
* Vanilla scene graph generation model with resnet-101 as backbone and use frequency prior:
195196
```
196-
python main.py --config-file configs/baseline_res101_{joint/step}.yaml --inference --resume $CHECKPOINT --use_freq_prior
197+
python main.py --config-file configs/baseline_res101_{joint/step}.yaml --inference --resume $CHECKPOINT --algorithm $ALGORITHM --use_freq_prior
197198
```
198199

199200
Similarly you can also append the ''--inference $YOUR_NUMBER'' to perform partially evaluate.

0 commit comments

Comments
 (0)