Spaces:
Sleeping
Sleeping
samuel2424
commited on
Commit
·
8dbb475
1
Parent(s):
bc526d4
cambios
Browse files- app.py +2 -2
- class_names.txt +12 -2
- examples/.DS_Store +0 -0
- examples/{no-lluvia.jpg → cloudy.jpg} +0 -0
- examples/dew.jpg +0 -0
- examples/fog.jpg +0 -0
- examples/frost.jpg +0 -0
- examples/hail.jpg +0 -0
- examples/lightning.jpg +0 -0
- examples/lluvia.jpeg +0 -0
- examples/rain.jpg +0 -0
- examples/rainbow.jpeg +0 -0
- examples/shine.jpg +0 -0
- examples/snow.jpg +0 -0
- examples/sunrise.jpg +0 -0
- examples/tornado.jpg +0 -0
app.py
CHANGED
@@ -16,7 +16,7 @@ model, transform = create_effnetb2_model(
|
|
16 |
|
17 |
model.load_state_dict(
|
18 |
torch.load(
|
19 |
-
f="
|
20 |
map_location=torch.device("cpu")
|
21 |
)
|
22 |
)
|
@@ -46,7 +46,7 @@ example_list = [["examples/" + example] for example in os.listdir("examples")]
|
|
46 |
# Gradio interface
|
47 |
title = "Modelo de Clasificación de Imágenes Finetuneado (Chatbots)"
|
48 |
description = "Clasifica el tipo de clima de una imagen"
|
49 |
-
article = "Código en el que está basado
|
50 |
|
51 |
demo = gr.Interface(fn=predict,
|
52 |
inputs=gr.Image(type="pil"),
|
|
|
16 |
|
17 |
model.load_state_dict(
|
18 |
torch.load(
|
19 |
+
f="model_v3.pth",
|
20 |
map_location=torch.device("cpu")
|
21 |
)
|
22 |
)
|
|
|
46 |
# Gradio interface
|
47 |
title = "Modelo de Clasificación de Imágenes Finetuneado (Chatbots)"
|
48 |
description = "Clasifica el tipo de clima de una imagen"
|
49 |
+
article = "Código en el que está basado [GitHub](https://github.com/georgescutelnicu/Weather-Image-Classification)."
|
50 |
|
51 |
demo = gr.Interface(fn=predict,
|
52 |
inputs=gr.Image(type="pil"),
|
class_names.txt
CHANGED
@@ -1,2 +1,12 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cloudy
|
2 |
+
dew
|
3 |
+
fogsmog
|
4 |
+
frost
|
5 |
+
hail
|
6 |
+
lightning
|
7 |
+
rain
|
8 |
+
rainbow
|
9 |
+
shine
|
10 |
+
snow
|
11 |
+
sunrise
|
12 |
+
tornado
|
examples/.DS_Store
DELETED
Binary file (6.15 kB)
|
|
examples/{no-lluvia.jpg → cloudy.jpg}
RENAMED
File without changes
|
examples/dew.jpg
ADDED
![]() |
examples/fog.jpg
ADDED
![]() |
examples/frost.jpg
ADDED
![]() |
examples/hail.jpg
ADDED
![]() |
examples/lightning.jpg
ADDED
![]() |
examples/lluvia.jpeg
DELETED
Binary file (215 kB)
|
|
examples/rain.jpg
ADDED
![]() |
examples/rainbow.jpeg
ADDED
![]() |
examples/shine.jpg
ADDED
![]() |
examples/snow.jpg
ADDED
![]() |
examples/sunrise.jpg
ADDED
![]() |
examples/tornado.jpg
ADDED
![]() |