1
0
mirror of https://github.com/osmarks/meme-search-engine.git synced 2024-11-10 22:09:54 +00:00

There were more memes than anticipated.

This commit is contained in:
osmarks 2024-04-27 17:24:01 +01:00
parent 80db16d02a
commit 2447e134ef
2 changed files with 5 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import shared
from model import Config, BradleyTerry
meme_search_backend = "http://localhost:1707/"
score_threshold = 1.5162627696990967
score_threshold = 1.7264162302017212
shared.db.executescript("""
CREATE TABLE IF NOT EXISTS last_crawl (time INTEGER);
@ -71,7 +71,8 @@ with torch.inference_mode():
for filename, mscore in zip(filenames, mscores):
ratings[filename] = float(mscore)
print(sorted(ratings.values())[round(len(ratings) * 0.85)])
print(sorted(ratings.values())[round(len(ratings) * 0.95)])
print(f"{len(ratings)} memes in {crawl_start - last_crawl} seconds ({len(ratings) / (crawl_start - last_crawl) * 1e3}mHz)")
files = dict(files)

View File

@ -2,5 +2,6 @@
"clip_server": "http://100.64.0.10:1708/",
"db_path": "data.sqlite3",
"port": 1707,
"files": "./images"
"files": "./images",
"no_run_server": true
}