Views
No views yet
1from huggingface_hub import hf_hub_download
2import torch
3
4# Загрузка весов
5weights_path = hf_hub_download(repo_id="KirillDubov/nafnet-underwater", filename="nafnet_uieb.pth")
6
7# Дальше загружаете веса в свою архитектуру NAFNet:
8# model.load_state_dict(torch.load(weights_path, map_location='cpu')['model'])