From c7c86b58427d938eed280982d50cb7bd4e198ad6 Mon Sep 17 00:00:00 2001 From: Carmine Zaccagnino Date: Tue, 8 Aug 2023 14:39:50 +0200 Subject: [PATCH] Update DiT inference example Update URL and remove useless trailing backslash in inference example for DiT. --- dit/object_detection/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dit/object_detection/README.md b/dit/object_detection/README.md index ac414a539..50f3e8a53 100644 --- a/dit/object_detection/README.md +++ b/dit/object_detection/README.md @@ -15,7 +15,7 @@ python ./dit/object_detection/inference.py \ --image_path ./dit/object_detection/publaynet_example.jpeg \ --output_file_name output.jpg \ --config ./dit/object_detection/publaynet_configs/maskrcnn/maskrcnn_dit_base.yaml \ ---opts MODEL.WEIGHTS https://layoutlm.blob.core.windows.net/dit/dit-fts/publaynet_dit-b_mrcnn.pth \ +--opts MODEL.WEIGHTS https://layoutlm.blob.core.windows.net/dit/dit-fts/publaynet_dit-b_mrcnn.pth?sv=2022-11-02&ss=b&srt=o&sp=r&se=2033-06-08T16:48:15Z&st=2023-06-08T08:48:15Z&spr=https&sig=a9VXrihTzbWyVfaIDlIT1Z0FoR1073VB0RLQUMuudD4%3D ``` Make sure that the configuration file (YAML) and PyTorch checkpoint match. The example above uses DiT-base with the Mask R-CNN framework fine-tuned on PubLayNet.