chigozienri / VQGAN-CLIP-animations

133 stars 28 forks source link

[SSL: CERTIFICATE_VERIFY_FAILED] #35

Open boxofblank opened 2 years ago

boxofblank commented 2 years ago

Describe the bug I am getting an SSL: Certificate_Verify_Failed error in the "Actually do the run..." cell.

Parameters used key_frames = True #@param {type:"boolean"} text_prompts = 0: (a blueprint of human emotion by Wassily Kandinsky: 0| the color of emotion: 0| Love: 0| heart: 0| baby: 0| Acrylic art: 0| memories of a beautiful childhood: 0| impressionism: 0| Hyperrealism: -3), 15: (a blueprint of human emotion by Wassily Kandinsky: 2| the color of emotion: 1.5| Love: 0| heart: 0| baby: 0| Acrylic art: 0| memories of a beautiful childhood: 0| impressionism: 0| Hyperrealism: -3), 63: (a blueprint of human emotion by Wassily Kandinsky: 2| the color of emotion: 1.73| Love: 2| heart: .3| baby: 0| Acrylic art: 2| memories of a beautiful childhood: .3| impressionism: 0| Hyperrealism: -3), 100: (a blueprint of human emotion by Wassily Kandinsky: 2| the color of emotion: 2| Love: 1| heart: 1.1| baby: 1| Acrylic art: 2| memories of a beautiful childhood: 1| impressionism: 0| Hyperrealism: -3), 130: (a blueprint of human emotion by Wassily Kandinsky: .55| the color of emotion: 1.4| Love: .5| heart: 0| baby: 2| Acrylic art: 2| memories of a beautiful childhood: 2| impressionism: 0| Hyperrealism: -3), 243: (a blueprint of human emotion by Wassily Kandinsky: .35| the color of emotion: 1.4| Love: .5| heart: 0| baby: 2| Acrylic art: 2| memories of a beautiful childhood: 1.8| impressionism: 2| Hyperrealism: -3) width = 400#@param {type:"number"} height = 400#@param {type:"number"} model = "vqgan_imagenet_f16_16384" #@param ["vqgan_imagenet_f16_16384", "vqgan_imagenet_f16_1024", "wikiart_16384", "coco", "faceshq", "sflckr"] interval = 1#@param {type:"number"} initial_image = /content/GRIDS/GRID_full_F8b.png target_images = 0: (/content/GRIDS/GRID_full_F8b.png: 2| /content/baby_1.png: 0), 30: (/content/GRIDS/GRID_full_F8b.png: 0| /content/baby_1.png: 0), 200: (/content/GRIDS/GRID_full_F8b.png: 0| /content/baby_1.png: 3) seed = -1 max_frames = 301 angle = 0: (1.031), 159: (0) zoom = 0: (1.03), 5: (1.034), 145: (1.08), 155: (1.08), 243: (1) translation_x = 0: (0) translation_y = 0: (0) iterations_per_frame = 0: (13), 300: (33) save_all_iterations = False#@param {type:"boolean"}

Which cell you saw the error in Actually do the run

Error message Cleared Accounted PIDs for GPU 00000000:00:04.0. All done. Using device: cuda:0 Using seed: 14080064489281205813 Working with z of shape (1, 256, 16, 16) = 65536 dimensions. Downloading: "https://download.pytorch.org/models/vgg16-397923af.pth" to /root/.cache/torch/hub/checkpoints/vgg16-397923af.pth

SSLCertVerificationError Traceback (most recent call last) /usr/lib/python3.7/urllib/request.py in do_open(self, http_class, req, **http_conn_args) 1349 h.request(req.get_method(), req.selector, req.data, headers, -> 1350 encode_chunked=req.has_header('Transfer-encoding')) 1351 except OSError as err: # timeout error

25 frames SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)

During handling of the above exception, another exception occurred:

URLError Traceback (most recent call last) /usr/lib/python3.7/urllib/request.py in do_open(self, http_class, req, **http_conn_args) 1350 encode_chunked=req.has_header('Transfer-encoding')) 1351 except OSError as err: # timeout error -> 1352 raise URLError(err) 1353 r = h.getresponse() 1354 except:

URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)>

Screenshots Screenshot attached

Additional context I am using google drive. I've been successfully using this for close to a month since purchasing pro+. I've had other errors before and solved them, but this is the first I've received this error and I just can't figure it out. Please advise! Thank you!

certification verify failed
chigozienri commented 2 years ago

Hi @boxofblank , I can't replicate this error. Are you connecting from a new location, or with new firewall settings or something? This is a stretch, as it's actually google's servers that are connecting...

First, could you just try restarting the notebook (Runtime>Restart and Run all) or if that doesn't work (Runtime>Manage Sessions>Terminate then Runtime>Run all)

Then, if you're still having a problem, to troubleshoot:

  1. navigate to https://download.pytorch.org/models/vgg16-397923af.pth in your browser and see if you can download it?
  2. Open a new cell in the notebook and run !wget https://download.pytorch.org/models/vgg16-397923af.pth Report the results here