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

Cannot cancel command-line process with CTRL+C in Linux #101

Open anomal opened 3 years ago

anomal commented 3 years ago

Once you start dream successfully from the command-line in Linux, CTRL+C doesn't terminate the process, and only seems to cancel the current iteration. I had to hold down CTRL+C for a very long time until the progress bar completed before I got the message etecting keyboard interrupt, gracefully exiting. (This also seems to be a bug, that the progress bar makes progress without actual computation when cancelling the current iteration.)

Expected

After starting dream successfully in Linux, CTRL+C should cancel the process and return the command-line prompt.

Actual

CTRL+C only cancels the current iteration, and the computation continues until the progress bar runs to completion, after which the etecting keyboard interrupt, gracefully exiting message is displayed and the command-line prompt is returned.