Spaces:
Runtime error
Runtime error
Commit
·
5fed18f
1
Parent(s):
d5bb11a
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,14 @@
|
|
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
|
|
|
9 |
|
10 |
feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
11 |
"mattmdjaga/segformer_b2_clothes"
|
|
|
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 SegformerImageProcessor, AutoModelForSemanticSegmentation
|
11 |
+
#변경
|
12 |
|
13 |
feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
14 |
"mattmdjaga/segformer_b2_clothes"
|