ermongroup / SDEdit

PyTorch implementation for SDEdit: Image Synthesis and Editing with Stochastic Differential Equations
https://sde-image-editing.github.io/
MIT License
962 stars 90 forks source link

urllib.error.HTTPError: HTTP Error 403: Forbidden #25

Open yuuma002 opened 1 year ago

yuuma002 commented 1 year ago

Hi, we cannot download the lsun_bedroom1.pth using the official command python main.py --exp ./runs/ --config bedroom.yml --sample -i images --npy_name lsun_bedroom1 --sample_step 3 --t 500 --ni. How could we fix this error? The traceback is posted below.

Thank you very much.

  File "main.py", line 104, in main
    runner.image_editing_sample()
  File "/mnt/zff/code/diffusion_model/sdedit/sdedit/runners/image_editing.py", line 113, in image_editing_sample
    download_process_data(path="colab_demo")
  File "/mnt/zff/code/diffusion_model/sdedit/sdedit/functions/process_data.py", line 8, in download_process_data
    torch.hub.download_url_to_file('https://image-editing-test-12345.s3-us-west-2.amazonaws.com/colab_examples/lsun_bedroom1.pth', os.path.join(path, 'lsun_bedroom1.pth'))
  File "/miniconda3/envs/t1/lib/python3.8/site-packages/torch/hub.py", line 611, in download_url_to_file
    u = urlopen(req)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/miniconda3/envs/t1/lib/python3.8/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
stephenivy07 commented 11 months ago

got the same question

sunzhe09 commented 11 months ago

me too

Powderbluee commented 10 months ago

got same question

Zannnn commented 10 months ago

me too

GISStd commented 9 months ago

me too

1LOVESJohnny commented 8 months ago

same problem here, has anyone found a solution?

jzhangCSER01 commented 1 month ago

Does anyone solve this problem?