layout-parser icon indicating copy to clipboard operation
layout-parser copied to clipboard

Symbol Not Found

Open JacobsDylan opened this issue 2 years ago • 1 comments

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

JacobsDylan avatar Mar 08 '22 17:03 JacobsDylan

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 .

lolipopshock avatar Mar 16 '22 17:03 lolipopshock