lucidrains / deep-daze

Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network). Technique was originally created by https://twitter.com/advadnoun
MIT License
4.37k stars 326 forks source link

google image search 404? #126

Closed chrisallick closed 3 years ago

chrisallick commented 3 years ago

Maybe I'm missing something, for example, could this be a firewall issue? I went the URL in my browser and it just 404'd.

edit: pip3 install deep-daze resulted in this issue

pip3 install deep-daze --upgrade resolved it.

new issue:

ubuntu@ip-_snip_:~$ imagine "cosmic love"
Setting jit to False because torch version is not 1.7.1.
/home/ubuntu/.local/lib/python3.6/site-packages/torch/cuda/amp/grad_scaler.py:116: UserWarning: torch.cuda.amp.GradScaler is enabled, but CUDA is not available.  Disabling.
  warnings.warn("torch.cuda.amp.GradScaler is enabled, but CUDA is not available.  Disabling.")
Starting up...
Imagining "cosmic_love" from the depths of my weights...
epochs:   0%|                                                                                                                                              | 0/20 [00:00<?, ?it/s/home/ubuntu/.local/lib/python3.6/site-packages/torch/cuda/amp/autocast_mode.py:118: UserWarning: torch.cuda.amp.autocast only affects CUDA ops, but CUDA is not available.  Disabling.
  warnings.warn("torch.cuda.amp.autocast only affects CUDA ops, but CUDA is not available.  Disabling.")
Killed
ubuntu@ip-_snip_:~/imagine$ /home/ubuntu/.local/bin/imagine
Enter a search term: cool
Initiating search for first 3 results...
(debug)     Fetching URL:   https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=cool&start=0&userip=_snip_
Traceback (most recent call last):
  File "/home/ubuntu/.local/bin/imagine", line 8, in <module>
    sys.exit(interface())
  File "/home/ubuntu/.local/lib/python3.6/site-packages/imagine/imagine_iface.py", line 11, in interface
    imaginator.execute()
  File "/home/ubuntu/.local/lib/python3.6/site-packages/imagine/__init__.py", line 36, in execute
    response = urllib.request.urlopen(request)
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found