fix environ check
This commit is contained in:
1 parent
42884d94b7
commit
79dd277e21
1 file changed
+1
-1
@@ -129,7 +129,7 @@ class ACEStepPipeline:
|
||||
self.dtype = torch.float16
|
||||
if device.type == "mps":
|
||||
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.device = device
|
||||
self.loaded = False
|
||||
|
||||
Reference in new issue
Block a user