unilm icon indicating copy to clipboard operation
unilm copied to clipboard

Inferring image errors after fine-tuning object detection using layoutlmv3

Open htaoruan opened this issue 2 years ago • 3 comments

When I use layoutlmv3 for object detection tasks, and after training, I infer the image, the code reference is unilm/dit/object_ Inference. py under detection, but an error occurred, OSError: Couldn't reach server at '/ layoutlmv3-base-finetuned/model_ 0003999.pth' to download configuration file or configuration file is not a valid JSON file. Please check network or file content here

htaoruan avatar May 24 '23 10:05 htaoruan

python ./infer.py --image_path 0.png --output_file_name output.jpg --config ./cascade_layoutlmv3.yaml --opts MODEL.WEIGHTS ./model_0003999.pth

htaoruan avatar May 24 '23 10:05 htaoruan

I know this is a silly question but where is the inference file located?

ashishupadhyaa avatar Jun 01 '23 13:06 ashishupadhyaa

hello, Inference script from /unilm/dit/object_detection/inference. py, located at /unilm/layoutlmv3/examples/object_detection folder

htaoruan avatar Jun 02 '23 03:06 htaoruan