Tong Gao 33cbc9b92f
[Docs] Inferencer docs (#1744)
* [Enhancement] Support batch visualization & dumping in Inferencer

* fix empty det output

* Update mmocr/apis/inferencers/base_mmocr_inferencer.py

Co-authored-by: liukuikun <24622904+Harold-lkk@users.noreply.github.com>

* [Docs] Inferencer docs

* fix

* Support weight_list

* add req

* improve md

* inferencers.md

* update

* add tab

* refine

* polish

* add cn docs

* js

* js

* js

* fix ch docs

* translate

* translate

* finish

* fix

* fix

* fix

* update

* standard inferencer

* update docs

* update docs

* update docs

* update docs

* update docs

* update docs

* en

* update

* update

* update

* update

* fix

* apply sugg

---------

Co-authored-by: liukuikun <24622904+Harold-lkk@users.noreply.github.com>
2023-03-07 18:52:41 +08:00

32 lines
981 B
JavaScript

$(document).ready(function () {
table = $('.model-summary').DataTable({
"stateSave": false,
"lengthChange": false,
"pageLength": 10,
"order": [],
"scrollX": true,
"columnDefs": [
{ "type": "summary", targets: '_all' },
]
});
// Override the default sorting for the summary columns, which
// never takes the "-" character into account.
jQuery.extend(jQuery.fn.dataTableExt.oSort, {
"summary-asc": function (str1, str2) {
if (str1 == "<p>-</p>")
return 1;
if (str2 == "<p>-</p>")
return -1;
return ((str1 < str2) ? -1 : ((str1 > str2) ? 1 : 0));
},
"summary-desc": function (str1, str2) {
if (str1 == "<p>-</p>")
return 1;
if (str2 == "<p>-</p>")
return -1;
return ((str1 < str2) ? 1 : ((str1 > str2) ? -1 : 0));
}
});
})