-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Textual Inversion code giving error #16
Comments
Hello! Perhaps I missed it in your post, but I don't see the error message. Can you provide the error message? Luke |
Yes I missed out on that. |
Hi @lukemelas, from transformers.pipelines.base import Pipeline pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5") ! export DATA_DIR="/content/realfusion/examples/natural-images/banana_1" !python /content/realfusion/textual-inversion/textual_inversion.py I am getting the following error: Could you help? |
Are you using $'s with your environment variables? You have to pass them as $DATA_DIR if you export them using |
Thank you @lukemelas. I appreciate your assistance @lukemelas. |
Hello, this is because Hope this helps! |
Hello @lukemelas , I checked my accelerate version. It is :
Thank you for your replies. |
Hello @lukemelas,
I tried resolving this error by doing the following: After running this, the model went into training mode, however, now there is new error as follows: Mixed precision type: no {'timestep_spacing', 'prediction_type', 'thresholding', 'clip_sample_range', 'dynamic_thresholding_ratio', 'sample_max_value', 'variance_type'} was not found in config. Values will be initialized to default values. How do I go about this error and was the addition on line 572 the correct way to go ahead?
Kindly assist. Thank you |
Hi @lukemelas, I am getting this error for the last 3 days:
It gives another error that is: Mixed precision type: no Traceback (most recent call last):
I am not able to understand how to exactly solve these 2 issues. I tried understanding your code, but nothing fruitful. @lukemelas I would really need your assistance in these questions or anyone who has implemented his code from the repo. Thank you Warm regards, |
Hi @anandvarrier and @lukemelas . I am getting the same error as you with the accelerate package and the logging directory error. Did you manage to get it to work? |
@anandvarrier For your point 3. I think you need to upgrade diffusers to at least 0.15.0 . If you run pip install diffusers==0.15.0 then it should work properly and resolve the error. |
Hi @lilyuam, |
@anandvarrier @lilyuam @lukemelas
|
Description
Hi,
@lukemelas, great work. Wanted something like this for a while. Your model's accuracy is better than earlier versions of 2D to 3D models.
I am running all my code on Google Collab(free version). I am following the Readme, however, I encountered the following error at the Text Inversion step. I had to edit few lines to make it run but in no vain. @lukemelas or anyone could you kindly help me out in setting up the code?
I am uploading 2 screenshots for reference.
Thank you
Steps to Reproduce
.
Expected Behavior
I expected the given code to run as per readme document.
Environment
Google Collab, Python 3.10
The text was updated successfully, but these errors were encountered: