Skip to content

Commit

Permalink
fix num threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
praxxus11 committed Aug 6, 2024
1 parent 0676238 commit 91911a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion inference/init.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
import torch

def init():
logging.basicConfig(
Expand All @@ -8,4 +9,5 @@ def init():
level=logging.DEBUG,
format='%(asctime)s.%(msecs)03d - %(name)s - %(levelname)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)
)
torch.set_num_threads(4)
1 change: 0 additions & 1 deletion inference/storage/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def __init__(self, sqlite_db_path):
FOREIGN KEY (img_id) REFERENCES Meta (img_id)
)
''')

self.con.commit()

def insert_into_meta(self, meta):
Expand Down

0 comments on commit 91911a8

Please sign in to comment.