DiffusionCLIP icon indicating copy to clipboard operation
DiffusionCLIP copied to clipboard

celeba_hq.ckpt .etc pretrain model

Open Gavin-Evans opened this issue 2 years ago • 7 comments

hi, I got an error when running.

Downloading: "https://image-editing-test-12345.s3-us-west-2.amazonaws.com/checkpoints/celeba_hq.ckpt" to C:\Users\xx/.cache\torch\hub\checkpoints\celeba_hq.ckpt ERROR - main.py - 2023-04-22 20:48:44,842 - Traceback (most recent call last): File "main.py", line 212, in main runner.clip_finetune() File "E:\DL\generation\diffusionCLIP\DiffClip\diffusionclip.py", line 82, in clip_finetune init_ckpt = torch.hub.load_state_dict_from_url(url, map_location=self.device) File "D:\ProgramData\anaconda3\envs\diffusionclip\lib\site-packages\torch\hub.py", line 731, in load_state_dict_from_url download_url_to_file(url, cached_file, hash_prefix, progress=progress) File "D:\ProgramData\anaconda3\envs\diffusionclip\lib\site-packages\torch\hub.py", line 597, in download_url_to_file u = urlopen(req) File "D:\ProgramData\anaconda3\envs\diffusionclip\lib\urllib\request.py", line 222, in urlopen return opener.open(url, data, timeout) File "D:\ProgramData\anaconda3\envs\diffusionclip\lib\urllib\request.py", line 531, in open response = meth(req, response) File "D:\ProgramData\anaconda3\envs\diffusionclip\lib\urllib\request.py", line 640, in http_response response = self.parent.error( File "D:\ProgramData\anaconda3\envs\diffusionclip\lib\urllib\request.py", line 569, in error return self._call_chain(*args) File "D:\ProgramData\anaconda3\envs\diffusionclip\lib\urllib\request.py", line 502, in _call_chain result = func(*args) File "D:\ProgramData\anaconda3\envs\diffusionclip\lib\urllib\request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden

pretrain models aren't automatically downloaded in the code, may you share them in Google Drive?

thanks.

Gavin-Evans avatar Apr 22 '23 13:04 Gavin-Evans

I found that this GitHub repo provided a copy of celeba_hq.ckpt. Hope it can help some of you.

nihaomiao avatar Apr 24 '23 21:04 nihaomiao

I think that's because this project references the code from SDEdit,its pretrained checkpoints can't download too!

pochenyun avatar Apr 25 '23 15:04 pochenyun

I found celeba_hq.ckpt from this url https://drive.google.com/file/d/1wSoA5fm_d6JBZk4RZ1SzWLMgev4WqH21/view?usp=share_link

JamesSand avatar Aug 12 '23 00:08 JamesSand

This is really helpful.

MingfeiShiMS avatar Aug 25 '23 03:08 MingfeiShiMS

"Where can I download the pre-trained model for Dog Face 256*256? The previously provided download link is no longer valid. Could someone please share an updated link?"

Sourabs-kms avatar Feb 01 '24 01:02 Sourabs-kms

  邮件已收到,会尽快回复,祝安!

Honeybadger-LSX avatar Feb 01 '24 01:02 Honeybadger-LSX

Hello, I've observed that the afhqdog_p2.pt file mentioned earlier is expected to be used for 3-class classification. However, when incorporated into the code, it indicates a 307-class classification. Upon investigation, I noticed that all the weight files shared in the Google Drive link have the same file size. Could there be an issue with these weight files?

Sourabs-kms avatar Feb 02 '24 12:02 Sourabs-kms