runtime error
Exit code: 1. Reason: ng changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: https://github.com/pytorch/vision/issues/6753, and you can also check out https://github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning(). warnings.warn(_BETA_TRANSFORMS_WARNING) /usr/local/lib/python3.10/site-packages/torch/_utils.py:776: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage() return self.fget.__get__(instance, owner)() Traceback (most recent call last): File "/home/user/app/app.py", line 14, in <module> model = LayoutLMv2ForTokenClassification.from_pretrained("Theivaprakasham/layoutlmv2-finetuned-sroie_mod") File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4080, in from_pretrained model = cls(config, *model_args, **model_kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/models/layoutlmv2/modeling_layoutlmv2.py", line 1145, in __init__ self.layoutlmv2 = LayoutLMv2Model(config) File "/usr/local/lib/python3.10/site-packages/transformers/models/layoutlmv2/modeling_layoutlmv2.py", line 700, in __init__ requires_backends(self, "detectron2") File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1649, in requires_backends raise ImportError("".join(failed)) ImportError: LayoutLMv2Model requires the detectron2 library but it was not found in your environment. Checkout the instructions on the installation page: https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md and follow the ones that match your environment. Please note that you may need to restart your runtime after installation.
Container logs:
Fetching error logs...