fix environ check
This commit is contained in:
@@ -129,7 +129,7 @@ class ACEStepPipeline:
|
|||||||
self.dtype = torch.float16
|
self.dtype = torch.float16
|
||||||
if device.type == "mps":
|
if device.type == "mps":
|
||||||
self.dtype = torch.float32
|
self.dtype = torch.float32
|
||||||
if len(os.environ['COLAB_FREE']):
|
if 'COLAB_FREE' in os.environ and len(os.environ['COLAB_FREE']):
|
||||||
self.dtype = torch.float16
|
self.dtype = torch.float16
|
||||||
self.device = device
|
self.device = device
|
||||||
self.loaded = False
|
self.loaded = False
|
||||||
|
|||||||
Reference in New Issue
Block a user