Upload folder using huggingface_hub
Browse files
preprocessing/matanyone/tools/interact_tools.py
CHANGED
|
@@ -6,7 +6,7 @@ import numpy as np
|
|
| 6 |
from typing import Union
|
| 7 |
from segment_anything import sam_model_registry, SamPredictor, SamAutomaticMaskGenerator
|
| 8 |
import matplotlib
|
| 9 |
-
matplotlib.use('
|
| 10 |
import matplotlib.pyplot as plt
|
| 11 |
import PIL
|
| 12 |
from .mask_painter import mask_painter as mask_painter2
|
|
|
|
| 6 |
from typing import Union
|
| 7 |
from segment_anything import sam_model_registry, SamPredictor, SamAutomaticMaskGenerator
|
| 8 |
import matplotlib
|
| 9 |
+
matplotlib.use('Agg')
|
| 10 |
import matplotlib.pyplot as plt
|
| 11 |
import PIL
|
| 12 |
from .mask_painter import mask_painter as mask_painter2
|