Image Classification
Keras
LiteRT
English
computer-vision
satellite-imagery
tensorflow
remote-sensing
land-cover-classification
Instructions to use Mirutex/Celyrix-1.0-Vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Mirutex/Celyrix-1.0-Vision with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Mirutex/Celyrix-1.0-Vision") - Notebooks
- Google Colab
- Kaggle
Download app/ui.py from Mirutex/Celyrix-1.0-Vision: direct link, hf CLI and curl.
- Browser
- Download file 2.52 kB
-
https://huggingface.co/Mirutex/Celyrix-1.0-Vision/resolve/main/app/ui.py
- Command line
-
hf download hf://Mirutex/Celyrix-1.0-Vision/app/ui.py
-
curl -L -o ui.py https://huggingface.co/Mirutex/Celyrix-1.0-Vision/resolve/main/app/ui.py
2.52 kB
| CSS = """ | |
| .gradio-container {background:#090b10!important;color:#f4f5f7!important;max-width:1140px!important} | |
| .gradio-container a {color:#70a4ff!important} | |
| .gradio-container .primary {background:#005BFF!important;border:0!important;color:white!important} | |
| footer {display:none!important} | |
| """ | |
| DESCRIPTIONS = { | |
| "Forest": "Forest-covered areas represented by EuroSAT Forest patches.", | |
| "River": "River and watercourse imagery represented by EuroSAT River patches.", | |
| "Residential": "EuroSAT Residential areas; this category does not cover every urban environment.", | |
| "Agriculture": "Annual crops only: the EuroSAT AnnualCrop category, not all agricultural land.", | |
| "Industrial": "Industrial buildings and facilities represented by EuroSAT Industrial patches.", | |
| } | |
| CSS += """ | |
| .gradio-container .block {background:#11151c!important;border:1px solid #252d3a!important;border-radius:14px!important} | |
| .gradio-container label,.gradio-container .label-wrap {color:#c6ced9!important;background:#11151c!important} | |
| .gradio-container input,.gradio-container textarea {background:#0c1017!important;color:#f4f5f7!important} | |
| .gradio-container h1 {font-size:42px!important;letter-spacing:-1.5px!important} | |
| .gradio-container h1::before {content:"";display:inline-block;width:8px;height:32px;margin-right:15px;background:#005BFF;border-radius:2px} | |
| """ | |
| def build_theme(): | |
| import gradio as gr | |
| return gr.themes.Base(primary_hue="blue").set( | |
| body_background_fill="#090b10", | |
| body_background_fill_dark="#090b10", | |
| body_text_color="#f4f5f7", | |
| body_text_color_dark="#f4f5f7", | |
| body_text_color_subdued="#adb7c6", | |
| body_text_color_subdued_dark="#adb7c6", | |
| block_background_fill="#11151c", | |
| block_background_fill_dark="#11151c", | |
| block_label_text_color="#d2d9e3", | |
| block_label_text_color_dark="#d2d9e3", | |
| block_title_text_color="#f4f5f7", | |
| block_title_text_color_dark="#f4f5f7", | |
| input_background_fill="#0c1017", | |
| input_background_fill_dark="#0c1017", | |
| ) | |
| CSS += """ | |
| .gradio-container .prose,.gradio-container .prose * {color:#f4f5f7!important} | |
| .gradio-container .prose a {color:#70a4ff!important} | |
| #satellite-upload [data-testid="upload-text"] {font-size:0!important} | |
| #satellite-upload [data-testid="upload-text"] .or {display:none!important} | |
| #satellite-upload [data-testid="upload-text"]::after {content:"Drop a JPEG or PNG here\\Aor click to browse";white-space:pre-line;font-size:14px;line-height:1.8;color:#d2d9e3} | |
| """ | |