Skip to content

[TSR] Add TableCenterNet & table_predictor#2092

Draft
felixdittrich92 wants to merge 10 commits into
mindee:mainfrom
felixdittrich92:tablecenternet
Draft

[TSR] Add TableCenterNet & table_predictor#2092
felixdittrich92 wants to merge 10 commits into
mindee:mainfrom
felixdittrich92:tablecenternet

Add docs

34f7e9f
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jun 29, 2026 in 0s

145 new issues (0 max.) of at least severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 145
           

Complexity increasing per file
==============================
- doctr/models/utils/pytorch.py  2
- doctr/models/factory/hub.py  1
- doctr/models/modules/layers/pytorch.py  3
- doctr/datasets/table_structure.py  1
- doctr/models/table_structure/predictor/pytorch.py  11
- doctr/models/table_structure/tablecenternet/base.py  92
- doctr/models/table_structure/tablecenternet/pytorch.py  53
- doctr/models/table_structure/zoo.py  5
- references/table/evaluate.py  19
- references/table/latency.py  4
- references/table/train.py  98
- references/table/utils.py  24
- tests/common/test_models_table_structure.py  16
- tests/pytorch/test_models_table_structure_pt.py  33
         

See the complete overview on Codacy

Annotations

Check notice on line 54 in doctr/datasets/table_structure.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/datasets/table_structure.py#L54

Missing docstring in __init__ (D107)

Check warning on line 1 in doctr/models/table_structure/predictor/__init__.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/predictor/__init__.py#L1

'.pytorch.*' imported but unused (F401)

Check notice on line 1 in doctr/models/table_structure/predictor/__init__.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/predictor/__init__.py#L1

Missing docstring in public package (D104)

Check notice on line 20 in doctr/models/table_structure/predictor/pytorch.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/predictor/pytorch.py#L20

Multi-line docstring summary should start at the second line (D213)

Check notice on line 27 in doctr/models/table_structure/predictor/pytorch.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/predictor/pytorch.py#L27

Missing docstring in __init__ (D107)

Check warning on line 1 in doctr/models/table_structure/tablecenternet/__init__.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/__init__.py#L1

'.base.*' imported but unused (F401)

Check warning on line 2 in doctr/models/table_structure/tablecenternet/__init__.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/__init__.py#L2

'.pytorch.*' imported but unused (F401)

Check notice on line 20 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L20

First line should end with a period, question mark, or exclamation point (not 'l') (D415)

Check notice on line 81 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L81

Missing blank line after last section ('Returns') (D413)

Check notice on line 98 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L98

1 blank line required before class docstring (found 0) (D203)

Check notice on line 98 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L98

Missing dashed underline after section ('Args') (D407)

Check notice on line 112 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L112

Missing docstring in __init__ (D107)

Check warning on line 280 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L280

Try, Except, Continue detected.

Check notice on line 310 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L310

Missing dashed underline after section ('Returns') (D407)

Check notice on line 310 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L310

Section name should end with a newline ('Returns', not 'Returns:') (D406)

Check notice on line 419 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L419

Missing blank line after last section ('Returns') (D413)

Check notice on line 419 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L419

Missing dashed underline after section ('Returns') (D407)

Check notice on line 419 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L419

Section name should end with a newline ('Returns', not 'Returns:') (D406)

Check notice on line 445 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L445

Multi-line docstring summary should start at the second line (D213)

Check notice on line 461 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L461

Missing blank line after last section ('Returns') (D413)

Check notice on line 461 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L461

Multi-line docstring summary should start at the second line (D213)

Check notice on line 461 in doctr/models/table_structure/tablecenternet/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/base.py#L461

Section name should end with a newline ('Returns', not 'Returns:') (D406)

Check notice on line 54 in doctr/models/table_structure/tablecenternet/pytorch.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/pytorch.py#L54

1 blank line required before class docstring (found 0) (D203)

Check notice on line 54 in doctr/models/table_structure/tablecenternet/pytorch.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/pytorch.py#L54

Missing blank line after last section ('Args') (D413)

Check notice on line 54 in doctr/models/table_structure/tablecenternet/pytorch.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/table_structure/tablecenternet/pytorch.py#L54

Multi-line docstring summary should start at the second line (D213)