mirror of
https://github.com/zebrajr/faceswap.git
synced 2025-12-06 00:20:09 +01:00
amd gpu-stats bugfix
This commit is contained in:
parent
d9c84a5f9f
commit
9d55ade27f
|
|
@ -162,8 +162,8 @@ class Converter():
|
|||
loglevel("Convert error traceback:", exc_info=True)
|
||||
log_once = True
|
||||
# UNCOMMENT THIS CODE BLOCK TO PRINT TRACEBACK ERRORS
|
||||
import sys ; import traceback
|
||||
exc_info = sys.exc_info() ; traceback.print_exception(*exc_info)
|
||||
# import sys; import traceback
|
||||
# exc_info = sys.exc_info(); traceback.print_exception(*exc_info)
|
||||
logger.trace("Out queue put: %s", item["filename"])
|
||||
out_queue.put((item["filename"], image))
|
||||
logger.debug("Completed convert process")
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ class AMDStats(_GPUStats):
|
|||
@property
|
||||
def _all_vram(self) -> List[int]:
|
||||
""" list: The VRAM of each GPU device that PlaidML has discovered. """
|
||||
return [int(device.get("globalMemSize", 0) / (1024 * 1024))
|
||||
return [int(int(device.get("globalMemSize", 0)) / (1024 * 1024))
|
||||
for device in self._device_details]
|
||||
|
||||
@property
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ class Mask(Editor):
|
|||
default="Circle",
|
||||
is_radio=True,
|
||||
helptext=_("Select a shape for masking cursor.")))
|
||||
|
||||
def _set_tk_mask_change_callback(self):
|
||||
""" Add a trace to change the displayed mask on a mask type change. """
|
||||
var = self._control_vars["display"]["MaskType"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user