-
Notifications
You must be signed in to change notification settings - Fork 13
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 Steps #8
Comments
Hey there @Akhtar303, you can run the count model against a single frame with the cd ml
python manage.py # lists all available ML commands
# python manage.py predict --image <path to image> --just-predictions
python manage.py predict --image data/shakecam/shakeshack-1500925619.jpg --just-predictions There are two big considerations however:
I doubt this will be as straightforward as my todo list implies above :/. Good luck. |
Thanks @dimroc |
Hi @dimroc - I was hoping to be able to access your set of annotated shackcam images. Is it possible to share? |
@Akhtar303 I missed a word
Please use |
@philkim72 The annotations are in json and can be found in the repo here: https://github.com/dimroc/count/tree/master/ml/data/annotations If you're looking to generate an image like the one below, you'll need to run one of the commands above (I think |
@dimroc I have successfully annotated the images following your instructions. One quick question. There is a file called ignorables.csv. It seems you are ignoring some pictures because there are some counting issues such as umbrellas. But there are other images you ignore that seem perfectly fine. Can you explain what your criteria was for ignoring certain images in your training data set? |
I think I just thought the annotations were wrong. If there’s more to it, please feel free to remind me, it’s been a while. |
Thanks. I can't find any common pattern at this point, but I will just ignore the entire list for now. By the way, I noticed that recently they put a tent at the front of the line. I'm assuming part of it has to do with it's rainy season right now, but i'm afraid that it might be a permanent thing. Do you have any thoughts about how to get around this issue? |
At this time no. Many crowd counting models and algorithms rely on creating a density map of heads, as shown below. If we can't see the head, we're in trouble. But feel free to do some further reading here to see if someone else has a solution: https://github.com/gjy3035/Awesome-Crowd-Counting |
Thanks @dimroc for reply Error:"/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode This error genrate by this line dic.update(json.load(infile)) in regresion.py after that I want to read simple mall.json it genrate same error Error:ile "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode Thanks |
Hi @dimroc, Thanks so much for this incredible code and example! I've been playing around with the models and code for the past weeks or so, and am having some trouble. 2 quick questions:
[<VNCoreMLFeatureValueObservation: 0x2801a75a0> A94E606F-856D-4D56-846D-B5E8A513EAAE requestRevision=1 confidence=1.000000 timeRange={{0/1 = 0.000}, {0/1 = 0.000}} "density_map" - "MultiArray : Double 1 × 168 × 225 array" (1.000000)] Thanks again for the amazing work! Best, (PS. I'm using Xcode 12.4 & iOS 14.4 to run the above packages.) |
Hey there Ramon, glad you’re enjoying the repo. I’m years removed from this
code so will do my best to provide insight.
1. Unfortunately no, I don’t have a more recent implementation of the iOS
app.
2. I think I simply summed the multi array. Ignore the first (1x)
dimension. The code to do that should be in the repo, since both the iOS
app and the playground show a hundreds prediction.
Hope this helps
On Wed, Feb 24, 2021 at 9:56 PM ramondebruyn ***@***.***> wrote:
Hi @dimroc <https://github.com/dimroc>,
Thanks so much for this incredible code and example!
I've been playing around with the models and code for the past weeks or
so, and am having some trouble. 2 quick questions:
1. When I open the iOS or MacOS example apps, I get various errors
after trying to install the dependancies - most of the errors are related
to dependancies. Do you by any chance have a more recent implementation
example in iOS?
2. In playing around with the HundredsPredictor.mlmodel in a separate
app (copying the actual mlmodel in the fresh app), I'm able to get an
output form the model, but it's in the form of a MultiArray (Double 1 x 168
x 225). The only output fields I have access to are: "requestRevision",
"confidence" and "timeRange", but the rest is inaccessible. How do I go
about extracting the actual estimated count from the image that I passed
into the HundredsPredictor?
[<VNCoreMLFeatureValueObservation: 0x2801a75a0>
A94E606F-856D-4D56-846D-B5E8A513EAAE requestRevision=1 confidence=1.000000
timeRange={{0/1 = 0.000}, {0/1 = 0.000}} "density_map" - "MultiArray :
Double 1 × 168 × 225 array" (1.000000)]
Thanks again for the amazing work!
Best,
Ramon
(PS. I'm using Xcode 12.4 & iOS 14.4 to run the above packages.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE3B4L2SVJIO5D2YSVLHPTTAW34NANCNFSM4GY53I4A>
.
--
- Sent from my iPhone
|
Thanks for the response, @dimroc. I'll keep digging. |
Hi @dimroc ,@thoughtmerchant and @whatrocks ,
I want to use your code but I don't need to use your Interface of your project.
but I want to use your ML part with simple demo i.e give video frame or only image to count number of people in line.i
so kindly guide me some step of your project to complete my job.
Thanks
The text was updated successfully, but these errors were encountered: