shabie / docformer

Implementation of DocFormer: End-to-End Transformer for Document Understanding, a multi-modal transformer based architecture for the task of Visual Document Understanding (VDU)
MIT License
253 stars 40 forks source link

Not able to import docformer #17

Closed rlrahulkanojia closed 2 years ago

rlrahulkanojia commented 2 years ago

After following steps, not able to import to docformer but able to import transformer.

uakarsh commented 2 years ago

Can you share the link to your code, if you don't mind? Maybe, you just need to clone it, by using git clone and then import sys to append the path, and the rest all is assured. The code looks something like this:

!git clone https://github.com/shabie/docformer.git import sys sys.path.extend(['docformer/']) sys.path.extend(['docformer/src/docformer/'])

I hope, this helps :)

rlrahulkanojia commented 2 years ago

It did. Thanks