Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
[{"prompt":"An ancient man is riding in a carriage along a mountain road.","txt":"Venerable man journeys in ancient mountains. Carriage creaks, revealing deep wisdom. Twilight paints dreamlike tableau.","_id":"65b7ba0cfb9aff6d419a368e"}, | |
{"prompt":"Great Wall of China","txt":"Ancient wall, setting sun, breathtaking beauty.","_id":"65b7b89ffb9aff6d419a3688"}, | |
{"prompt":"A resident of the mountains is riding in a carriage along a rocky road","txt":"Mountaineer finds solace in antique carriage, rugged path of rocks, rustic charm, creaking wheels, calm resolve, beautiful mountains, untamed road, orange sunset, approaching night.","_id":"65b7b71ffb9aff6d419a3684"}, | |
{"prompt":"A person in primitive clothing traveling on Earth. Their hands hold simple tools reflecting their primitive wisdom. They stand under a breathtaking sunset, painting the sky in beautiful shades. Mountains in the background and a winding river complete the lush landscape. Ancient creatures can be seen in the distance, seemingly unaware of these |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import cv2 | |
import os | |
import time | |
import mediapipe as mp | |
import numpy as np | |
def extract_faces(image): | |
center_faces = [] | |
BaseOptions = mp.tasks.BaseOptions | |
FaceDetector = mp.tasks.vision.FaceDetector |
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
import cv2 | |
import numpy as np | |
import dlib | |
import mediapipe as mp | |
import argparse | |
import torch | |
from diffusers import StableDiffusionImg2ImgPipeline | |
from diffusers import EulerAncestralDiscreteScheduler | |
from typing import Any, Callable, Dict, List, Optional, Union | |
import PIL |
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
import torch | |
from typing import Tuple, Callable | |
def do_nothing(x: torch.Tensor, mode:str=None): | |
return x | |
def mps_gather_workaround(input, dim, index): | |
if input.shape[-1] == 1: |
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
import os | |
import argparse | |
import torch | |
import numpy as np | |
from tqdm import tqdm | |
parser = argparse.ArgumentParser(description="Merge models with weighted similarity") | |
parser.add_argument("a", type=str, help="Path to model a") | |
parser.add_argument("b", type=str, help="Path to model b") | |
parser.add_argument("--out", type=str, help="Output file name, without extension", default="merged", required=False) |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/recoilme/clean" | |
. "github.com/stevelacy/daz" | |
) |
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
package main | |
import ( | |
"bufio" | |
"log" | |
"os" | |
ljpg "github.com/pixiv/go-libjpeg/jpeg" | |
) |
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
package main_test | |
import ( | |
"strconv" | |
"testing" | |
"github.com/cespare/xxhash" | |
"github.com/spaolacci/murmur3" | |
) |
NewerOlder