Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
| 3 |
import mmcv
|
| 4 |
from mmcv.transforms import Compose
|
| 5 |
from mmengine.utils import track_iter_progress
|
| 6 |
from mmdet.registry import VISUALIZERS
|
| 7 |
from mmdet.apis import init_detector, inference_detector
|
| 8 |
|
|
|
|
| 9 |
def sepia(input_img):
|
| 10 |
sepia_filter = np.array([
|
| 11 |
[0.393, 0.769, 0.189],
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
import mim
|
| 4 |
+
mim.install('mmcv-full==2.0.1')
|
| 5 |
import mmcv
|
| 6 |
from mmcv.transforms import Compose
|
| 7 |
from mmengine.utils import track_iter_progress
|
| 8 |
from mmdet.registry import VISUALIZERS
|
| 9 |
from mmdet.apis import init_detector, inference_detector
|
| 10 |
|
| 11 |
+
|
| 12 |
def sepia(input_img):
|
| 13 |
sepia_filter = np.array([
|
| 14 |
[0.393, 0.769, 0.189],
|