Double GPU performance

This commit is contained in:
henryruhs 2023-06-03 13:37:15 +02:00
parent b0a7b19b1b
commit 1f0c3b4bb5

View File

@ -1,12 +1,14 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import os
# reducing num threads doubles performance of gpu-mode
os.environ['OMP_NUM_THREADS'] = '1'
import platform import platform
import signal import signal
import sys import sys
import shutil import shutil
import glob import glob
import argparse import argparse
import os
import torch import torch
from pathlib import Path from pathlib import Path
import tkinter as tk import tkinter as tk
@ -16,7 +18,6 @@ from tkinter.filedialog import asksaveasfilename
import webbrowser import webbrowser
import cv2 import cv2
import threading import threading
from threadpoolctl import threadpool_limits
from PIL import Image, ImageTk from PIL import Image, ImageTk
import roop.globals import roop.globals