Skip to content

Commit 11ebe19

Browse files
committed
ci: fix too many requests http error in the cpu tests coming from laion metric
1 parent 8014bf9 commit 11ebe19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pruna/evaluation/metrics/aesthetic_laion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def _get_aesthetic_model(self, clip_model="openai/clip-vit-large-patch14"):
180180
if not path_to_model.exists():
181181
cache_folder.mkdir(exist_ok=True, parents=True)
182182
url_model = (
183-
f"https://github.com/LAION-AI/aesthetic-predictor/blob/main/sa_0_4_{clip_model}_linear.pth?raw=true"
183+
f"https://raw.githubusercontent.com/LAION-AI/aesthetic-predictor/refs/heads/main/sa_0_4_{clip_model}_linear.pth"
184184
)
185185
urlretrieve(url_model, path_to_model)
186186

0 commit comments

Comments
 (0)