Skip to content

demo #18

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

Open
mahilaMoghadami opened this issue Apr 5, 2023 · 3 comments
Open

demo #18

mahilaMoghadami opened this issue Apr 5, 2023 · 3 comments

Comments

@mahilaMoghadami
Copy link

hello
thank you for implementation sharing
I want to test model on video or image. did you share your model? if yes, which file is for testing and inference?
thank you.

@Cli98
Copy link
Owner

Cli98 commented May 2, 2023

Hi @mahilaMoghadami

Thank you for your interest! We host models (MCNN + object detection)via provided pretrain links, which have been provided via google drives. Please follow the step in my description to inference your image.

Thank you and let me know if you have any further questions.

@mahilaMoghadami
Copy link
Author

Hi @mahilaMoghadami

Thank you for your interest! We host models (MCNN + object detection)via provided pretrain links, which have been provided via google drives. Please follow the step in my description to inference your image.

Thank you and let me know if you have any further questions.

thank you @Cli98
how I can use this architecture as end-to-end network?
I mean that: I want to get output of MCNN (for generating density maps) then crop regions and then fed this patchs to detector. but I don't know how?

imagine I want to reimplement it and train on visdrone dataset again.
appreciate if help.
thank you

@Cli98
Copy link
Owner

Cli98 commented May 16, 2023

Hi @mahilaMoghadami
Thank you for your interest! We host models (MCNN + object detection)via provided pretrain links, which have been provided via google drives. Please follow the step in my description to inference your image.
Thank you and let me know if you have any further questions.

thank you @Cli98 how I can use this architecture as end-to-end network? I mean that: I want to get output of MCNN (for generating density maps) then crop regions and then fed this patchs to detector. but I don't know how?

imagine I want to reimplement it and train on visdrone dataset again. appreciate if help. thank you

Hi @mahilaMoghadami

Following the steps here to make it end-to-end, in case you wanna to reimplement it.

  1. Run MCNN to get density crops. You can find it at here: https://github.com/CommissarMa/MCNN-pytorch, and pretrain weights here here
  2. Run code in image-cropping folder to generate image crops.
  3. for the crops+original image, use a state-of-the-art detector to detect , then run code in "fusion detection" to get final detection result.

In step #2, you can run this command to generate density crops:
python density_slide_window_official.py . HEIGHT_WIDTH THRESHOLD --output_folder Output_FolderName --mode val
Please replace all constant (in upper letter) with yours.

Let me know if you need any more 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