Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Inference on the Custom Dataset #6

Closed
Brian96086 opened this issue Jun 15, 2024 · 2 comments
Closed

Running Inference on the Custom Dataset #6

Brian96086 opened this issue Jun 15, 2024 · 2 comments

Comments

@Brian96086
Copy link

Hi,
Thanks for the interesting and impressive work! I would like to run inference on a custom dataset. In the docs, running inference is involved with running train.py, which is strongly tied with the training setup. Do you have any suggestions or scripts so that I can run inference effectively and independently of training?

Thanks again for your time and effort !

@xk-huang
Copy link
Owner

xk-huang commented Jun 16, 2024

Hi @Brian96086,

There are two solutions to inference the models on the custom dataset.

  1. The API of SCA model:

    def run(args, input_image, input_points=None, input_boxes=None):

    Also see: https://github.com/xk-huang/segment-caption-anything/blob/main/scripts/notebooks/auto_generator.ipynb.

  2. Prepare the dataset into VG/COCO format, and use the scripts in https://github.com/xk-huang/benchmark-referring-vllm.

I would prefer the first one for the maximum flexibility.

@xk-huang xk-huang pinned this issue Jun 16, 2024
@xk-huang xk-huang changed the title Running Inference on Custom Dataset Running Inference on the Custom Dataset Jun 16, 2024
@Brian96086
Copy link
Author

Hi @xk-huang ,
Thanks for the clarification and instruction. Really appreciate your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants