-
Notifications
You must be signed in to change notification settings - Fork 5
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
How to estimate other images #1
Comments
Hey there! By estimate do you mean that you want to put the model in production? If so, then you're gonna have to create your own function for loading and preprocessing the images. You might want to take a look into the model = CSRNet(training=False)
model.load_state_dict(torch.load(PATH))
model.eval() If you mean that you want to retrain the model using other datasets then in |
Thank you so much for your polite answer!!
That's right. I want to estimate the density map from the image I took and measure the number of people!!
I'm sorry, I couldn't understand...
I would like to do this as well if possible. And I have a question, Thank you so much for your answer!! |
Yes, you'll have to create your own file where the images are loaded and processed using the
I will try and update the code this weekend so that it accepts the other datasets mentioned in the README, however I can't promise anything.
No, the .h5 files are the targets used for training the model; as I recall that's how the Shanghai dataset came so I had to transform them into images and postprocess them. You'll just need your own images. |
I understand everything.
I see, thank you! |
Hello!
Thanks for good code!
I want to know How to estimate other images.
The part to train the model and verify it is done↓
{"mae": 8.784251246271253, "mse": 14.054188578956241, "ssim": 0.9816682679202778}
As a next step I would like to estimate the density map from the images not included in the Shanghai dataset.
The text was updated successfully, but these errors were encountered: