Skip to content

Commit 819c881

Browse files
committed
update README
1 parent 4e6a818 commit 819c881

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ Please download the model weights and put them into each subset of `checkpoints`
102102
|:----------:|:------------------------------------------------------------------------------------|
103103
| LineArt | [model](https://huggingface.co/limingcv/reward_controlnet/tree/main/checkpoints/lineart) |
104104
| Depth | [model](https://huggingface.co/limingcv/reward_controlnet/tree/main/checkpoints/depth) |
105-
| Segmentation | [model](https://huggingface.co/limingcv/reward_controlnet/tree/main/checkpoints/seg) |
106105
| Hed (SoftEdge) | [model](https://huggingface.co/limingcv/reward_controlnet/tree/main/checkpoints/hed) |
107106
| Canny | [model](https://huggingface.co/limingcv/reward_controlnet/tree/main/checkpoints/canny) |
107+
| Segmentation (ADE20K) | [UperNet-R50](https://huggingface.co/limingcv/reward_controlnet/tree/main/checkpoints/ade20k_reward-model-UperNet-R50/checkpoint-5000/controlnet), [FCN-R101](https://huggingface.co/limingcv/reward_controlnet/tree/main/checkpoints/ade20k_reward-model-FCN-R101-d8/checkpoint-5000/controlnet) |
108+
| Segmentation (COCOStuff) | [model](https://huggingface.co/limingcv/reward_controlnet/tree/main/checkpoints/cocostuff/reward_5k) |
108109

109110
Please make sure the folder directory is consistent with the test script, then you can eval each model by:
110111
```bash
@@ -116,7 +117,7 @@ bash eval/eval_hed.sh
116117
bash eval/eval_linedrawing.sh
117118
```
118119

119-
The ADE20K segmentation results in the arxiv version were tested using images and labels saved in `.jpg` format, which led to errors. We will retest and report the results using images and labels saved in `.png` format.
120+
The ADE20K segmentation results in the arXiv v1 version of the paper were tested using images and labels saved in `.jpg` format, which resulted in errors. We retested and reported the results using images and labels saved in `.png` format, please refer to our latest arXiv and ECCV Camera Ready releases.
120121

121122
## 🕹️ Inference
122123
Please refer to the [Inference Branch](https://github.com/liming-ai/ControlNet_Plus_Plus/tree/inference) or try our [online Huggingface demo](https://huggingface.co/spaces/limingcv/ControlNet-Plus-Plus)

eval/eval_cocostuff.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Path to the controlnet weight (can be huggingface or local path)
2-
export CONTROLNET_DIR="lllyasviel/control_v11p_sd15_seg"
2+
# export CONTROLNET_DIR="lllyasviel/control_v11p_sd15_seg" # Eval ControlNet
3+
export CONTROLNET_DIR="checkpoints/cocostuff/reward_5k" # Eval our ControlNet++
34
# How many GPUs and processes you want to use for evaluation.
45
export NUM_GPUS=8
56
# Guidance scale and inference steps
@@ -17,7 +18,7 @@ export DATA_DIR="work_dirs/eval_dirs/Captioned_COCOStuff/validation/${CONTROLNET
1718
# Evaluation with mmseg api
1819
mim test mmseg mmlab/mmseg/deeplabv3_r101-d8_4xb4-320k_coco-stuff164k-512x512.py \
1920
--checkpoint https://download.openmmlab.com/mmsegmentation/v0.5/deeplabv3/deeplabv3_r101-d8_512x512_4x4_320k_coco-stuff164k/deeplabv3_r101-d8_512x512_4x4_320k_coco-stuff164k_20210709_155402-3cbca14d.pth \
20-
--gpus 4 \
21+
--gpus 8 \
2122
--launcher pytorch \
2223
--cfg-options test_dataloader.dataset.datasets.0.data_root="${DATA_DIR}" \
2324
test_dataloader.dataset.datasets.1.data_root="${DATA_DIR}" \

0 commit comments

Comments
 (0)