mirror of
https://github.com/osmarks/meme-search-engine.git
synced 2025-05-12 12:14:07 +00:00
There were more memes than anticipated.
This commit is contained in:
parent
80db16d02a
commit
2447e134ef
@ -12,7 +12,7 @@ import shared
|
|||||||
from model import Config, BradleyTerry
|
from model import Config, BradleyTerry
|
||||||
|
|
||||||
meme_search_backend = "http://localhost:1707/"
|
meme_search_backend = "http://localhost:1707/"
|
||||||
score_threshold = 1.5162627696990967
|
score_threshold = 1.7264162302017212
|
||||||
|
|
||||||
shared.db.executescript("""
|
shared.db.executescript("""
|
||||||
CREATE TABLE IF NOT EXISTS last_crawl (time INTEGER);
|
CREATE TABLE IF NOT EXISTS last_crawl (time INTEGER);
|
||||||
@ -71,7 +71,8 @@ with torch.inference_mode():
|
|||||||
for filename, mscore in zip(filenames, mscores):
|
for filename, mscore in zip(filenames, mscores):
|
||||||
ratings[filename] = float(mscore)
|
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)
|
files = dict(files)
|
||||||
|
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
"clip_server": "http://100.64.0.10:1708/",
|
"clip_server": "http://100.64.0.10:1708/",
|
||||||
"db_path": "data.sqlite3",
|
"db_path": "data.sqlite3",
|
||||||
"port": 1707,
|
"port": 1707,
|
||||||
"files": "./images"
|
"files": "./images",
|
||||||
|
"no_run_server": true
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user