Commit cc171a8
authored
Throw error with description when there are no valid user click/signals (#5598)
Signed-off-by: Sachidanand Alle <sachidanand.alle@gmail.com>
Fixes # .
Throw error with description when there are no valid user click/signals
### Description
Instead of torch.stack error, provide readable description when the
signal is not valid, and no valid bounding boxes could be created based
on user click points.
A few sentences describing the changes proposed in this pull request.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
Signed-off-by: Sachidanand Alle <sachidanand.alle@gmail.com>1 parent 0c2fbac commit cc171a8
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
| |||
0 commit comments