Skip to content

Commit

Permalink
Force tensorflow to be run on CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffenhir committed Oct 20, 2023
1 parent ada157e commit e574cd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions graxpert/background_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
from skimage.transform import resize
from skimage.filters import gaussian

import tensorflow as tf
import os
import sys
import os
import tensorflow as tf
os.environ['CUDA_VISIBLE_DEVICES'] = '-1' # Run tensorflow on CPU

from graxpert.mp_logging import get_logging_queue, worker_configurer
from graxpert.parallel_processing import executor
Expand Down

0 comments on commit e574cd9

Please sign in to comment.