YingchaojieFeng / PromptMagician

34 stars 5 forks source link

Nothing shows up while generating #3

Open msukharam963 opened 5 months ago

msukharam963 commented 5 months ago

So the code runs perfectly without any issues but while running the front-end the window pops up and while generating the image the image browser just keeps on loading. ANY FIX FOR THAT?

Screenshot 2024-04-01 100944

YingchaojieFeng commented 5 months ago

Hi~ Have you ever checked the output of the back end? You can check the output in "nohup.out" file when running the back end

msukharam963 commented 5 months ago

D:\Internship\Kintu Designs\StableDiffusionApp\PromptMagician\back-end\server\util.py:46: SyntaxWarning: invalid escape sequence '.' sub_textlist = re.split(',|.|/|;|\'|`|||[|]|<|>|\?|:|"|{|}|\~|!|@|#|\$|%|\^|&|(|)|-|=|\|+|\uff0c|\u3002|\u3001|\uff1b| | |\u3010|\u3011| |\uff01| |\uff08|\uff09', text) [Workflow] device cuda D:\Python\Lib\site-packages\diffusers\utils\outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead. torch.utils._pytree._register_pytree_node( cuda:0 Begin to load model

model_index.json: 0%| | 0.00/541 [00:00<?, ?B/s] model_index.json: 100%|##########| 541/541 [00:00<?, ?B/s] D:\Python\Lib\site-packages\huggingface_hub\file_download.py:149: UserWarning: huggingface_hub cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\msukh.cache\huggingface\hub\models--CompVis--stable-diffusion-v1-4. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the HF_HUB_DISABLE_SYMLINKS_WARNING environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations. To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to see activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development warnings.warn(message)

Fetching 16 files: 0%| | 0/16 [00:00<?, ?it/s] Fetching 16 files: 100%|##########| 16/16 [00:00<00:00, 4015.61it/s]

Loading pipeline components...: 0%| | 0/7 [00:00<?, ?it/s] Loading pipeline components...: 29%|##8 | 2/7 [00:00<00:01, 3.63it/s] Loading pipeline components...: 43%|####2 | 3/7 [00:01<00:02, 1.98it/s] Loading pipeline components...: 57%|#####7 | 4/7 [00:05<00:05, 1.75s/it] Loading pipeline components...: 100%|##########| 7/7 [00:06<00:00, 1.02s/it] Loading pipeline components...: 100%|##########| 7/7 [00:06<00:00, 1.01it/s] Set device Start inference

THIS IS THE OUTPUT IN "nohup.out" AND THIS IS IN TERMINAL AFTER "server.py" is executed.

[Workflow] device cuda Start to load dataset from poloclub/diffusiondb... D:\Python\Lib\site-packages\datasets\load.py:1454: FutureWarning: The repository for poloclub/diffusiondb contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/poloclub/diffusiondb You can avoid this message in future by passing the argument trust_remote_code=True. Passing trust_remote_code=True will be mandatory to load this dataset from the next major release of datasets. warnings.warn( Saving the dataset (6/6 shards): 100%|██████████████████████████████████████████████████████████████| 5000/5000 [00:11<00:00, 437.30 examples/s] Dataset({ features: ['image', 'prompt', 'seed', 'step', 'cfg', 'sampler', 'width', 'height', 'user_name', 'timestamp', 'image_nsfw', 'prompt_nsfw'],
Start to load features from cache...

YingchaojieFeng commented 5 months ago

IndexError: Invalid key: 55853 is out of bounds for size 5000

I guess the error is caused by the mismatch of the dataset. The preprocessed data is based on DiffusionDB 2m_first_100k. If you want to use a different version of the dataset, you need to preprocess it by referring to the workflow.py (Step 3 in README.md)

截屏2024-04-02 14 18 06
msukharam963 commented 5 months ago

Thanks for the help. It is working now.