Views
No views yet
1from huggingface_hub import hf_hub_download
2import torch
3
4# Download checkpoint
5checkpoint_path = hf_hub_download(
6 repo_id="{repo_id}",
7 filename="{checkpoint_name}"
8)
9
10# Load model
11model = torch.load(checkpoint_path, map_location='cpu')1@article{DAEFR,
2 title={Degradation-Aware Face Restoration},
3 author={},
4 journal={},
5 year={2024}
6}