lucidrains / big-sleep

A simple command line tool for text to image generation, using OpenAI's CLIP and a BigGAN. Technique was originally created by https://twitter.com/advadnoun
MIT License
2.57k stars 304 forks source link

Command Line working correctly, but sample code creating partially initalized module error #109

Closed byrd-dot closed 3 years ago

byrd-dot commented 3 years ago

As stated in the subject, I can get the package to work in the command line, but when I run the sample code in the README

      from big_sleep import Imagine

      dream = Imagine(
          text = "fire in the sky",
          lr = 5e-2,
          save_every = 25,
          save_progress = True
      )

      dream()

I get this error ImportError: cannot import name 'Imagine' from partially initialized module 'big_sleep' (most likely due to a circular import) `

I've checked to make sure and they are both running with the same Python environment