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

About box prompt #7

Open
hyqyoung opened this issue Jan 16, 2024 · 3 comments
Open

About box prompt #7

hyqyoung opened this issue Jan 16, 2024 · 3 comments

Comments

@hyqyoung
Copy link

When using <bash_demo>, if I want to pass in a pre-defined box prompt (in the form of [x1,y1,x2,y2]), do I pass the boxes argument to line #115 of nextchat_seg.py?

@hyqyoung
Copy link
Author

@waxnk Please take a look at this problem

@waxnkw
Copy link
Collaborator

waxnkw commented Jan 18, 2024

I update the code. Now, you can use the following code:

input = {"text": "Can you describe [0]?", "image": "./COCO_val2014_000000222628.jpg"}
response, boxes, masks, ret_img = model(input, boxes=[(x1, y1, x2, y2)])

The [0] refers to the index in the boxes list.

@hyqyoung
Copy link
Author

I update the code. Now, you can use the following code:

input = {"text": "Can you describe [0]?", "image": "./COCO_val2014_000000222628.jpg"}
response, boxes, masks, ret_img = model(input, boxes=[(x1, y1, x2, y2)])

The [0] refers to the index in the boxes list.

Thanks and it works

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