Team Ai
Datasetpublic

artdwn/stable-diffusion-backup

Stable Diffusion web UI A browser interface based on Gradio library for Stable Diffusion. Features Detailed feature showcase with images: Original txt2img and img2img modes One click install and run script (but you still must install python and git) Outpainting Inpainting Color Sketch Prompt Matrix Stable Diffusion Upscale Attention, specify parts of text that the model should pay more attention to a man in a ((tuxedo)) - will pay more attention to tuxedo a man… See the full description on the dataset page: https://huggingface.co/datasets/artdwn/stable-diffusion-backup.

sourceHugging Faceupdated 3y agoView on Hugging Face
1likes1.1kdownloads
ui_settings_hints.js63 linesDownload Raw Back to javascript
1// various hints and extra info for the settings tab2 3var settingsHintsSetup = false;4 5onOptionsChanged(function() {6    if (settingsHintsSetup) return;7    settingsHintsSetup = true;8 9    gradioApp().querySelectorAll('#settings [id^=setting_]').forEach(function(div) {10        var name = div.id.substr(8);11        var commentBefore = opts._comments_before[name];12        var commentAfter = opts._comments_after[name];13 14        if (!commentBefore && !commentAfter) return;15 16        var span = null;17        if (div.classList.contains('gradio-checkbox')) span = div.querySelector('label span');18        else if (div.classList.contains('gradio-checkboxgroup')) span = div.querySelector('span').firstChild;19        else if (div.classList.contains('gradio-radio')) span = div.querySelector('span').firstChild;20        else span = div.querySelector('label span').firstChild;21 22        if (!span) return;23 24        if (commentBefore) {25            var comment = document.createElement('DIV');26            comment.className = 'settings-comment';27            comment.innerHTML = commentBefore;28            span.parentElement.insertBefore(document.createTextNode('\xa0'), span);29            span.parentElement.insertBefore(comment, span);30            span.parentElement.insertBefore(document.createTextNode('\xa0'), span);31        }32        if (commentAfter) {33            comment = document.createElement('DIV');34            comment.className = 'settings-comment';35            comment.innerHTML = commentAfter;36            span.parentElement.insertBefore(comment, span.nextSibling);37            span.parentElement.insertBefore(document.createTextNode('\xa0'), span.nextSibling);38        }39    });40});41 42function settingsHintsShowQuicksettings() {43    requestGet("./internal/quicksettings-hint", {}, function(data) {44        var table = document.createElement('table');45        table.className = 'popup-table';46 47        data.forEach(function(obj) {48            var tr = document.createElement('tr');49            var td = document.createElement('td');50            td.textContent = obj.name;51            tr.appendChild(td);52 53            td = document.createElement('td');54            td.textContent = obj.label;55            tr.appendChild(td);56 57            table.appendChild(tr);58        });59 60        popup(table);61    });62}63