prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  CPCv2-Resnet18 pretrained not available
  Hi, 
  When I try to load a pretrained CPCv2-resnet18 model, I get an `urllib.error.HTTPError: HTTP Error 403: Forbidden` error. The code I use to load the pretrained model is 
  ```
  model = CPCV2(encoder='resnet18', pretrained=True)
  x = torch.rand(1, 3, 224, 224)
  feats = model.encoder(x)
  ```
  The following URL doesn't seem to open on my browser (Chrome) too. 
  https://github.com/PyTorchLightning/pytorch-lightning-bolts/blob/32fb560a429532dfb40a5935ca7674990dae1f66/pl_bolts/utils/pretrained_weights.py#L6
  
  Any help is much appreciated.
  Thanks! 
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `pl_bolts/utils/pretrained_weights.py`
  Content:
  ```
  1 
  2 
  3 vae_imagenet2012 = 'https://pl-bolts-weights.s3.us-east-2.amazonaws.com/' \
  4                    'vae/imagenet_06_22_2019/checkpoints/epoch%3D63.ckpt'
  5 
  6 cpcv2_resnet18 = 'https://pl-bolts-weights.s3.us-east-2.amazonaws.com/' \
  7                  'cpc/resnet18_version_6/checkpoints/epoch%3D85.ckpt'
  8 urls = {
  9     'vae-imagenet2012': vae_imagenet2012,
  10     'CPCV2-resnet18': cpcv2_resnet18
  11 }
  12 
  13 
  14 def load_pretrained(model, class_name=None):  # pragma: no-cover
  15     if class_name is None:
  16         class_name = model.__class__.__name__
  17     ckpt_url = urls[class_name]
  18     weights_model = model.__class__.load_from_checkpoint(ckpt_url)
  19     model.load_state_dict(weights_model.state_dict())
  20
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/pl_bolts/utils/pretrained_weights.py b/pl_bolts/utils/pretrained_weights.py
  --- a/pl_bolts/utils/pretrained_weights.py
  +++ b/pl_bolts/utils/pretrained_weights.py
  @@ -4,7 +4,7 @@
                      'vae/imagenet_06_22_2019/checkpoints/epoch%3D63.ckpt'
   
   cpcv2_resnet18 = 'https://pl-bolts-weights.s3.us-east-2.amazonaws.com/' \
  -                 'cpc/resnet18_version_6/checkpoints/epoch%3D85.ckpt'
  +                 'cpc/resnet18-v6/epoch%3D85.ckpt'
   urls = {
       'vae-imagenet2012': vae_imagenet2012,
       'CPCV2-resnet18': cpcv2_resnet18
  
verification_info: {"golden_diff": "diff --git a/pl_bolts/utils/pretrained_weights.py b/pl_bolts/utils/pretrained_weights.py\n--- a/pl_bolts/utils/pretrained_weights.py\n+++ b/pl_bolts/utils/pretrained_weights.py\n@@ -4,7 +4,7 @@\n                    'vae/imagenet_06_22_2019/checkpoints/epoch%3D63.ckpt'\n \n cpcv2_resnet18 = 'https://pl-bolts-weights.s3.us-east-2.amazonaws.com/' \\\n-                 'cpc/resnet18_version_6/checkpoints/epoch%3D85.ckpt'\n+                 'cpc/resnet18-v6/epoch%3D85.ckpt'\n urls = {\n     'vae-imagenet2012': vae_imagenet2012,\n     'CPCV2-resnet18': cpcv2_resnet18\n", "issue": "CPCv2-Resnet18 pretrained not available\nHi, \r\nWhen I try to load a pretrained CPCv2-resnet18 model, I get an `urllib.error.HTTPError: HTTP Error 403: Forbidden` error. The code I use to load the pretrained model is \r\n```\r\nmodel = CPCV2(encoder='resnet18', pretrained=True)\r\nx = torch.rand(1, 3, 224, 224)\r\nfeats = model.encoder(x)\r\n```\r\nThe following URL doesn't seem to open on my browser (Chrome) too. \r\nhttps://github.com/PyTorchLightning/pytorch-lightning-bolts/blob/32fb560a429532dfb40a5935ca7674990dae1f66/pl_bolts/utils/pretrained_weights.py#L6\r\n\r\nAny help is much appreciated.\r\nThanks! \r\n\n", "before_files": [{"content": "\n\nvae_imagenet2012 = 'https://pl-bolts-weights.s3.us-east-2.amazonaws.com/' \\\n                   'vae/imagenet_06_22_2019/checkpoints/epoch%3D63.ckpt'\n\ncpcv2_resnet18 = 'https://pl-bolts-weights.s3.us-east-2.amazonaws.com/' \\\n                 'cpc/resnet18_version_6/checkpoints/epoch%3D85.ckpt'\nurls = {\n    'vae-imagenet2012': vae_imagenet2012,\n    'CPCV2-resnet18': cpcv2_resnet18\n}\n\n\ndef load_pretrained(model, class_name=None):  # pragma: no-cover\n    if class_name is None:\n        class_name = model.__class__.__name__\n    ckpt_url = urls[class_name]\n    weights_model = model.__class__.load_from_checkpoint(ckpt_url)\n    model.load_state_dict(weights_model.state_dict())\n", "path": "pl_bolts/utils/pretrained_weights.py"}], "after_files": [{"content": "\n\nvae_imagenet2012 = 'https://pl-bolts-weights.s3.us-east-2.amazonaws.com/' \\\n                   'vae/imagenet_06_22_2019/checkpoints/epoch%3D63.ckpt'\n\ncpcv2_resnet18 = 'https://pl-bolts-weights.s3.us-east-2.amazonaws.com/' \\\n                 'cpc/resnet18-v6/epoch%3D85.ckpt'\nurls = {\n    'vae-imagenet2012': vae_imagenet2012,\n    'CPCV2-resnet18': cpcv2_resnet18\n}\n\n\ndef load_pretrained(model, class_name=None):  # pragma: no-cover\n    if class_name is None:\n        class_name = model.__class__.__name__\n    ckpt_url = urls[class_name]\n    weights_model = model.__class__.load_from_checkpoint(ckpt_url)\n    model.load_state_dict(weights_model.state_dict())\n", "path": "pl_bolts/utils/pretrained_weights.py"}]}