Spaces:
Running
Running
Martin Tomov
commited on
Commit
β’
77e8ea9
1
Parent(s):
a1873d6
import spaces on top cuz of cuda
Browse files- sam_utils.py +1 -1
sam_utils.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
import random
|
3 |
from dataclasses import dataclass
|
4 |
from typing import Any, List, Dict, Optional, Union, Tuple
|
@@ -11,7 +12,6 @@ import matplotlib.pyplot as plt
|
|
11 |
from transformers import AutoModelForMaskGeneration, AutoProcessor, pipeline
|
12 |
import gradio as gr
|
13 |
import json
|
14 |
-
import spaces
|
15 |
|
16 |
@dataclass
|
17 |
class BoundingBox:
|
|
|
1 |
import os
|
2 |
+
import spaces
|
3 |
import random
|
4 |
from dataclasses import dataclass
|
5 |
from typing import Any, List, Dict, Optional, Union, Tuple
|
|
|
12 |
from transformers import AutoModelForMaskGeneration, AutoProcessor, pipeline
|
13 |
import gradio as gr
|
14 |
import json
|
|
|
15 |
|
16 |
@dataclass
|
17 |
class BoundingBox:
|