Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix: correct formatting in kernel initialization in rec_lcnetv3.py

myhlolic922c63fbc7c
diff --git a/mineru/model/utils/pytorchocr/modeling/backbones/rec_lcnetv3.py b/mineru/model/utils/pytorchocr/modeling/backbones/rec_lcnetv3.py
index 2c7703e4..b4793d8d 100644
--- a/mineru/model/utils/pytorchocr/modeling/backbones/rec_lcnetv3.py
+++ b/mineru/model/utils/pytorchocr/modeling/backbones/rec_lcnetv3.py
@@ -256,7 +256,7 @@ class LearnableRepLayer(nn.Module):
input_dim = self.in_channels // self.groups
kernel_value = torch.zeros(
(self.in_channels, input_dim, self.kernel_size, self.kernel_size),
- dtype=branch.weight.dtype, device= branch.weight.device,
+ dtype=branch.weight.dtype, device=branch.weight.device,
)
for i in range(self.in_channels):
kernel_value[