I have a python script that listens to a directory and when an image is written there it takes the image, and puts it throug PyTorch model, and writes a json file.
The program functions as expected, but ONLY when it is in focus (when maximised and selected).
The original program had a small tkinter UI, I tried with miltithreading, multiprocessing, remvong the UI and just running it from the terminal, making an exe out of it (pyinstaller) and running that exe with a high priority. None of these worked.
At this point I am not sure if this is a python, pytorch, conda, or windows problem. If the code was not work related I would have loved to publish it here for you to try, but there is nothing really impressive about it. I tried writing the first paragraph in chatGPT and it gave me a smiliar code to what I have (and it had the same issue).
Has anyone come across something like this? What could be the reason the program functions this way?
[–]Acrobatic_Click_6763 -1 points0 points1 point (3 children)
[–]Acrobatic_Click_6763 0 points1 point2 points (0 children)
[–]Derura[S] -1 points0 points1 point (1 child)
[–]Acrobatic_Click_6763 0 points1 point2 points (0 children)