Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNANtoN committed Mar 22, 2021
2 parents b2752f3 + 0da05ee commit 5146f10
Show file tree
Hide file tree
Showing 5 changed files with 635 additions and 116 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@

*the tragic intimacy of the eternal conversation with oneself* - by <a href="https://github.com/moirage">moirage</a>

<img src="./samples/demon_fire.png" width="250px"></img>

*demon fire* - by <a href="https://github.com/WiseNat">WiseNat</a>

## Big Sleep

<a href="https://twitter.com/advadnoun">Ryan Murdock</a> has done it again, combining OpenAI's <a href="https://github.com/openai/CLIP">CLIP</a> and the generator from a <a href="https://arxiv.org/abs/1809.11096">BigGAN</a>! This repository wraps up his work so it is easily accessible to anyone who owns a GPU.
Expand Down
7 changes: 5 additions & 2 deletions big_sleep/big_sleep.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import sys
import subprocess
import signal
import string
import re

from datetime import datetime
from pathlib import Path
import random
Expand All @@ -18,7 +21,7 @@
from big_sleep.ema import EMA
from big_sleep.resample import resample
from big_sleep.biggan import BigGAN
from big_sleep.clip import load, tokenize, normalize_image
from big_sleep.clip import load, tokenize

assert torch.cuda.is_available(), 'CUDA must be available in order to use Big Sleep'

Expand Down Expand Up @@ -129,7 +132,7 @@ def rand_cutout(image, size, center_bias=False, center_focus=2):

# load clip

perceptor, preprocess = load()
perceptor, normalize_image = load('ViT-B/32', jit = False)

# load biggan

Expand Down
Loading

0 comments on commit 5146f10

Please sign in to comment.