Skip to content

Commit 5d20ade

Browse files
author
wbw520
committed
update read me
1 parent 967ccad commit 5d20ade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ python main_recon.py --num_classes 10 --num_cpt 20 --lr 0.001 --epoch 50 --lr_dr
2222
```
2323
Use the following command for the inference of a sample. You can change the index to select different input samples. Change deactivate (deactivate one concept, 1 to num_class) and see the changes of reconstruction. Change top-sample (top-10 in the paper) to show more details for a concept. Visualization for the input sample and all concepts are shown at folder "vis" and "vis_pp", respectively.
2424
```
25-
python vis_recon.py --num_classes 10 --num_cpt 20 --index 0 --top_sample 20 --top_sample 20 --deactivate -1
25+
python vis_recon.py --num_classes 10 --num_cpt 20 --index 0 --top_sample 10 ---deactivate -1
2626
```
2727

2828
#### Usage for CUB200, ImageNet, Synthetic and Custom
@@ -42,5 +42,5 @@ First run process.py to extarct the activation for all dataset samples:
4242
python process.py
4343
4444
Then see the generated concepts by:
45-
python vis_retri.py --num_classes 50 --num_cpt 20 --base_model resnet18 --index 300 --top_sample 20 --dataset CUB200
45+
python vis_retri.py --num_classes 50 --num_cpt 20 --base_model resnet18 --index 300 --top_sample 10 --dataset CUB200
4646
```

0 commit comments

Comments
 (0)