From 39e62199ca9cb58e4eac7186c603a77ef140baec Mon Sep 17 00:00:00 2001 From: "Scott H. Hawley" Date: Wed, 15 Sep 2021 23:13:33 -0500 Subject: [PATCH 1/2] casting caption parts as str to avoid Kept getting error: ``` TypeError: can only concatenate str (not "numpy.int64") to str ``` --- icevision/visualize/draw_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icevision/visualize/draw_data.py b/icevision/visualize/draw_data.py index 528f970e6..dca107055 100644 --- a/icevision/visualize/draw_data.py +++ b/icevision/visualize/draw_data.py @@ -238,7 +238,7 @@ def draw_label( caption = str(label) if prettify: # We could introduce a callback here for more complex label renaming - caption = prefix + caption + caption = str(prefix) + str(caption) caption = prettify_func(caption) # Append label confidence to caption if applicable From 236d1672ffc9b58fa0c6987e9d4a8158c36f7648 Mon Sep 17 00:00:00 2001 From: "Scott H. Hawley" Date: Fri, 17 Sep 2021 11:18:30 -0500 Subject: [PATCH 2/2] Fix version error on mmcvt: 1.3.3 -> 1.3.8 Fixes `AssertionError: MMCV==1.3.3 is used but incompatible. Please install mmcv>=1.3.8, <=1.4.0`. --- docs/INSTALL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index ea45181df..76bc51746 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -79,7 +79,7 @@ We need to provide the appropriate version of the `mmcv-full` package as well as #### CUDA-Version Installation Example
```console -$ pip install mmcv-full=="1.3.3" -f https://download.openmmlab.com/mmcv/dist/CUDA_VERSION/TORCH_VERSION/index.html --upgrade +$ pip install mmcv-full=="1.3.8" -f https://download.openmmlab.com/mmcv/dist/CUDA_VERSION/TORCH_VERSION/index.html --upgrade $ pip install mmdet ```
@@ -87,7 +87,7 @@ $ pip install mmdet #### CPU-Version Installation
```console -$ pip install mmcv-full=="1.3.3+torch.1.8.0+cpu" -f https://download.openmmlab.com/mmcv/dist/index.html --upgrade +$ pip install mmcv-full=="1.3.8+torch.1.8.0+cpu" -f https://download.openmmlab.com/mmcv/dist/index.html --upgrade $ pip install mmdet ```