layout-parser
layout-parser copied to clipboard
Symbol Not Found
I'm getting this error when attempting to run the following lines of code:
config = "lp://TableBank/faster_rcnn_R_101_FPN_3x/config" # TableBank configuration (from model zoo) model = lp.Detectron2LayoutModel(config) layout = model.detect(image)
Symbol not found: __Z16THPVariable_WrapN2at6TensorE
I think the problem is majorly about the way you've installed pytorch and Detectron2.
One thing to try first is whether pytorch is successfully installed -- e.g.,
import torch
torch.tensor([1,2])+torch.tensor([1,2])
If that works, then this might be an issue from Detectron2 installation. That is a bit complicated, but the easiest thing to do reinstall Detectron2 following the official instructions https://detectron2.readthedocs.io/en/latest/tutorials/install.html .