mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(ml): memory optimisations (#3934)
This commit is contained in:
parent
c0a48d7357
commit
41461e0d5d
8 changed files with 122 additions and 107 deletions
|
|
@ -53,6 +53,7 @@ class InferenceModel(ABC):
|
|||
log.debug(f"Setting intra_op_num_threads to {intra_op_num_threads}")
|
||||
self.sess_options.inter_op_num_threads = inter_op_num_threads
|
||||
self.sess_options.intra_op_num_threads = intra_op_num_threads
|
||||
self.sess_options.enable_cpu_mem_arena = False
|
||||
|
||||
try:
|
||||
loader(**model_kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue