Skip to content

Instantly share code, notes, and snippets.

@Pyr-000
Pyr-000 / $README.md
Last active May 15, 2024 19:47
Convert original Stable Diffusion checkpoints and safetensors to diffusers

Stable Diffusion model conversion script

Convert from the 'original implementation' to Huggingface diffusers. Both .safetensors and .ckpt checkpoints are supported.

The script is adapted from the diffusers conversion script: https://github.com/huggingface/diffusers/blob/main/scripts/convert_original_stable_diffusion_to_diffusers.py

Usage:

python enhanced_convert_original_stable_diffusion_to_diffusers.py --checkpoint_path "<input_model_filepath>" --dump_path "<output_directory_path>" --extract_ema

For inference use, extracting with --extract_ema is usually recommended. This will be ignored if the source model does not contain both EMA and non-EMA weights.

@edufgimenez
edufgimenez / lastAgendas.js
Last active May 15, 2024 19:43
Cria botões de acesso rápido para as últimas e penúltimas agendas de Desenvolvimento de Sistemas, Comunicação, Tecnologia da Informação e PTCC
// ==UserScript==
// @name Acesso Rápido Agendas
// @namespace https://www.linkedin.com/in/edufgimenez/
// @version 2.0
// @description Cria botões de acesso rápido para as últimas e penúltimas agendas de Desenvolvimento de Sistemas, Comunicação, Tecnologia da Informação e PTCC
// @author Eduardo Gimenez
// @match https://eadtec.cps.sp.gov.br/home.php
// @grant none
// ==/UserScript==
@ih2502mk
ih2502mk / list.md
Last active May 15, 2024 19:41
Quantopian Lectures Saved
@gsteigert
gsteigert / Export Groups.lua
Created November 1, 2021 15:17
An Aseprite script to ease exporting a bunch of layers and groups into packed sprite sheets (a.k.a. texture atlases).
-- This script will:
-- (1) Flatten each group into a layer;
-- (2) Invoke the 'export sprite sheet' command;
-- (3) Undo the changes.
--
-- v1.0: Initial version.
--
-- Ref: https://github.com/aseprite/aseprite/blob/main/src/app/commands/cmd_export_sprite_sheet.cpp
local spr = app.activeSprite
@FikriRNurhidayat
FikriRNurhidayat / Slow-Steam-Download-Speed-Linux.md
Last active May 15, 2024 19:40
Steam Download Speed Issue on Linux
@irfanshadikrishad
irfanshadikrishad / hyper.js
Created May 15, 2024 19:31
hyper.js configuration code
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 20,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@jrnk
jrnk / ISO-639-1-language.json
Last active May 15, 2024 19:38
ISO 639-1 Alpha-2 codes of languages JSON
[
{ "code": "aa", "name": "Afar" },
{ "code": "ab", "name": "Abkhazian" },
{ "code": "ae", "name": "Avestan" },
{ "code": "af", "name": "Afrikaans" },
{ "code": "ak", "name": "Akan" },
{ "code": "am", "name": "Amharic" },
{ "code": "an", "name": "Aragonese" },
{ "code": "ar", "name": "Arabic" },
{ "code": "as", "name": "Assamese" },
import Anthropic from '@anthropic-ai/sdk';
import { Glob } from 'bun';
export const anthropic = new Anthropic({
apiKey: process.env.ANTHROPIC_KEY
});
const glob = new Glob("./txt/*.txt");
type Page = {
using UnityEngine;
using TMPro;
// NOTE: Make sure to include the following namespace wherever you want to access Leaderboard Creator methods
using Dan.Main;
namespace LeaderboardCreatorDemo
{
public class LeaderboardManager : MonoBehaviour
{