ultralytics 8.0.12 - Hydra removal (#506)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pronoy Mandal <lukex9442@gmail.com> Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com>
This commit is contained in:
parent
6eec39162a
commit
c5fccc3fc4
37 changed files with 395 additions and 469 deletions
|
|
@ -6,9 +6,9 @@ Inference or prediction of a task returns a list of `Results` objects. Alternati
|
|||
inputs = [img, img] # list of np arrays
|
||||
results = model(inputs) # List of Results objects
|
||||
for result in results:
|
||||
boxes = results.boxes # Boxes object for bbox outputs
|
||||
masks = results.masks # Masks object for segmenation masks outputs
|
||||
probs = results.probs # Class probabilities for classification outputs
|
||||
boxes = result.boxes # Boxes object for bbox outputs
|
||||
masks = result.masks # Masks object for segmenation masks outputs
|
||||
probs = result.probs # Class probabilities for classification outputs
|
||||
...
|
||||
```
|
||||
=== "Getting a Generator"
|
||||
|
|
@ -16,9 +16,9 @@ Inference or prediction of a task returns a list of `Results` objects. Alternati
|
|||
inputs = [img, img] # list of np arrays
|
||||
results = model(inputs, stream=True) # Generator of Results objects
|
||||
for result in results:
|
||||
boxes = results.boxes # Boxes object for bbox outputs
|
||||
masks = results.masks # Masks object for segmenation masks outputs
|
||||
probs = results.probs # Class probabilities for classification outputs
|
||||
boxes = result.boxes # Boxes object for bbox outputs
|
||||
masks = result.masks # Masks object for segmenation masks outputs
|
||||
probs = result.probs # Class probabilities for classification outputs
|
||||
...
|
||||
```
|
||||
|
||||
|
|
@ -69,4 +69,4 @@ results.masks.segments # bounding coordinates of masks, List[segment] * N
|
|||
results.probs # cls prob, (num_class, )
|
||||
```
|
||||
|
||||
Class reference documentation for `Results` module and its components can be found [here](reference/results.md)
|
||||
Class reference documentation for `Results` module and its components can be found [here](reference/results.md)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue