Install Stable Diffusion Windows and Fix RTX performance 2023

Many feedback about performance NVIDIA RTX after installing Stable Diffusion Automatic1111. I will explained a simple way to install and fix the RTX 4090 performance within 5 minutes

First, make sure you have Python 3.10 in your Windows. You can use Anaconda or native Python installation.

  1. Clone stable diffusion git repository to your local directory

2. Install Stable Diffusion with xformers

This part is tricky. By default, it will install Torch 2.1.0, however the latest xformers will required to use torch 2.0. Which later you will encountered the problems like :

AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

The solution for installation both xformers and torch inside stable difussion is to pass the arguments in installation

./webui.bat --xformers

Fix Install Tensorflow 2 with GPU Simple Version 2023

Tensorflow running use GPU in Windows sometimes is difficult to do, where many articles not pointing exactly which Tensorflow version, NVIDIA drivers and other requirement needed to achieve it in Windows 11. Especially when you have NVIDIA RTX Graphic card like 4090 or 3090 or similar version.

I will help to explain on how to install it properly and make it run. Here are the steps to do:

1.Installing the Latest Anaconda.

Go to Anaconda website and download its community distribution. You can try to activate in your terminal windows with “conda activate” and you will enter your base.

If you are using powershelll, you can try “conda init powershell” to load the environment by default

2.Installing Microsoft Visual Studio 2022 (not to confuse with VSCode editor).

Choose the community version at and install Desktop Environment with C++


Solve Profile PS1 cannot be loaded UnauthorizedAccess

If you have this error when opening CMD, Powershell or terminal

WindowsPowerShell\profile.ps1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at https:/
At line:1 char:3
+ . 'C:\Users\dev\Documents\WindowsPowerShell\profile.ps1'
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

The quick fix is open “Powershell” with administrator access and execute this command

Set-ExecutionPolicy Unrestricted

Enforce Dark mode to all website in Chrome

Dark mode is good or bad for your eyes? What happen when all website you are visit is in Dark mode? I’m running this experiments via Chrome. Yes, you can enable this easily. Follow the steps below

First, type this into your browser


Search “auto dark mode” in the search box, then click Enable.

Then relaunch your browser. Now, everything you see will be in dark mode!

PS: Apparently dark mode is not good for my eyes focus after give a try for 15-20 minutes

Fix Customize resolution unable Nvidia Samsung 240hz

When I’m using 240hz with G-SYNC and Performing scaling on GPU, the resolution available is just 5120xs1440, 1920×1440, 1920×1200, and 1600×1200.

To add new resolution, here are the pre-requisities: Make sure enable 240hz and Scaling on GPU

Then go to regedit, choose “Find” with Key and value checked, enter keyword “nv_modes”.

Modify by adding this as end of the line


Then reboot. Now you should see a new resolution in your Nvidia Panel


Fix GPU load 100% Desktop Window Manager Windows 11

When your PC feels laggy with Nvidia GPU drivers that keep hitting 100% under idle situations, there are several chances to cause that problem.

Either its virus, trojan on mining crypto, the NVIDIA drivers mismatch, misconfiguration on NVidia settings, Windows scaling issues and many more

After tweaking several stuff, I gave up and decided to solve this by revert back to Windows 10 with NVCleanStall. There result is amazing, now my GPU load RTX 3060 Ti is back to normal

Ideally, when your Windows is idle, your GPU load utilization should be like this

Fyi, this is running under 240hz of monitor refresh rate and using Windows 11 22H2

To solve the problem:

  1. Reduce performance by go to Windows start menu “Adjust the appearance and performance of windows”.
  2. Try to remove unnecessary animation and others stuff.

3. Install the latest Nvidia drivers and do not change the
4. Go to Task Manager, find Desktop Window Manager, right click and choose “Go to Details”. Find dwm.exe and right click. Set priority to Normal.

If the GPU load still high, Please check your Nvidia settings and change Power Management from “Prefer Maximum Performance” into “Normal” then reboot.

If this High GPU load still exists, the last resort is to “uninstall your GPU Nvidia Driver” and use the default driver from Windows (early version)

In my case, the 2021 drivers works like a charm for me!


Fix is not digitally signed. You cannot run this script

If you got this by running the script in Terminal or Powershell, you can fix this Windows permission issue by running

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

How to Import password google chrome feature in Windows 10

Quick way to import password in Google Chrome, where its disabled by default or not found in settings. If you are using windows, you can go right-click on the Chrome desktop icon and choose Properties

Then, change the shortcut path and add “–enable-features=PasswordImport” in Target icon shortcut

C:\Users\dev\Downloads\chrome-win\chrome-win\chrome.exe --enable-features=PasswordImport --max-old-space-size=16384