Anime upscaler stable diffusion. Aug 7, 2023 · futuristsenpai August 7, 2023, 7:34pm 1.

News channel: https://t. ”. More details are in anime video models. 25 upscale to 640x960 with 0. AnimateDiff is a text-to-video method for Stable Diffusion. Keep final denoising strength at 0. For example, you might take a Stable Diffusion image of 512 x 512p to a higher resolution of 1024 x 1024p. pt. Jan 10, 2024 · Animagine XL 3. May 16, 2024 · Give life to your favorite anime characters using stable diffusion & ControlNet (lineart) techniques. In July 2023, they released SDXL. Next we will download the 4x Ultra Sharp Upscaler for the optimal results and the best quality of images. May 12, 2023 · 3. As is to be expected, when I upscale, my people turn into plastic. Anything v3 is a celebrated anime-style Stable Diffusion model. Deep Negative. 35 denoise, controlnet tile, 4x ultrasharp upscaler and ultimate sd upscale. Settings: Img2img & ControlNet (Lineart) 4. The Creative Upscaler by Stability AI is a best-in-class upscaler that not only increases the resolution of your images, but also adds new details that weren't there before. All of Stable Diffusion's upscaling tools are located in the "Extras" tab, so click it to open the upscaling menu. Anime4K is a state-of-the-art*, open-source, high-quality real-time anime upscaling algorithm that can be implemented in any programming language. 5 model. The various GANs may even be mindblowing at reconstructing Stable Diffusion NSFW refers to using the Stable Diffusion AI art generator to create not safe for work images that contain nudity, adult content, or explicit material. 1. 3. fix, Ultimate SD Upscale and Tiled Diffusion methods, Extras upscaler is faster, but it retains less detail in general, and can be blurry when aiming for huge size such as 4K and 8K. Click on "Upload Image" to upscale anime pictures now! Conclusion. pth" so fixed it. Stable Diffusion is a very powerful AI image generation software you can run on your own home computer. Vance AI: AI-driven image upscaling solution. Introduction2. Generate NSFW Now. It can upscale any low-quality image to 4k resolution (about 9 Megapixels) by combining the input image with a text Dec 3, 2023 · Learn about ControlNet, ESRGAN, Superscale, "Hires Fix", the scripts "SD Upscale" and "Ultimate SD Upscale". This test was made in the most lazy method as you can imagine, without any enhancing images via inpainting. これは、画像生成モデルの学習元の画像のサイズと生成する画像のサイズがかけ離れていることが原因だ. By default, Stable Diffusion is a command-based program. For more details on upscaling within Stable Diffusion: High-Quality Upscaling Made Easy in Stable Diffusion Mar 28, 2024 · Overview of WaifuXL: A Comprehensive Guide to the Leading AI Image Upscaler. Enlarges images up to 8x and anime-style art up to 16x without quality loss. fix』の使用方法について解説しています。Upscaler やDenoising strengthの設定値の違いや使用するメモリについても解説しています。 We would like to show you a description here but the site won’t allow us. A higher value will result in more details and recovery, but you should not set it higher than 0. 5. *State of the art as of August 2019 in the real-time anime 4K upscaling category, the fastest at achieving reasonable quality. If you’re going for … Read More May 16, 2024 · Once you’ve uploaded your image to the img2img tab we need to select a checkpoint and make a few changes to the settings. me/usdunews. To get a guessed prompt from an image: Step 1: Navigate to the img2img page. Stable Diffusion comes with a lot of default models, I will list the best options for your use case here: Realism: R-ESRGAN-4x+ or LDSR (Slower) Paintings: ESRGAN_4x; Anime: R-ESRGAN 4x+ Anime6B; I will select R-ESRGAN-4x+ since my video is No token limit for prompts (original stable diffusion lets you use up to 75 tokens) DeepDanbooru integration, creates danbooru style tags for anime prompts xformers , major speed increase for select cards: (add --xformers to commandline args) Sep 26, 2023 · Part 2: How to Use Stable Diffusion to Upscale Image. I was tempted to write a script to automate it but found each image needed custom tweaks on the settings so This image is pretty small. We do not claim this is a superior quality general purpose SISR Jan 20, 2024 · これまでの「img2img入門」では、Stable Diffusion WebUI を用いた Image to Imageの基本テクニックを丁寧に解説してきました。プロンプトから画像生成するのではなく、様々な画像を自分の意のままに再生成できるようになったようであれば幸いです。 今回は『Ultimate SD Upscale』という拡張機能(extention Apr 5, 2023 · The first step is to get access to Stable Diffusion. Thank you for this thread! It’s so nice to find info that focuses on something other than anime nudity. info/. Typically, upscaling is done with the help of special tools made for the job. Upscalerは「4x-UltraSharp」を使用することでリアル風とアニメ風どちらでもクオリティを高くして画像生成することが出来るのでおすすめです。. The data set for testing consist of 5 images that have different graphic styles and different detailed. Sep 22, 2023 · Stable Diffusion Anime: A Short History. Upload an Image. The good news is that there are GUIs available. The larger CFG scale you enter, the more you want the AI to follow your prompt. Official WiKi Upscaler page: Here. 0. pt to realesr-animevideov3. Option 2: Use a pre-made template of Stable Diffusion WebUI on a configurable online service. However I have kind of stopped using hires fix in favor of SD ultimate upscaler extension. So here is the answer, and its comprehensive! There are a total of 327 upscalers running the gamut from CGI to anime to realism. images [0] upscaled_image. This model is perfect for generating anime-style images of characters, objects, animals, landscapes, and more. However we recommend keeping the CFG value between 7 and 10 to maintain a balance between the AI's 'imagination' and 'prompt Stable Diffusion x2 latent upscaler model card. If you don’t already have it, then you have a few options for getting it: Option 1: You can demo Stable Diffusion for free on websites such as StableDiffusion. Compared to highres. generator = torch. In this stage I add detail adder LORA with 1 weight. Set denoising strength to 0. In img2img upscale 2x with 0. We use CFG Scale=7 with the following negative prompts: 3d, cartoon, anime, sketches, (worst quality:2), (low quality:2) We would like to show you a description here but the site won’t allow us. Pretty cool thing, though it feels a bit pathetic that we are navel gazing about the upscale of a *BDrip*. It is a Stable Diffusion v1. I have personally used the AI tool many times in the past, and I can say that it’s easier to use and does a fantastic job at upscaling images without sharpening the image too much. . AI Upscale Anime & Waifu. from diffusers import StableDiffusionPipeline. bad-Hands-5. pth, which is optimized for anime images with much smaller model size. Feb 23, 2024 · Download the file . Change Loops to 8-10. Set both the image width and height to 512. I have seen people uploading 1 upscaler at a time to civit which is not only inefficient it spams the feed (and theyre just farming likes it seems). stable diffusion webUI「i2i SD upscale TEST 1」. People don't spend the time to do due diligence and actually blow images up by some power of two and correct interpolation method and actually pixel hunt edges, so you're most likely going to get weird confirmation bias answers. 6 contributors; History: 20 commits. SUPIR with any checkpoint of anime. Use with 0. Use 16T for base generation, and 2T for upscale. Install 4x Ultra Sharp Upscaler for Stable Diffusion. Let’s upscale it! First, we will upscale using the SD Upscaler with a simple prompt: prompt = "an aesthetic kingfisher" upscaled_image = pipeline (prompt=prompt, image=low_res_img). Please whitelist us or disable Ad-blocker for this site. Not bad, but if anyone know better upscale for anime and cartoon please share. 2023. Key features and benefits: PcBuildHelp is a subreddit community meant to help any new Pc Builder as well as help anyone in troubleshooting their PC building related problems. Improve image quality by upscaling Our software offers a variety of ways to bump the quality beyond Stable Diffusion’s default 512×512, like Adetailer, HighDef, and Facelift Upscaler 2X and 4X with specialized photo and anime models. Dec 2, 2023 · Upscalerの追加方法 . In the coming months they released v1. Now you have the opportunity to use a large denoise (0. Here I will be using the revAnimated model. ①t2i (768×1024) → Hires. Running a gan upscaler on a video makes it look very phong shaded. Jun 30, 2023 · Step 2: Upload the anime image you want to upscale. 3-1. Mar 10, 2024 · Apr 29, 2023. In particular this even allows to overfly the topic of "temporal stability". First of all you want to select your Stable Diffusion checkpoint, also known as a model. Introduction . Welcome to this tutorial, where we'll explore how to upscale images in Stable Diffusion using the 4X Ultra Sharp. Add small models for anime videos. I used the nmkd ones, especially 4x_siax_200k, they give nice texture I think. New stable diffusion finetune ( Stable unCLIP 2. It sports the unique ability to generate detailed eyes, perfect features, and photorealistic images. Feb 18, 2024 · AUTOMATIC1111’s Interogate CLIP button takes the image you upload to the img2img tab and guesses the prompt. Soon after these models were released, users started to fine-tune (train) their own custom models on top of the base models. I like 4x fatal anime. 5x. Feb 19, 2023 · AI 生成画像のアップスケールの方法のうち、私が最近使ってみた中で最も気に入って活用しているアップスケール手法を比較を交えながら紹介します。 動作環境は google colab T4 インスタンスの Stable Diffusion web UI です。 LDSR & SD Upscale Stable Diffusion web UI では Extras タブ内に複数のアップス Anime4K. first increase the size, then add a Gaussian blur, then use the new AI/Neural filters (jpeg artifact reduction) to reduce noise, then smart sharpen the image, possibly soft light and shadow may help too, tweak each accordingly. Upscaler in Stable Diffusion Extras Tab. ago. Nov 23, 2023 · Upscaler options available in Automatic1111. wiki/wiki/Model May 16, 2024 · 20% bonus on first deposit. May 15, 2023 · こちらも備忘録です。 StableDiffusionWebUIでは、様々な Upscaler が最初から封入されています。 アップスケーラーとは、画像を拡大する際のプログラムだと思っていただければ良いです。 その方式によって乱れ方や精密度、速度など、いろいろな特徴があります。 2023/03/27 時点でのWebUIには15種類 We would like to show you a description here but the site won’t allow us. To use Stable Diffusion to upscale an image on your PC, you have learned the command lines. AUTOMATIC WEB UI 1111へのアップスケーラーの追加方法は2種類ある。 ・一つはダウンロードしたpthファイルを stable-diffusion-webui\models\ESRGAN の中に配置すると使えるようになる。 ・もう一つは拾った画像を再生成? Aug 31, 2023 · Select Loopback. 4x-UltraSharpはStable Diffusion Web UI内にデフォルトで入っていないので、ダウンロードして Denoising parameter is in img2img tab. Jul 9, 2023 · 1. Conclusion. It's going to depend on the style/linework of your image, 4xR-ESRGAN-Anime-6B works well for most things No token limit for prompts (original stable diffusion lets you use up to 75 tokens) DeepDanbooru integration, creates danbooru style tags for anime prompts xformers , major speed increase for select cards: (add --xformers to commandline args) Dec 27, 2023 · The popular creator behind Midjourney alternative Stable Diffusion, Stability AI, has an AI image upscaler tool too, and it works wonders. Open your stable diffusion installation folder. This site supports JPG and PNG formats. i made these image at 1024x768 and upscaled it 4x with R-ESRGAN AnimeVideo . Restart the webui. R-ESRGAN 4x+ Anime6B works well for me most of the time, but I've also gotten good results by using that one for upscaler 2 at 0. stable-diffusion-x4-upscaler. This model was trained on a high-resolution subset of the LAION-2B dataset. Textual Inversions: bad_prompt_version2. for general test i use R-ESRGAN General 4xV3 , but switch it to one better for art i'm making. pt to: 4x_NMKD-Superscale Don't mean to sound harsh. Sep 18, 2023 · AUTOMATIC1111 / stable-diffusion " disfigured, deformed, extra limbs, anime, cartoon, graphic, text also you might want to try some upscaler other then Latent . Mar 30, 2024 · モデルリンク Pony Diffusion for Anime - v1. First on NightCafe; created some great stuff there, and loved the built-in upscaler (it does a REALLY solid job, blowing stuff up to 8000x8000px). It's good for creating fantasy, anime and semi-realistic images. 01: We occasionally found that proper negative prompts can significantly enhance the details of StableSR. The biggest uses are anime art, photorealism, and NSFW content. Inpaint bad areas and the face. 4, in August 2022. Works on any video card, since you can use a 512x512 tile size and the image will converge. Easily makes high-resolution anime wallpapers, posters, pfp, manga, and waifu pictures. pth I was trying to do something similar but the models I used were not good with skeleton. Paste the file in the folder: "\stable-diffusion-webui-1. Moreover, Stable Diffusion's generated complex scenes usually lack sharpness and fine details, posing further challenges. not easy answer, some work better for realistic,some for fantasy and some for anime. Anime4K is a set of open-source, high-quality real-time anime upscaling/denoising algorithms that can be implemented in any programming language. import torch. Examples: Real Life Anime Characters 5. Use small steps for upscale, 1. We use stable diffusion upscale as an example here. Add the ncnn implementation Real-ESRGAN-ncnn-vulkan. 0 & v2. It includes a broader range of characters from well-known anime series, an optimized dataset, and new aesthetic #stablediffusion #AIコスプレ #cheerleader 【1歩先行く Stable Diffusion講座③】AIによる画像生成ツールStable Diffusionが大人気!しかし、単に生成ボタンを押す [Stable Diffusion] Anime upscaler? Quindi ho visto le persone generare un sacco di immagini a bassa risoluzione, quindi aggiornarle per ottenere una risoluzione migliore invece di passare tutto il tempo nella parte di generazione. Now you can use the upscaler! Apr 17, 2024 · XXMix_9realistic is a Stable Diffusion merge checkpoint model to generate realistic images with a variety of features. Oct 25, 2023 · Upscaling an image from Stable Diffusion means that you’re increasing the overall resolution of the image. VanceAI Anime Upscaler helps upscale anime images from 2x, 4x, 8x to 40x without quality loss. manual Sep 18, 2023 · This upscaler is not mine, all the credit goes to: XINNTAO Official WIKI page: openmodeldb License of use it: BSD-3-Clause HOW TO INSTALL: Rename the file from: realesrganX4plusAnime_v1. Originally known as 4x-TextSharpV1, it was rebranded on February 10, 2022, as 4x Generate at 512x768, 1. Ultimate SD Upscale extension for AUTOMATIC1111 Stable Diffusion web UI. In the Automatic1111 model database, scroll down to find the " 4x-UltraSharp " link. On the Y-axis, the total of 16 upscalers are mapped. Total uncompressed size is 20GB. Creating Starting Image (A1111)4. We would like to show you a description here but the site won’t allow us. • 2 yr. We use Stable Diffusion Automatic1111 to upscale Here is an example of image correction. StabilityAI released the first public checkpoint model, Stable Diffusion v1. Copy the file. IMHO, for video upscaling, engineered solutions from a decade ago like Dscaler are better than a gan upscaler. 1 upscale. That is pretty complicated for average people. Decided to start running on a local machine just so I can experiment more Supports doubling image size. Tested many but actually some blur the image and some made it noising. We get it, ads can be annoying - but they keep us up and running and making it free for everyone to save money. Copy it to your favorite word processor, and apply it the same way as before, by pasting it into the Prompt field and clicking the blue arrow button under Generate. The simplicity and speed of Anime4K allows the user to watch upscaled anime in real time, as we believe in preserving original content and promoting freedom of choice for all anime fans. Requirement: Creating Real Life Anime Characters 3. 4. 1 is an update in the Animagine XL V3 series, enhancing the previous version, Animagine XL 3. This is the tile size to be used for SD upscale. Sep 22, 2023 · Option 1: Every time you generate an image, this text block is generated below your image. Now, write your prompts using words like “realistic, photography, etc”, and maybe add in some negatives like “anime, cartoon, painting, etc. How to substitute: download 4xESRGAN (or take it from Automatic1111). 4. About the testing. 3. License of use it: Here. Try a lower denoise value like . I've been using siax and ultrasharp (and even tiled diffusion) - but i saw a bunch of new upscalers like supir and a few others. Anime: May 31, 2024 · 5. How does AI upscaler work? AI upscalers, in contrast, are models that have been trained using vast amounts of data. It uses a motion control model to influence a Stable Diffusion model to generate a video as a sequence of images with motions. This model allows for image variations and mixing operations as described in Hierarchical Text-Conditional Image Generation with CLIP Latents, and, thanks to its modularity, can be combined with other models such as KARLO. 2 denoise and 4k ultrasharp upscaler. For Anime style, I suggest you to use 4X Ultrasharp (you can find it in suggested tab) HOW TO INSTALL: Rename the file from: 4x_NMKD-Superscale-SP178000_G. pt to RealESRGAN_x4plus_anime_6B. 1 (11 steps in total). You can change image size and add details (via denoise parameter) to skin, texture, etc Just enter new width & height and Denoising value. pth May 29, 2023 · Đây là clip dành cho Newbie nhé những bạn dùng thành thạo muốn tìm hiểu thêm có thể xem !Link Upscale Wiki : https://upscale. 1. Upscale 2x with the same setting at above but at 0. web UI for GPU-accelerated ONNX pipelines like Stable Diffusion, even on Windows and AMD. Lower the weight for unusual compositions. Current State of Anime Upscaling AI - Best so Far. Dec 1, 2023 · Stable Diffusionで画像を高解像度化する最適な方法をお探しですか?この記事では、3つのアップスケーラーを徹底検証。Stable Diffusion upscalerの選択に迷っている方は、ぜひこの記事をチェックして、あなたにおすすめな方法を見つけてください! We would like to show you a description here but the site won’t allow us. Oct 5, 2023 · Stable Diffusionで生成した画像を高解像度にアップスケールする『Hires. It is useful when you want to work on images you don’t know the prompt. Sort by: Add a Comment. Step 4: Choose your preferred options from the pop-up window on your screen. Upscale & Add Detail Locally With Stable Diffusion (FREE Magnific) Uncover the power of Stable Diffusion's MultiDiffusion extension; the ultimate free tool for adding detail and upscaling images to perfection. Cons: Lacks editing options, only supports JPG format. Best General Upscaler / Workflow at the moment? Looking for something to easily integrate with Auto1111. This tool can enhance and unblur all kinds of anime pictures in seconds. com/bycloud or use the code: BYCLOUD to save 60% off the yearly plan!Best anime upscaler, s Please see anime video models and comparisons for more details. How to substitute Textual Inversions: just skip. 1-768. Pros: Immediate upscaling, user-friendly interface, supports drag-and-drop. Step 5: Click on the OK button and wait for your image to finish processing. WaifuXL is an AI-powered image upscaling service that specializes in enhancing anime-style art. Step 2: Upload an image to the img2img tab. Requirements for Image Upscaling (Stable Diffusion)3. Whether you're using Google Colab or a loca Oct 14, 2022 · I'v fix this problem, but is use ESRGAN_4x like: AssertionError: could not find upscaler named ESRGAN_4x this problem is name alter wrong, file name "ESRGAN. 5, and using 4x_NMKD-Siax_200k for upscaler 1. A humble non-scientific test of comparing 4 popular upscalers in upscaling images to 2x via SD Upscale script. Renowned for its exceptional performance in enhancing anime content, this model also showcases impressive text upscaling capabilities. 8 weight. Introduction 2. Continuing from our last test, we are testing to establish the correct procedure for upscaling. 3-0. For textures, I personally use UltraSharp I haven't found a better upscaler yet. Counterfeit is one of the most popular anime models for Stable Diffusion and has over 200K downloads. 0\models\ESRGAN". In the Stable Diffusion checkpoint dropdown menu, Select the model you originally used when generating this image . Aug 7, 2023 · futuristsenpai August 7, 2023, 7:34pm 1. The CFG scale in Stable Diffusion is a parameter for the user to control the 'strictness' of the AI's execution of prompt. Anything v3. 7. com モデルの概要 PonyV6を元に追加学習されたモデル。 特定のキャラクターを狙って出力するようにはトレーニングされていないベースモデルとのこと。 モデルの推奨設定 Stable UnCLIP 2. I just keep seeing waves of new users obsess over which GAN upscaler to use. Otherwise, you can drag-and-drop your image into the Extras DB of upscalers : https://openmodeldb. This model card focuses on the latent diffusion-based upscaler developed by Katherine Crowson in collaboration with Stability AI. Stable Diffusion Web UIで高解像度の画像を生成したいとき、生成する画像のサイズを上げると、絵が破綻することが多いと思います。. Select the anime image, change the size, sampling method and your checkpoint. All images were May 16, 2024 · You can choose to face swap first and then upscale by enabling the checkbox (recommended for optimal results). Apr 28, 2024 · Best AI Image Enhancer/Upscaler for the Wildest Pictures • AI-upscale Stable Diffusion images to 4K/8K/10K in batch • Keep realistic details and textures in AI upscaling • Enhance photos, anime, videos: sharpen/deblur/denoise • Toolkits: downloader, converter, recorder, quick editor A high performance anime upscaler. Pros: Preserves quality, mitigates noise, offers a free trial. That being said, we’ve found that the Latent upscaler is a good general purpose option, while the R-ESRGAN 4x+ and R-ESRGAN 4x+ Anime6B work really Mar 26, 2022 · Remember to check out Yours App using this link: https://yoursapp. 4-0. This is the model that will be used by the AI upscaler. ( work procedure ). pth" to "ESRGAN_4v. Step 3: Click on “Start” to increase your anime photo’s resolution. Since the need to heighten the resolution of low Upscaling options. Now, you can select your preferred upscaling method, I personally recommend the 4x-UltraSharp upscaler. Option 2: Install the extension stable-diffusion-webui-state. This upscale works better with realistic images. 1, Hugging Face) at 768x768 resolution, based on SD2. I’m getting a low res image first to evaluate if it is ok, and then I need to upscale it. 07. May 16, 2024 · 一番のおすすめは4x-UltraSharp. Anime4K. Alright, so now that creation has become much more available, I've started messing with Stable Diffusion. 5) and not spawn many artifacts. That combined with the new Tile model of controlnet has made it pretty easy to generate huge detailed images. Sep 7, 2023 · This upscaler is not mine, all the credit go to: Nmkd. An upscaler that will do anime / illustrations and photorealistic as well (or 2 separate upscalers, one for each). fr. It is a diffusion model that operates in the same latent space as the Stable Diffusion model Upscale and enhance your images like never before. Click on it, and it will take you to Mega Upload. Users can generate NSFW images by modifying Stable Diffusion models, using GPUs, or a Google Colab Pro subscription to bypass the default content filters. Sep 18, 2023 · This upscaler is not mine, all the credit goes to: XINNTAO Official WIKI page: openmodeldb License of use it: BSD-3-Clause HOW TO INSTALL: Rename the file from: realesrAnimevideo_v3. It’s a highly distinctive model that can generate variations based on keywords, creating personalized, stylized images. Or, if you've just generated an image you want to upscale, click "Send to Extras" and you'll be taken to there with the image in place for upscaling. 3 or even lower, the lower value the less it will change the image. fix(1536×2048). Apr 29, 2023 · Consequently, an unscaled Stable Diffusion image would appear pixelated when enlarged. ②i2i SD upscale-×2(1536×2048)→(3072×4096). Add RealESRGAN_x4plus_anime_6B. This image of the Kingfisher bird looks quite detailed! Apr 7, 2024 · Clarity AI | AI Image Upscaler & Enhancer - free and open-source Magnific Alternative - philz1337x/clarity-upscaler We would like to show you a description here but the site won’t allow us. mirh. May 16, 2024 · For "Upscaler 1" we have a few different options. 0 | Stable Diffusion Checkpoint | Civitai Introduction This model is finetuned from Pony Diffusion V6 X civitai. 5, v2. It uses "models" which function like the brain of the AI, and can make almost anything, given that someone has trained it to do it. Or use script SD Upscale. Apr 27, 2023 · On the X-axis, the “Denoising Strength” changes in a value range of [0, 1] with a step size of 0. Jun 22, 2023 · 今回はstable diffusionで高画質アップスケーラー『4x-UltraSharp』と『4x-AnimeSharp』導入と使い方や本来からアップスケーラーと比較画像もあげています。 Feb 13, 2024 · Upscaler model: 4xNMKD Superscale. You can also combine it with LORA models to be more versatile and generate unique artwork. I am used to using AnimeGenius AI to enlarge Jan 12, 2024 · 4x-AnimeSharp is a cutting-edge anime upscaler model that combines the best features of 4x-UltraSharp and 4x-TextSharp-v0. patrickvonplaten Fix deprecated float16/fp16 variant loading through new `version` API. Using advanced neural networks, it can upsample images and GIFs directly in your web browser for superior quality. This open-source, anime-themed text-to-image model has been improved for generating anime-style images with higher quality. Hi community, I’m probably doing something really wrong, but, I’m trying to create an anime image using dreamlike/anime. They're legacy technology though. The upscaler under the Extras Tab in Stable Diffusion can batch process multiple images. fy by rr zn ew av gb tm gc uq