Spaces:
Runtime error
Runtime error
namkwonwoo
commited on
Commit
·
8e83a0a
1
Parent(s):
5fed18f
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
import torch.nn as nn #추가
|
4 |
from matplotlib import gridspec
|
5 |
import matplotlib.pyplot as plt
|
6 |
import numpy as np
|
7 |
-
import requests #추가
|
8 |
from PIL import Image
|
9 |
import tensorflow as tf
|
10 |
-
from transformers import
|
11 |
-
#변경
|
12 |
|
13 |
feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
14 |
"mattmdjaga/segformer_b2_clothes"
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
from matplotlib import gridspec
|
4 |
import matplotlib.pyplot as plt
|
5 |
import numpy as np
|
|
|
6 |
from PIL import Image
|
7 |
import tensorflow as tf
|
8 |
+
from transformers import SegformerFeatureExtractor, TFSegformerForSemanticSegmentation
|
|
|
9 |
|
10 |
feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
11 |
"mattmdjaga/segformer_b2_clothes"
|