Marigold V2
Marigold V2 estimates depth, surface normals or intrinsic albedo with task-specific diffusion adapters.
- Tác vụ
- depth, surface normals, albedo
- Kích thước
- b at 1024 px
- Cài đặt
pip install "libreyolo[marigold]"- Bậc hỗ trợ
- Chỉ suy luận, từ v1.6.0. Chỉ dự đoán, kiểm định và xuất. Không áp dụng các tính năng huấn luyện.
- Giấy phép
- Mã nguồn MIT, trọng số Apache-2.0. Sử dụng thương mại
Install
pip install "libreyolo[marigold]"The default four-bit runtime requires CUDA.
Predict
from libreyolo import LibreYOLO, SAMPLE_IMAGE # Requires CUDA for default four-bit inference.model = LibreYOLO("LibreMarigoldV2b-depth.pt", device="cuda")result = model(SAMPLE_IMAGE)print(result)The adapter downloads a separately pinned base model. Default quantization="4bit" requires CUDA; the snippet requires that runtime. quantization="none" selects the CPU-capable path. The default seed is 2025. Albedo results hold linear RGB and convert to sRGB for display. Training and export are not supported.
Validate
from libreyolo import LibreYOLO, SAMPLE_IMAGE # Requires CUDA for default four-bit inference.model = LibreYOLO("LibreMarigoldV2b-depth.pt", device="cuda")# Depth dataset YAML: images/val plus same-stem maps in depths/val.metrics = model.val(data="path/to/your/depth.yaml", workers=0)print(metrics)Use the dataset format for this task. Validation explains the dataset requirements and returned metrics.
Checkpoints
| Tệp | Giấy phép trọng số |
|---|---|
| Depth | |
| LibreMarigoldV2b-depth.pt | apache-2.0 |
| LibreMarigoldV2b-depth-log-stage1.pt | apache-2.0 |
| LibreMarigoldV2b-depth-log-layered.pt | apache-2.0 |
| LibreMarigoldV2b-depth-uniform-base.pt | apache-2.0 |
| LibreMarigoldV2b-depth-uniform-layered.pt | apache-2.0 |
| LibreMarigoldV2b-depth-disparity-base.pt | apache-2.0 |
| LibreMarigoldV2b-depth-disparity-layered.pt | apache-2.0 |
| Surface normals | |
| LibreMarigoldV2b-normal.pt | apache-2.0 |
| Albedo | |
| LibreMarigoldV2b-albedo.pt | apache-2.0 |
Mọi tệp ở trên hiện đều có trong tổ chức LibreYOLO và được tải xuống trong lần sử dụng đầu tiên.
Licensing
Hãy kiểm tra giấy phép trong repo Hugging Face của trọng số cụ thể mà bạn tải xuống. Mỗi checkpoint trong tổ chức LibreYOLO đều có giấy phép riêng và giấy phép có thể khác nhau trong cùng một họ. Repo đó là nguồn có thẩm quyền; phần tóm tắt dưới đây mô tả các điều khoản áp dụng khi trang này được kiểm chứng lần gần nhất.
Đây là phần mô tả các giấy phép liên quan, không phải tư vấn pháp lý. Nếu câu trả lời có ý nghĩa về mặt thương mại, hãy tự đọc các giấy phép và tham khảo cố vấn của riêng bạn.
- Công trình gốc
- Marigold V2, Huawei Bayer Lab
- Giấy phép thượng nguồn
- Apache-2.0
- Nguồn thượng nguồn
- github.com/huawei-bayerlab/marigold-v2
- Mã nguồn LibreYOLO
- MIT
- Trọng số
- Apache-2.0, được phát hành lại tại huggingface.co/LibreYOLO
- Diễn giải
- The adapters and separately acquired Qwen image base declare Apache-2.0.