Skip to content

Commit 57ad319

Browse files
committed
fix other math expressions
1 parent ccaf6da commit 57ad319

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -442,23 +442,23 @@ Below are some notable common names recommended for use, but others can be emplo
442442
- `score`
443443
- `confidence`
444444

445-
For example, a tensor of multiple RBG images represented as $B \times C \times H \times W$ should
445+
For example, a tensor of multiple RBG images represented as $`B \times C \times H \times W`$ should
446446
indicate `dim_order = ["batch", "channel", "height", "width"]`.
447447

448448
#### Value Scaling Object
449449

450450
Select one option from:
451451

452-
| `type` | Required Properties | Scaling Operation |
453-
|--------------|-------------------------------------------------|------------------------------------------|
454-
| `min-max` | `minimum`, `maximum` | $(data - minimum) / (maximum - minimum)$ |
455-
| `z-score` | `mean`, `stddev` | $(data - mean) / stddev$ |
456-
| `clip` | `minimum`, `maximum` | $\min(\max(data, minimum), maximum)$ |
457-
| `clip-min` | `minimum` | $\max(data, minimum)$ |
458-
| `clip-max` | `maximum` | $\min(data, maximum)$ |
459-
| `offset` | `value` | $data - value$ |
460-
| `scale` | `value` | $data / value$ |
461-
| `processing` | [Processing Expression](#processing-expression) | *according to `processing:expression`* |
452+
| `type` | Required Properties | Scaling Operation |
453+
| ------------ | ----------------------------------------------- | ------------------------------------------ |
454+
| `min-max` | `minimum`, `maximum` | $`(data - minimum) / (maximum - minimum)`$ |
455+
| `z-score` | `mean`, `stddev` | $`(data - mean) / stddev`$ |
456+
| `clip` | `minimum`, `maximum` | $`\min(\max(data, minimum), maximum)`$ |
457+
| `clip-min` | `minimum` | $`\max(data, minimum)`$ |
458+
| `clip-max` | `maximum` | $`\min(data, maximum)`$ |
459+
| `offset` | `value` | $`data - value`$ |
460+
| `scale` | `value` | $`data / value`$ |
461+
| `processing` | [Processing Expression](#processing-expression) | *according to `processing:expression`* |
462462

463463
When a scaling `type` approach is specified, it is expected that the parameters necessary
464464
to perform their calculation are provided for the corresponding input dimension data.
@@ -573,11 +573,11 @@ as for `regression`, `image-captioning`, `super-resolution` and some `generative
573573

574574
#### Result Structure Object
575575

576-
| Field Name | Type | Description |
577-
|------------|----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
578-
| shape | \[integer] | **REQUIRED** Shape of the n-dimensional result array (e.g.: $B \times H \times W$ or $B \times C$), possibly including a batch size dimension. The dimensions must either be greater than 0 or -1 to indicate a variable size. |
579-
| dim_order | \[[Dimension Order](#dimension-order)] | **REQUIRED** Order of the `shape` dimensions by name for the result array. |
580-
| data_type | [Data Type Enum](#data-type-enum) | **REQUIRED** The data type of values in the n-dimensional array. For model outputs, this should be the data type of the result of the model inference without extra post processing. |
576+
| Field Name | Type | Description |
577+
| ---------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
578+
| shape | \[integer] | **REQUIRED** Shape of the n-dimensional result array (e.g.: $`B \times H \times W`$ or $`B \times C`$), possibly including a batch size dimension. The dimensions must either be greater than 0 or -1 to indicate a variable size. |
579+
| dim_order | \[[Dimension Order](#dimension-order)] | **REQUIRED** Order of the `shape` dimensions by name for the result array. |
580+
| data_type | [Data Type Enum](#data-type-enum) | **REQUIRED** The data type of values in the n-dimensional array. For model outputs, this should be the data type of the result of the model inference without extra post processing. |
581581

582582
#### Class Object
583583

0 commit comments

Comments
 (0)