taming-transformers icon indicating copy to clipboard operation
taming-transformers copied to clipboard

How to get the url of checkpoint and config?

Open Catrin-baze opened this issue 2 years ago • 2 comments
trafficstars

If I want to use wget to download the pretrained model of cin transformer,link is https://app.koofr.net/links/90cbd5aa-ef70-4f5e-99bc-f12e5a89380e how can I get the url. I tried to right click the link to download, but failed. The error I got was "HTTP request sent, waiting response... 400 Bad Request". So I think it should be my url acquisition error. This question may be very simple. I would appreciate it if someone could answer it for me.

Catrin-baze avatar Jan 31 '23 02:01 Catrin-baze

use curl

curl -o 2021-04-03T19-39-50_cin_transformer.zip "https://app.koofr.net/content/links/90cbd5aa-ef70-4f5e-99bc-f12e5a89380e/files/get/2021-04-03T19-39-50_cin_transformer.zip?path=%2F&force"

yc-cui avatar Apr 29 '23 10:04 yc-cui

the file server rejects any direct link request with 400. try to use referer option in your command line. for example: for curl you can append a -e $referer option. the referer url can be found on your browser f12: image

zent1n0 avatar Mar 01 '24 06:03 zent1n0