Commit Graph

33 Commits

Author SHA1 Message Date
3ab9a2faa6 Use ctime, not atime to find old files 2023-06-05 11:35:04 -07:00
365fa386c6 Got argument order mixed up 2023-03-16 14:50:59 -07:00
ed962240b3 Use a pool of detectors.
When more than a single request was coming in at a time, the server
would crash when trying to write the output file. Each worker had a
single detector with one DN network, so if more than <WORKER#> requests
came in at once, one network would be used multiple times--and it's not
threadsafe.

I've added a queue of nets to pull from, so each request has exclusive
access to a specific network.
2023-03-15 12:31:01 -07:00
a0af563334 Fix typo: dectection -> detection 2023-01-11 16:50:17 -08:00
686cfefc06 Move to idiomatic python instead of map
...And strip newline from labels.
2023-01-11 16:32:22 -08:00
4302d1d706 Forgot to read labels file 2023-01-10 23:17:47 -08:00
a8a58a078c Try forcing labels to strings... 2023-01-10 23:05:42 -08:00
6bf366b68a We didn't actually import path 2023-01-10 16:31:30 -08:00
a312942a0d Hack the filename + url 2023-01-10 16:21:32 -08:00
9dd9e38eab Be more specific about where to write the outfile 2023-01-10 16:07:55 -08:00
50a22caea1 WTF is with Python map? 2023-01-10 15:51:09 -08:00
77813871a2 Print what we're returning 2023-01-10 15:46:08 -08:00
928ce39d68 Eww...json needs 2-char min keys? 2023-01-10 15:11:35 -08:00
aaba00be01 Correct variable name 2023-01-10 14:48:22 -08:00
c903c73270 Open file in binary mode 2023-01-10 14:10:40 -08:00
0915ec019b Need to type-cast int 2023-01-10 13:23:41 -08:00
70f3283d80 Need to do it for both reads 2023-01-10 12:06:11 -08:00
61c06c94b2 Read from the wrapped file 2023-01-10 11:30:43 -08:00
7ba41ca26c Update with chunks again 2023-01-10 11:01:27 -08:00
cdc033f541 Removed unnecessary open 2023-01-09 11:14:25 -08:00
e71fdd6977 Need to create file, too 2023-01-09 11:03:01 -08:00
1e3012bf7f Give UploadFile another try 2023-01-09 10:53:11 -08:00
8254b94a88 Didn't import re 2023-01-09 10:42:16 -08:00
35cc4221a1 Give parameter a better name: image 2023-01-09 10:29:03 -08:00
d97d1205b4 ...But it doesn't work. Ugh. 2023-01-09 10:22:57 -08:00
c4e78898a9 Put is more appropriate, though... 2023-01-09 09:30:55 -08:00
c7d07b4389 Switch to post method 2023-01-08 17:18:16 -08:00
24327fe351 Try using File() instead of UploadFile() 2023-01-08 16:26:09 -08:00
8c6b0fa2fe Maybe I don't want this to be async 2023-01-07 17:31:52 -08:00
22414a4378 Add simple logging 2023-01-07 17:19:06 -08:00
f9e1411a5b Forgot to import Thread 2023-01-07 16:42:25 -08:00
46e0801931 Add cleanup thread, use systemd directories 2023-01-07 12:38:14 -08:00
e240b33b77 Initial commit 2023-01-06 14:46:11 -08:00