Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from torchvision.transforms.transforms import GaussianBlur | |
import webdataset as wds | |
import io | |
from PIL import Image | |
from clip.loader import TextImageDataset | |
from clip.clip import load, tokenize | |
from torchvision import transforms as T | |
from torch.utils.data import DataLoader | |
from torch.optim import Adam | |
import torch.nn.functional as F |
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 inspect | |
from typing import List, Optional, Union, Tuple | |
import numpy as np | |
import torch | |
from PIL import Image | |
from diffusers import ( | |
AutoencoderKL, | |
DDIMScheduler, |
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 | |
from typing import List | |
import numpy as np | |
import torch | |
from cog import BasePredictor, Input, Path | |
from diffusers import ( | |
AutoencoderKL, | |
LMSDiscreteScheduler, | |
UNet2DConditionModel, |
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
# https://wandb.ai/afiaka87/glide_finetune/runs/3fj69lfc?workspace=user-afiaka87 | |
from lzma import MODE_NORMAL | |
from PIL import Image | |
import os | |
import wandb | |
from IPython.display import display | |
import torch as th | |
from glide_text2im import xf | |
from glide_text2im.download import load_checkpoint |
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
[ | |
"t-shirt, size M", | |
"flower dress, size M", | |
"a t-shirt of an avocado", | |
"a rainbow hat", | |
"white snow covered mountain under blue sky during daytime", | |
"aerial view of the beach during daytime", | |
"aerial view of the beach at night", | |
"double rainbow over a lake", | |
"a beautiful sunset at a beach with a shell on the shore", |
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 discord | |
from datetime import datetime | |
import replicate | |
import asyncio | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
import os |
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 pathlib | |
from csv import writer | |
import torch | |
import tqdm | |
from PIL import Image | |
from torch.utils.data import Dataset | |
from torchvision import transforms | |
from torchvision.transforms.functional import InterpolationMode | |
from data import create_loader |
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
#%% | |
# cd Detic/ | |
# %% | |
import detectron2 | |
from detectron2.utils.logger import setup_logger | |
from pathlib import Path | |
from random import randint, choice | |
import time | |
import PIL | |
from PIL import Image |
NewerOlder