-
Notifications
You must be signed in to change notification settings - Fork 12
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
Few questions #25
Comments
Can you provide me with the exact command you used? The test commands here should run with no errors: https://github.com/niki-amini-naieni/CountGD/tree/main?tab=readme-ov-file#countgd-inference--pre-trained-weights |
i modified the gradio app for simple use. Here is the code `import copy warnings.filterwarnings("ignore") cwd = os.getcwd() Helper function to find CUDA path.def find_cuda():
cuda_path = find_cuda() CONF_THRESH = 0.23 def get_device(): def build_model_and_transforms():
def get_ind_to_filter(text, word_ids, keywords):
def pdump(data):
def count_main(image, text, prompts, device):
def main(image_path):
if name == "main": Can you tell me what went wrong? |
I have tried to clone the repo and try to run the project. However I faced two issues
I overcame 1 by manually feeding the exemplar and captions data. However I can't fix 2.
When I adjusted the batch size and number to exemplars manually, it rose a new problem in roi_align function. Roi_align expects a list of tensors of boxes which wasnt structured default. After fixing that, I get boolean ambiguity error in add_exemplar_tokens.
CountGD/models/GroundingDINO/groundingdino.py", line 251, in add_exemplar_tokens
if label_count == label:
RuntimeError: Boolean value of Tensor with more than one value is ambiguous
Any ideas on how to fix them?
The text was updated successfully, but these errors were encountered: