sort imports
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import torch
|
2 |
-
from torchvision.utils import draw_segmentation_masks
|
3 |
import torch.nn.functional as F
|
4 |
from torchvision import transforms
|
5 |
-
|
6 |
-
import gradio as gr
|
7 |
-
import numpy as np
|
8 |
-
import os
|
9 |
|
10 |
config = {
|
11 |
"downsize_res": 512,
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
import gradio as gr
|
4 |
+
import numpy as np
|
5 |
+
import segmentation_models_pytorch as smp
|
6 |
import torch
|
|
|
7 |
import torch.nn.functional as F
|
8 |
from torchvision import transforms
|
9 |
+
from torchvision.utils import draw_segmentation_masks
|
|
|
|
|
|
|
10 |
|
11 |
config = {
|
12 |
"downsize_res": 512,
|