I am working on a face tagging software

I finally found it, it's a doozy.

I made a method that would get a single files metadata and return it straight away and if you gave more to get it would send them to the threaded queue, well it turns out a single "else" was missing between them, so every single time you'd request metadata it would get it for the whole queue (which can be thousands of files). so that explains why the GUI was so laggy, why it seemed to have randomly died in performance. anyway, I am away again, I was so close to quitting, but then AI came back with the missing else being found. I am excited to see what I can make it do now, will take a while to clean up all the extra code I put in to try to optimise it. now they wont be needed.
 
Replit.com is pretty good too BTW, if you run out of claude.ai then it's an option to continue working on python code (and other code if you want). it's got more usage, but has more downtime in between usage resetting again.

-EDIT-

I've made really good progress tonight. it's starting to feel more like a fun project again. I learnt a lot doing this, makes me wonder now how the dual process version would have gone with the missing else bug calling 500 file reads per item scanned, might have been even better, but BOY it made it more complex.

-EDIT-

I am going to leave it running overnight and see how it goes, I mean the optimisations should make it get more than 38000 items in the 7 hours it took last time, so I'll sleep for a bit and see how it goes. Worth a try, I managed to get RAW to extract embedded jpg files, which are faster and have the in camera white balance and brightness set as in camera - so a win win.

-EDIT-

Well it got less processed photos 32500, but it got more faces and more correct. so I guess that's still a win.
 
Last edited:
I got it to fully work and never slow down, but sometime in the last week I've lost the ability for it to suggest names, so as normal I am putting back in features it had but has lost due to AI being a black box. Once that's added back I'll be back on track. if I can't get it working, I am back to being burnt out and sick of the issues like this, so I'll see how it goes. I would never pay for AI as it currently is, it's not very intelligent yet.

-EDIT-

Yeah it's not behaving, I am going to call it, I'm just going to leave it for a week and then start again from scratch and get it right the first time, I think all the cache and gates I put in trying to fix the slowdowns has now caused it to be fragile, and I'm not able to use AI to clear out the issues as it was what wrote it, so it looks right to it :(

Sorry guys, I really did try and tried hard!, so many hours wasted., I still have 2 AI's left but I just used 3 without getting any results, so once these are over, it's over. I can't take any more setbacks with it.


-EDIT-

LOL, the last AI session got the bug fixed. I still feel I need to rewrite it from scratch, but at least now I know how to fix the big bugs.

-EDIT-

I have been using it and a few minor glitches to iron out, but finally, it's doing all the things it's meant to without slowdowns on my massive 585000+ photo library
 
Last edited:
Nope, I am giving up and going to try again at a later date.

I left it running over night and it found a bunch of new people and added them to the known people, when I clicked one of the new people it didn't show any photos with that person, so I quit and started it again and the new people were gone. Now the photos that I left scanning over night have been marked as scanned but no faces were kept.

This is the stupid kinds of bugs I've been getting, even features that were working perfect and have been since day 1, just randomly stop working.

So my advice. do NOT use AI to make your apps, it's too stupid!!!

Thanks for watching, it's over now.
 
I've only used ChatGPT for a bit of help with coding so far and I also had ups and downs and learned first hand there is no 'thinking' behind the scenes and that warning after each response, that 'ChatGPT can make mistakes', is fully warranted.

I can't really write code, I only learned to read and understand code to some extent in one existing program written in C# and I am able to take parts of code and combine it into a new method to add a new feature to the program. With ChatGPT it was a roller coaster ride, I also came up against an unsurmountable problem that in the end was not resolved and I put the project on hold.

As with everything, it is clear to me that most benefit from the AI help get those who already know how to code and the more they know, the more benefit they can derive from it. Request for coding need to be formulated as exact as you can make it, here again you need some code understanding to make intelligent requests and it always amazes me how it summarizes, reformulates your query even better than I could, then it provides the answer and ends with bullet points summary listing concisely what was done in that answer, all clear as bell. On the other hand, it can lead one on a goose chase with more and more complicated code solutions and you have to know when to call it quits and go back to try a different way to attack the problem.

I like how it explains lines of code or whole code methods in detail and you can ask and keep asking for more detail explanation, whereas if that was a live person, you'd have been sent away long ago. ;)
Glenn's experience with AI coding and trying out different AI engines motivates me to go beyond ChatGPT, to try Claude and other AI engines supposedly more oriented towards coding. I also ran frequently against the limit of free session and moving to other AI engines to bridge the wait period might be the way to go. I wouldn't like to pay monthly sub since that would put pressure on me to utilize it, couldn't put off work on code (BTW that would be a good motivation not to procrastinate :)).
 
Last edited:
I have picked up the previous one, I told myself I couldn't go through babying it through the boring stuff again, I did try for 3 days. but then I went back to the original problems written out and got AI to write them out better and then I adjusted how it said things because they weren't exactly right (which is why the issues crept in), then I ran it through 2 full 5 Session goes and it worked. I have had it write the help file and update it with the new features, it's optimised, tested and I've been using it daily. It's at the stage I can release a new version and I am confident people would be happy to donate to me (if they find it saves them time or give the enjoyment back to working with family photos).

Anyway, Claude is still the king, it can question it's own answers and come up with much more robust answers. It can pivot to a better solution when it notices things are getting to complex. it can also take feedback and say "that's a GREAT idea" because underneath, I know it is :P

But I can then feed a terminal output with errors and it'll fix them. I can give incomplete code and it'll rebuild based on context.

there was only ONE thing that it couldn't solve for me and that was finding the missing else in one of my scanning routines - I used replit and asked to to find a way to optimise the scanning features and it come back and say - Oh BTW there is a call to process a single file and then it processes the next 500 files straight after it, I think it dropped an else at some stage and you may want to put it back.

Now Google's Gemini is really good for fixing a block of code, no good at a project.

ChatGPT on the other hand is useless at anything more advanced than a batch script, bash script or powershell script. It has no idea about libraries and stuff. Honestly I refuse to let ChatGPT work on code, it's only good at making plans and offering advice, not for "thinking".

If I were to buy any it would be claude.ai, then possibly replit, but only for coding. for general other things I am happy with Gemini and ChatGPT, sometimes even grok. NEVER Microsoft copilot, I can't believe they paid for premium OpenAI and got them started just to give us that slop!

My method to build is -

Ask it to make a plan first, never just say start with code, that way it can be clear between you.

I then build on the plan and ask it to add features to the plan I think of.

I then ask it to break up the plan into parts we can build

Then I ask it to build the skeleton of the project with no code

Then I asked it to add part 2 - part 3 etc until it's complete.
-----

The tips are, don't bother making a plan and then trying to start a code session, it'll run out most of the time and you'll have to wait 4 to 5 hours to use it again.

Never build two different features on the one code base, it's a pain in the butt to combine two code bases back together once enough has changed, you always want it to output the zip file with your source code to push it through to the next AI session (if you run multiple like I do).

Then you run it, get any terminal outputs and feed it back in, then once it start go say what's wrong with it, then usually by the 4th or 5th back and forth you are able to be sitting inside your project ready to start refining and adding new features.


My local layout is:

Project Folder/
0-Bak
Main.code
Resources
Compiled


Then I download the new Main.code from AI (usually a zip with the source code files/folders). this goes to download folder by default, I then extract it and replace existing code in the project folder, I rename the .zip the version number so I can revert if AI breaks a feature. I also write what the new features were I added, so if something gets lost or breaks I can go back to when it was working and feed it back through AI to figure out what's changed in that function.


If your curious, I've had 4 MAJOR session, each multi day session has lasted 100 - 150 full code download/backups, I also often replace a minor bad error (like I forgotten import line or basic quick repair), so may have been more.

I doubt many people would do the rapid approach I do things, as it would feel like chaos to a non ADHD/Autistic brain. but for me it works.

Anyway - I'm building the windows version now, so I'll upload the new one once I test it's all good :)
 
i am still working on this, just been using it as is for the last day after making it only accept certain faces as confirmations, i found many images had the face regions entered by WLPG and picasso put them in the wrong orientation or scale, i made it detect all usable faces and if the existing regions don't all match it leaves them unknown and suggests the closest match instead, this is the safest way to not get false detections, as tagging an unknown face is one click, compared to finding them, clicking and typing/selecting the correct person. this also stops the wrong faces being suggested for the wrong people.

i am leaving it running over night to get even more faces matched, i worked out it would take 10 full days to do my whole collection, but i am not willing to use smaller detection sizes or faster models as accuracy is more important than speed and automation to me.

i added the ability to set dates, has a Table of Content, can delete, recalculate embedded faces, audit them, rematch to known people. merge and MUCH more. hopefully you all like it. it does handle insanely large collections now, but you will need 8gb of ram minimum for collections over 200000, it only uses 3.9gb with my 585350 collection, but you need ram for the os etc. so 8GB recommended.

i've made it very fast, even using a spinning HDD, so on a M.2 drive i am sure it would fly through.

i made it use the GPU for face scans, but it will fall back to a slower CPU scan if a GPU isn't available to use.

i ditched the fast 160px thumbnails and just keep the 640px one as that zooms in better, it is the size the fave detection uses and it just makes sense.

some other features i added was rotate CW and CCW, handy as it sets it in the file without decompressing the picture data or losing more quality.

the viewer allows fullscreen and manual regions, plus holding shift can move and resize existing regions... or remove them, you can press tab to move between faces to name them.

it's nearly ready for public release, people who miss WLPG and Picasa will hopefully love it, 10 years waiting for someone else to do it, I just done it myself :)
 
Back
Top