Spaces:
Sleeping
Sleeping
Commit
·
ec3dad4
1
Parent(s):
82c4e1f
Minor fix
Browse files- fastsam/prompt.py +1 -0
fastsam/prompt.py
CHANGED
|
@@ -438,6 +438,7 @@ class FastSAMPrompt:
|
|
| 438 |
return np.array([onemask])
|
| 439 |
|
| 440 |
def text_prompt(self, text):
|
|
|
|
| 441 |
if self.results == None:
|
| 442 |
return []
|
| 443 |
format_results = self._format_results(self.results[0], 0)
|
|
|
|
| 438 |
return np.array([onemask])
|
| 439 |
|
| 440 |
def text_prompt(self, text):
|
| 441 |
+
import clip
|
| 442 |
if self.results == None:
|
| 443 |
return []
|
| 444 |
format_results = self._format_results(self.results[0], 0)
|