Closed AIManifest closed 1 year ago
Same here. @AIManifest Have you found a quick workaround by any chance?
Not yet my friend, as far as I know, seems to be a calculation bug, and I'm not sure which value to change when It comes to that.
Hi @akihironitta @AIManifest . Sorry for the late response. We have tested and found the bug in our code and fixed it. Please try it again and let us know if any issue. Note that please use the latest notebook from main branch. Thank you for your rasing it.
@Toan-Do Thank you for the update. Which notebook are you running? I'm running this notebook on Colab but getting a different error when running demo.py
as in the notebook. I'd like to quickly check if I'm looking at the right notebook before spending more time debugging the error. This is the one, right?:
https://colab.research.google.com/github/stochasticai/x-stable-diffusion/blob/main/TensorRT/Notebook.ipynb
@akihironitta There is no bug. You can see that it finish generating image in the log 50it [00:09, 5.41it/s] 100% 1/1 [00:12<00:00, 12.32s/it]
. Please check if image_generated.png file is generated or not.
@Toan-Do You're right. I can see a file generated there. Sorry for the confusion and thank you for your help!
Hey friends,
Interested in getting the notebook running, would love to solve this! Thanks in advance!
Traceback (most recent call last): File "/content/drive/MyDrive/x-stable-diffusion/TensorRT/demo.py", line 114, in
image = model.predict(
File "/content/drive/MyDrive/x-stable-diffusion/TensorRT/demo.py", line 88, in predict
latents = self.scheduler.step(noise_pred.cuda(), i, latents)["prev_sample"]
File "/usr/local/lib/python3.8/dist-packages/diffusers/schedulers/scheduling_lms_discrete.py", line 218, in step
step_index = (self.timesteps == timestep).nonzero().item()
ValueError: only one element tensors can be converted to Python scalars