-
Notifications
You must be signed in to change notification settings - Fork 43
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
timeout set too low in ./occ #100
Comments
recently an automatic run classified some (many) |
I believe the model hasn't been updated since august. Seeing those issues maybe we should add a command option to have a verbose output when running the classifier for debugging purpose, what do you think @marcelklehr ? |
It's a very little chance to work. There's no Iasue with RAM (3GB free and 11GB swap, includes zram of min. 2GB) I don't know where the logs should be - it's made very poor (no output..) Gratulation for the 100. issue... |
Wait... How do I run it with node-js? |
Hmmm wait... It's in red: Failed to classify images Actually, there's almost 1GB RAM free when I see a node process but it only uses 6% CPU and there's a swappiness process using almost same % CPU |
Now the classifier process runs |
Uh actually it is #98 |
This is a new problem!!! The first version I had worked also when there was no really free RAM Edit: I remember that it worked at 2. try, the first try had Sams error |
Alright I'm just gonna close this one for clarity |
Please remove duplicate and reopen I don't have the RAM issue anymore |
Ok the ram problem might be unrelated to your initial problem. |
It seems to work but then the process dies because it's parrent (the ./occ command) decides to stop because of 'timeout' |
I fear timeout could mean anything, what's the output exactly, the same as your screenshot ( EDIT : Ok thanks for the screenshot, what is your syntax to run it manually? |
I ran node src/classifier_imagenet.js (full-)path-to-picture Am I doing this correct? |
No haha :) |
This is what happens when I just run it with occ: https://cloud.privacyy.ch/index.php/s/DE4ZSRx67k2BnXy |
Uh that was a hit It looks like it's just a timeout wich is too small |
Ok Where the results: Allocation exceeds free memory 4 times (ONLY A WARNING NOT ERROR) |
Maybe try to run it manually on the last image that timed out to be sure there is not any other problem : |
It's not duplicate not Ok for m |
Timeout is set to 10 seconds per image (50 in pure JS mode), it shouldn't take more. The warning may indicates there is a memory problem and thus it probably takes more time than it should EDIT : bad values, those are for face service, imagenet values are 12s / 480s |
I tried to check the picture but it doesn't exist |
No on my system it has to put serveral things to RAM like some Apache cache files so it takes more for the 1. picture than for the others (I guess lol) |
Can you give me the path of this file so I can mess around? |
Yes I found it!!! lib/Service/ClassifyImagenetService.php |
I recommend to make it higher |
@marcelklehr take notice of it please and decide wether it should be rised or not |
Hmm it's now classifying with 5Seconds/Picture It is totally worth it to at least provide it at the start of the application |
You could leave the issue open, your timeout change will be reverted next time you update. I don't know what's the best way for that, we could make it configurable but that's a bit tricky for any user to know which timeout value he'd want.. |
Could you remove the duplicate-thing? Thanks... There's no duplicate around Yeah, prob. there can/should be a setting in src/.../admin... (Nextcloud settings) Marcelklehr wasn't here this day.. Let's just wait |
Yeah, completely moving the debug output to the nextcloud log was a bad move it seems. I'm not sure how best to have debug output at both ends and keep the code DRY.
I'm happy to increase the timeout, even if that means it's gonna be much higher. It was only ever meant as a way to avoid waiting on the process forever. I just haven't had the time to make the change. |
Alright, if a high timeout value isn't a problem let's go for that! |
The classifier doesn't work anymore
A node process starts as it should but shortly after it reports 'classifier timed out'
I used occ to run the classifier manually
The text was updated successfully, but these errors were encountered: