Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the matomo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wptbox/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the memberpress domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wptbox/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-security-audit-log domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wptbox/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the updraftplus domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wptbox/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the fullwidth-templates domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wptbox/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the twentig domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wptbox/wp-includes/functions.php on line 6121
Lora Model only generates black images - Stable Diffusion Art

Lora Model only generates black images

Viewing 1 reply thread
  • Author
    Posts
    • #11514
      Rafael Bravin
      Participant

        Hello, I’ve just created a Lora model using the tutorial . At first I got the following error:

        modules.devices.NansException: A tensor with all NaNs was produced in Unet. This could be either because there’s not enough precision to represent the picture, or because your video card does not support half type. Try using –no-half commandline argument to fix this.

         

        Then after trying the suggested procedure with no success I added –disable-nan-check to the arguments and now it doesnt throw any errors but the images turn all black

         

      • #11562
        AndrewAndrew
        Keymaster

          Hi, would you be able to follow the training example and reproduce the result? The first step is to make sure your training process is correct.

          The notebook is recently updated — Did you use the newly updated one, or the koyha_ss (gradio-based) one? Did you train SDXL or SD 1.5?

          • #11576
            Rafael Bravin
            Participant

              I used the notebook referenced in the resources page, and followed all the steps described in the tutorial, the difference was that I made my own images to use as a dataset, and that I was using 100 images. I was also doing the steps and following with my own computer and it worked, but I  made a few adjustments since the first one went wrong, locally I used 25 images and chose Lycoris/LoKr as the Lora type. I suspect it was something about the number of images or something about the notebook, or even a wierd error during training.

              I will create another topic to talk about another subject, please give the other topic preference to help me

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.