2X Speed A1111 TensorRT extension

2 Jun 202311:25

TLDRIn this video tutorial, the host guides viewers through the installation of Intense Variety for Stable Diffusion, an extension ideal for large projects like movies, books, or web apps. The process involves cloning a git repository, switching branches, and downloading necessary files. The host also demonstrates how to disable other extensions and convert models to TensorRT for optimized performance. The video concludes with a speed comparison between the original Stable Diffusion and the new TensorRT implementation, showcasing significant improvements in image generation speed.


  • ๐Ÿ“Œ The video is a tutorial on installing 'Intense Variety for Stable Diffusion', an extension ideal for large projects.
  • ๐Ÿ”„ Early development allows usage of Control Net or Loras, but not Text Full Inversion.
  • ๐Ÿš€ The extension enables fast image production, suitable for projects like movies, books, or web apps with large user bases.
  • ๐Ÿ› ๏ธ Installation involves cloning a git repository and switching to a specific branch.
  • ๐Ÿ’ฝ Downloading Tensority from Nvidia and placing it in the correct folder structure is necessary.
  • ๐Ÿ“‚ Proper file hierarchy is crucial for Tensority to function correctly within the extension.
  • ๐Ÿ”„ Disabling all other extensions in Stable Diffusion is required before using the new one.
  • ๐Ÿ”„ Restarting the UI is needed to apply changes and enable the new extension.
  • ๐Ÿ”„ Conversion of models to Onyx and then to TensorRT is detailed, showcasing the process and time taken.
  • ๐Ÿ–ผ๏ธ Testing the speed of image generation with the old Stable Diffusion versus the new TensorRT is demonstrated.
  • ๐Ÿ“ˆ The video concludes with a comparison of speeds, showing significant improvement with TensorRT.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is the installation and use of Intense Variety for Stable Diffusion, a new extension for generating images quickly, ideal for large projects.

  • What type of projects would benefit from using Intense Variety with Stable Diffusion?

    -Projects like movies, books, or web apps that serve a large user base would benefit from using Intense Variety with Stable Diffusion due to its ability to produce images rapidly.

  • What are some of the features or tools mentioned in the video that can be used with Intense Variety?

    -The video mentions the use of Control Net or Loras, as well as Text Full Inversion, as features or tools that can be used with Intense Variety.

  • How does the video guide the viewer in installing the Intense Variety extension?

    -The video guides the viewer through cloning the extension's git repository, switching to a specific branch, and downloading and placing necessary files in the correct directories within the Stable Diffusion folder.

  • What is Tensority and how is it used in the context of this video?

    -Tensority is a component downloaded from Nvidia, which is used by copying it into the Stable Diffusion directory to enhance the functionality of the Intense Variety extension.

  • How does the video address the process of converting images using the new extension?

    -The video demonstrates the conversion process by showing how to set up the necessary parameters, such as batch size and maximum tokens, and then converting Onyx to TensorRT for optimized performance.

  • What issue does the video highlight regarding the current version of Intense Variety?

    -The video highlights that the current version of Intense Variety does not support different sizes and that it might not be as efficient as other tools like L Smith, which is mentioned as a topic for a future tutorial.

  • How does the video compare the speed of the old Stable Diffusion with the new TensorRT?

    -The video compares the speed by showing the time it takes to generate images using both the old Stable Diffusion and the new TensorRT, noting that TensorRT is almost twice as fast.

  • What is the significance of the 'Silvana style magic' mentioned in the video?

    -The 'Silvana style magic' refers to a setting or feature used in the image generation process. The video suggests that it might need to be adjusted to improve the quality of the generated images.

  • What advice does the video give about the future of the Intense Variety extension?

    -The video suggests that in the future, when the Intense Variety extension becomes more refined and supports different sizes and features like floras, it could be a valuable tool for users, especially for large-scale image generation tasks.

  • What is the next step or topic that the video promises to cover?

    -The video promises to cover the installation of Volta ml in a future tutorial, which is another tool that could potentially offer better performance and features compared to the current Intense Variety extension.



๐Ÿš€ Installing Intense Variety for Stable Diffusion

This paragraph outlines the process of installing Intense Variety, a new extension for Stable Diffusion, which is ideal for large projects like movies, books, or web apps. It explains the initial steps, including cloning the git repository, switching branches, and downloading necessary files like TensorRT from Nvidia. The paragraph emphasizes the early development stage of the extension and mentions that while it supports control net or loras, text full inversion is also available. It concludes with the anticipation of a better implementation in a future video.


๐Ÿ“Š Configuring and Testing Stable Diffusion Extensions

The second paragraph details the configuration of Stable Diffusion extensions, including disabling other extensions and converting files to Onyx. It describes the process of launching the web UI and updating the system with a git pull. The paragraph then focuses on the conversion of a 1.5 mole to TensorRT, highlighting the time taken for the conversion. It also discusses the testing of image generation speeds, comparing the old Stable Diffusion with the new TensorRT, and mentions the use of specific samplers and settings for optimal results.


๐ŸŽจ Evaluating Image Quality and Speed with TensorRT

In the final paragraph, the focus shifts to evaluating the image quality and speed achieved with TensorRT. It compares the performance of the system with and without TensorRT, noting a significant increase in speed. The paragraph discusses the use of different settings and samplers, such as Silver Magic, and the impact on image generation time. It concludes with a reflection on the results, noting that the images produced may need further refinement and expressing optimism for future improvements with Volta ML.



๐Ÿ’กIntense Variety for Stable Diffusion

Intense Variety is a new extension for the Stable Diffusion model, which is a type of artificial intelligence used for generating images. The extension is designed to be particularly useful for large projects, such as movies, books, or web applications with a broad user base, as it allows for the rapid production of images. In the context of the video, the user is guided through the process of installing this extension to enhance their Stable Diffusion setup.

๐Ÿ’กStable Diffusion

Stable Diffusion is an AI model that specializes in image generation based on textual prompts. It is part of a broader category of AI technologies known as generative models, which can create new content based on learned patterns. In the video, the focus is on enhancing the capabilities of Stable Diffusion through the installation of the Intense Variety extension, aiming to improve efficiency and output quality for various creative endeavors.

๐Ÿ’กControl Net and Loras

Control Net and Loras are likely references to specific technical features or components related to the Stable Diffusion model or its extensions. These terms are mentioned in the context of the capabilities that can be utilized or controlled within the Intense Variety extension, though the exact nature of these components is not detailed in the script provided.


Tensority appears to be a software or library that is downloaded and integrated with the Stable Diffusion model, possibly to enhance its performance or enable additional features. It is mentioned in the process of setting up the Intense Variety extension, suggesting that it plays a crucial role in the overall installation and functionality.

๐Ÿ’กWeb UI

Web UI stands for Web User Interface, which refers to the visual and interactive components used by users to access and operate software applications over the internet. In the context of the video, the Web UI is the interface through which the user interacts with the Stable Diffusion model and its extensions, including the newly installed Intense Variety.


In the context of software and AI models like Stable Diffusion, extensions refer to additional modules or plugins that can be added to the core software to enhance its functionality or capabilities. The video discusses the process of installing and disabling various extensions, including the Intense Variety extension for Stable Diffusion.

๐Ÿ’กOnyx and TensorRT

Onyx and TensorRT are terms related to NVIDIA's software and hardware technologies. Onyx likely refers to a specific format or version of the Stable Diffusion model, while TensorRT is NVIDIA's platform for high-performance deep learning inference. The video discusses converting Onyx to TensorRT, which suggests optimizing the model for faster and more efficient image generation.


Batching is a process in computing where multiple tasks or jobs are grouped together to be processed as a single unit. In the context of the video, batching refers to the user's decision to increase the batch size, which is the number of images generated simultaneously, to improve efficiency and speed during the image generation process.

๐Ÿ’กSample and Samplers

In the context of AI models like Stable Diffusion, 'sample' refers to an individual instance of generated content, such as an image, while 'samplers' are likely algorithms or methods used to generate these samples. The video discusses changing the sampler to 'unipc' and testing different settings, which affects the variety and quality of the generated images.

๐Ÿ’กPerformance Testing

Performance testing is the process of evaluating the speed, efficiency, and overall functionality of a system or software. In the video, the user conducts performance testing by comparing the image generation speed and quality between the standard Stable Diffusion model and the model enhanced with the Intense Variety extension and Tensority.


Installing Intense Variety for Stable Diffusion, a new extension ideal for large projects.

Producing images super fast due to early development of the technology.

Using ControlNet or LoRaS in the current development stage.

Text full inversion is available but not fully optimized.

Upcoming video will show a better implementation of Tense or TIG.

Instructions on installing the extension by cloning the git repository.

Switching to the 'depth' branch for the extension's functionality.

Downloading Tensority from Nvidia and placing it in the correct directory structure.

Launching the web UI for Stable Diffusion and ensuring it's up to date.

Disabling all other extensions to avoid conflicts.

Restarting the UI for changes to take effect.

Converting all models to Onyx for compatibility with the new extension.

Adding extra networks in the settings for enhanced capabilities.

Converting a 1.5 mole to TensorRT for optimized performance.

Adjusting parameters for batch size and maximum tokens for efficient processing.

Speed comparison between old Stable Diffusion and new TensorRT.

Testing different samplers and settings for image generation.

Results show almost twice the speed with TensorRT, maintaining the same quality.

Potential future improvements and additional features to be explored in upcoming tutorials.