Views
No views yet
🔥 New: Edge-optimized version available! A quantized ONNX bundle (UNet INT8, 3.97x smaller, no PyTorch required at runtime) is now published atOdaxAI/betaclarity-betasr-onnx. It runs natively on Apple Silicon via the CoreML Execution Provider. Quantized with our open-source OdaxAI SDK.
Research use only. This model is not intended for clinical decision-making. See the Disclaimer below.
CompVis/ldm-super-resolution-4x-openimages and fine-tunes the UNet using:huggingface-cli download OdaxAI/betaclarity-betasr model.pth --local-dir ./weights1from huggingface_hub import hf_hub_download
2
3model_path = hf_hub_download(
4 repo_id="OdaxAI/betaclarity-betasr",
5 filename="model.pth",
6 local_dir="./weights",
7)1from betaclarity.core.models import EnhancedLatentDiffusionModel
2from diffusers import LDMSuperResolutionPipeline
3import torch
4
5pipeline = LDMSuperResolutionPipeline.from_pretrained(
6 "CompVis/ldm-super-resolution-4x-openimages"
7)
8model = EnhancedLatentDiffusionModel(pipeline=pipeline)
9
10checkpoint = torch.load("./weights/model.pth", map_location="cpu")
11model.unet.load_state_dict(checkpoint["model_state_dict"])
12model.eval()
13
14enhanced = model.reconstruct(degraded_tensor, ddim_steps=10)| Property | Value |
|---|---|
| Base model | CompVis/ldm-super-resolution-4x-openimages |
| Task | Medical image super-resolution and denoising |
| Scale factor | 4× |
| Input | 128×128 low-quality image |
| Output | 512×512 enhanced image |
| Framework | PyTorch + Hugging Face Diffusers |
| License | Apache License 2.0 |
The model described in this repository is provided for research and development use only.The model is not intended for use in clinical decision-making or for any other clinical use, and the performance of the model for clinical use has not been established. You bear sole responsibility for any use of this model, including incorporation into any product intended for clinical use.This software does not constitute a medical device. It has not been cleared or approved by any regulatory agency (FDA, EMA, etc.).