This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# optimized_txt2img.py patched to include IPTC metadata to JPEG images | |
# Requires iptcinfo3: after "conda activate ldm", install latest version from GitHub with | |
# pip install git+https://github.com/james-see/iptcinfo3#egg=iptcinfo3 | |
import argparse, os, re, sys | |
import torch | |
import numpy as np | |
from random import randint | |
from omegaconf import OmegaConf | |
from PIL import Image | |
from tqdm import tqdm, trange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# crypt32_test.py | |
# | |
# 2024-05-24 - 1st version published as a gist at | |
# https://gist.github.com/AltoRetrato/05f6957756931b12dc7ff8a87c2fe835 | |
# TL;DR: This script helps you test the CryptProtectData() Windows function | |
# to possibly find and solve issues that can affect many programs. | |
# ---------------------------------------------------------------------------- | |
# Is Google Chrome pausing sync each time you (re)start the browser? |