rasmushaugaard / surfemb

SurfEmb (CVPR 2022)
https://surfemb.github.io/
MIT License
77 stars 17 forks source link

Number of threads explodes when training #33

Closed nikwoj closed 1 year ago

nikwoj commented 1 year ago

In the training script, an additional environment variable needs to be set in the worker_init_fn function

os.environ['OMP_NUM_THREADS'] = 1

See torch comment for additional information

rasmushaugaard commented 1 year ago

Thank you, I'll add that :)