Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
5b81799
1
Parent(s):
52349be
using spawm
Browse files
app.py
CHANGED
|
@@ -9,6 +9,9 @@ import torch
|
|
| 9 |
import pytorch_lightning as pl
|
| 10 |
import spaces
|
| 11 |
import multiprocessing
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
sys.path.append('P3-SAM')
|
| 14 |
from demo.auto_mask import AutoMask
|
|
@@ -189,5 +192,4 @@ Input a mesh, segment it using P3-SAM on the left, and push the "Generate" butto
|
|
| 189 |
|
| 190 |
|
| 191 |
if __name__ == '__main__':
|
| 192 |
-
multiprocessing.set_start_method('spawn')
|
| 193 |
demo.launch()
|
|
|
|
| 9 |
import pytorch_lightning as pl
|
| 10 |
import spaces
|
| 11 |
import multiprocessing
|
| 12 |
+
multiprocessing.set_start_method('spawn')
|
| 13 |
+
print('using spawm')
|
| 14 |
+
|
| 15 |
|
| 16 |
sys.path.append('P3-SAM')
|
| 17 |
from demo.auto_mask import AutoMask
|
|
|
|
| 192 |
|
| 193 |
|
| 194 |
if __name__ == '__main__':
|
|
|
|
| 195 |
demo.launch()
|