chore(format): run black on dev (#1717)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
bb4d185a57
commit
4f7b6b2b9e
@ -158,7 +158,8 @@ class Config:
|
|||||||
/ 1024
|
/ 1024
|
||||||
+ 0.4
|
+ 0.4
|
||||||
)
|
)
|
||||||
if self.gpu_mem <= 4: self.preprocess_per = 3.0
|
if self.gpu_mem <= 4:
|
||||||
|
self.preprocess_per = 3.0
|
||||||
elif self.has_mps():
|
elif self.has_mps():
|
||||||
logger.info("No supported Nvidia GPU found")
|
logger.info("No supported Nvidia GPU found")
|
||||||
self.device = self.instead = "mps"
|
self.device = self.instead = "mps"
|
||||||
@ -241,5 +242,8 @@ class Config:
|
|||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
logger.info("Half-precision floating-point: %s, device: %s" % (self.is_half, self.device))
|
logger.info(
|
||||||
|
"Half-precision floating-point: %s, device: %s"
|
||||||
|
% (self.is_half, self.device)
|
||||||
|
)
|
||||||
return x_pad, x_query, x_center, x_max
|
return x_pad, x_query, x_center, x_max
|
||||||
|
@ -31,6 +31,7 @@ def println(strr):
|
|||||||
f.write("%s\n" % strr)
|
f.write("%s\n" % strr)
|
||||||
f.flush()
|
f.flush()
|
||||||
|
|
||||||
|
|
||||||
class PreProcess:
|
class PreProcess:
|
||||||
def __init__(self, sr, exp_dir, per=3.7):
|
def __init__(self, sr, exp_dir, per=3.7):
|
||||||
self.slicer = Slicer(
|
self.slicer = Slicer(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user