
As you know, “JPEG” is one of the commonly used formats for image files which is a compression of digital images. It is one of the topmost used file formats by mobile phones and digital cameras and usually achieves a 10:1 compression with little visible loss in the quality of the image.
There are tons of cases as of late, most particularly after the latest Windows 10 update where users were not able to open JPEG files on their PCs. Every time they try to open any JPEG file, they either get an error or nothing happens at all. This issue could be due to the default handler application for JPEG applications not being set or there could be some third-party image viewer not working properly. To fix this issue with JPEG files, refer to the troubleshooting options below.
You need to check if the file type association of the JPEG files are correctly set or not since there are tons of third party programs that change the file type association automatically to themselves without your permission the instant they are installed and so if any of these third-party programs are broken, then naturally, your JPEG files won’t really open. That’s why you can try changing the setting to the default photo viewer instead of the third-party one. To do so, follow the steps below.
Microsoft frequently releases updates to target bugs and improve users’ experience. And this particular error where JPEG files won’t open is already acknowledged by Microsoft so you need to make sure that your Windows 10 PC is updated to the latest released update and that there are no pending updates.
Resetting the Photos app could also help you in fixing the problem. Note that this option will reset all the configurations and your data associated with your Photos and makes the application go into a state when you first started using it and that this option will fix any discrepancies that your application might be experiencing right now.
Before you start using other third-party image viewers just yet, you can try to reinstall the Photos app first. Thus, if there is something wrong with it, it will instantly get fixed right after it reinstalls. Just take note that this option requires administrative privileges so you need to be logged in as an administrator.
KMODE_EXCEPTION_NOT_HANDLED – win32kbase.sys
PAGE_FAULT_IN_NONPAGED_AREA – win32kbase.sysThe win32kbase.sys file is a Windows operating system Base Win32 Kernel Driver file located in the System32 folder so if it ends up getting corrupted or if it went missing, your computer will throw up Blue Screen error. To fix BSOD errors that have something to do with the win32kbase.sys file, here are some possible fixes that could help. Worry not for these possible fixes are not complicated.
chkdsk /f C:
HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvanced
Stable Diffusion is a machine learning model developed by Stability AI to generate digital images from natural language descriptions. The model can be used for different tasks like generating image-to-image translations guided by text prompts and upscaling images.
Unlike competing models like DALL-E, Stable Diffusion is open source and does not artificially limit the images it produces. Stable diffusion was trained on a subset of the LAION-Aesthetics V2 data set. It can run on most consumer hardware equipped with a modest GPU and was hailed by PC World as "the next killer app for your PC".
Since Stable Diffusion is run locally and not in the cloud, as mentioned there is no limit to the number of images that you can produce but in order to use it you will have to get down a little dirty with setting your PC environment for it since it is not really an application, it is a command line text based descriptor that will use python to generate your images, so there is no install nor GUI.
In this guide, we will show you how to both install and run Stable Diffusion on your local PC so you can start producing some cool images all by yourself.
Make no mistake, Stable Diffusion will not run on a potato PC, in order to harvest the power of AI-generated imagery this is what you will need:
For this tutorial, we are covering the installation and running of Stable Diffusion on Windows PC. The steps presented here are presented in a way that installation can be performed on any operating system but precise instructions will be for Windows OS.
The first thing to do is to install GIT. It is a tool that will let you easily maintain and install repos from the internet. to install it go to: https://git-scm.com/ and click on download. Follow the instructions for your version of the operating system. If you are a developer you are familiar with GIT and if you already have it installed you can skip this step.
One thing that is important when installing GIT locally is to select to use it via the command line (the second option that says "Git from the command line and also from 3rd-party software").
Now when we have GIT installed, next thing is to use Miniconda3 to install python and all required libraries that are needed. Get the installer at: https://docs.conda.io/en/latest/miniconda.html
Miniconda3 is basically an easy installer so you do not have to install tons of stuff manually from different websites and sources, it is nicely packaged in the installer that will take care of everything.
After the previous two steps, we are ready now to actually install Stable Diffusion. Go to https://huggingface.co/CompVis/stable-diffusion#model-access and install the latest library (as of the writing of this article currently it is stable-diffusion-v1-4-original, the last one on the right), the library is almost 5GB in size so be prepared for big download.
After installing stable diffusion's latest library it is time to update it to the newest version. You can download ZIP from GIT HUB https://github.com/CompVis/stable-diffusion
Once downloaded click on the Windows start button and type in Miniconda3 and click on open. Create a folder and name it how you want on a drive of your choice. For this example, we will install it all in disk C under folder AI_art, follow the instructions below but use your own names and destination instead. Do not close Minicoda3 after typing commands!!!
cd c:/
mkdir AI_art
cd AI_art
Extract GitHub files that you have downloaded into your new folder and get back to Minicoda3 and type the next commands:
cd C:\AI_art\stable-diffusion-main
conda env create -f environment.yaml
conda activate ldm
mkdir models\ldm\stable-diffusion-v1
Let the whole process finish, some files are large and it might take a while. After the whole process is finished and completed, copy the checkpoint file that you have downloaded into: C:\AI_art\stable-diffusion-main\models\ldm\stable-diffusion-v1
After the file is copied rename it to model.ckpt and you are finished.
The created environment is needed in order to actually use Stable Diffusion to create images. Each time you want to use it you will have to run it, so go into Miniconda3, and inside it type:
conda activate ldm
cd C:\AI_art\stable-diffusion-main
after we are inside the folder call the script with the parameters:
python scripts/txt2img.py --prompt "TXT DESCRIPTION OF IMAGE THAT YOU WANT TO CREATE" --plms --n_iter 5 --n_samples 1
and that's it, your image is created and it is located in C:\AI_art\stable-diffusion-main\outputs\txt2img-samples\samples