Spaces:
Build error
Build error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,16 +1,43 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
-
- **`pytorch_model.bin`**: pesos treinados da rede U-Net:contentReference[oaicite:16]{index=16}.
|
| 9 |
-
- **`inference.py`**: define e carrega o modelo UNet, com funções `load_model` e `predict` para inferência:contentReference[oaicite:17]{index=17}:contentReference[oaicite:18]{index=18}.
|
| 10 |
-
- **`app.py`**: interface web Gradio para fazer upload de imagens e visualizar a segmentação resultante.
|
| 11 |
-
- **`requirements.txt`**: dependências Python necessárias (torch, gradio, etc.).
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
title: "InstânciaSegmentation"
|
| 2 |
+
emoji: "🏟️"
|
| 3 |
+
colorFrom: "blue"
|
| 4 |
+
colorTo: "green"
|
| 5 |
+
sdk: "gradio"
|
| 6 |
+
sdk_version: "3.34.0"
|
| 7 |
+
app_file: "app.py"
|
| 8 |
+
pinned: false
|
| 9 |
|
| 10 |
+
InstânciaSegmentation Space
|
| 11 |
|
| 12 |
+
Este Space roda um modelo UNet pré-treinado para segmentação de instâncias.
|
| 13 |
|
| 14 |
+
Arquivos
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
app.py : Interface Gradio
|
| 17 |
|
| 18 |
+
inference.py : Definição e carregamento do modelo
|
| 19 |
|
| 20 |
+
config.json : Metadados do modelo
|
| 21 |
+
|
| 22 |
+
pytorch_model.bin: Pesos do modelo
|
| 23 |
+
|
| 24 |
+
requirements.txt: Dependências
|
| 25 |
+
|
| 26 |
+
.gitignore : Ignora arquivos desnecessários
|
| 27 |
+
|
| 28 |
+
LICENSE : MIT License
|
| 29 |
+
|
| 30 |
+
Como executar
|
| 31 |
+
|
| 32 |
+
Online
|
| 33 |
+
|
| 34 |
+
Acesse: https://huggingface.co/spaces/vncgabriel/InstânciaSegmentation
|
| 35 |
+
|
| 36 |
+
Localmente
|
| 37 |
+
|
| 38 |
+
git clone https://huggingface.co/spaces/vncgabriel/InstânciaSegmentation.git
|
| 39 |
+
cd InstânciaSegmentation
|
| 40 |
+
pip install -r requirements.txt
|
| 41 |
+
python app.py
|
| 42 |
+
|
| 43 |
+
Pronto! Suba sua imagem e veja a segmentação.
|