Skip to content

Instantly share code, notes, and snippets.

View jkyl's full-sized avatar
👁️

Jon Kyl jkyl

👁️
View GitHub Profile
@dvschultz
dvschultz / gist:2934e7062df72bfd6d1b7fcaa624ac9d
Created April 9, 2024 18:46
There Will Be Blood, but rom com
# Generating 50 sentences of scenes for a romcom based on "There Will Be Blood", tailored for an Academy Award-winning script.
scenes = [
"Opening with a picturesque sunset over the California hills, we see a charming, small oil town bustling with life.",
"Eli, now a charismatic but struggling actor, practices his lines in front of a rickety mirror, his dreams bigger than his apartment.",
"Daniel Plainview, reimagined as a successful but lonely olive oil magnate, surveys his estate, longing for a connection he can't drill for.",
"A chance encounter at the local diner, where Eli spills coffee on Daniel, marking their first, awkward introduction.",
"Daniel and Eli, debating over the best method to extract olive oil, find themselves unexpectedly laughing over an inside joke.",
"A montage of Daniel and Eli working together, turning the struggling olive farm into a burgeoning success.",
"Under the starlit sky, Daniel teaches Eli how to find the 'sweet spot' for planting olive trees, th
@Stepland
Stepland / EliteTMHelper.py
Last active August 7, 2025 18:11
Want to be Elite TM but don't have the time and patience to rip 500 Vinyls ? no problem.
import requests
import time
import sys
import argparse
import pickle
import json
class RedactedAPIError(Exception):
pass
@mattiasarro
mattiasarro / tensorflow_1_6_high_sierra_gpu.md
Last active August 24, 2022 15:24 — forked from orpcam/tensorflow_1_6_rc1_high_sierra_gpu.md
Install Tensorflow 1.6 on macOS High Sierra 10.13.3 with GPU Acceleration (without disabling SIP)

Tensorflow 1.6 on macOS High Sierra 10.13.3 with GPU Acceleration (without disabling SIP)

This gist (based on a blog post at byai.io) documents how to set up TensorFlow 1.6 with (e)GPU support without the need to disable SIP. Following the original gist got me a saystem in which training TF on eGPU was successful, but there were various visual glitches due to the newer / less stable version of the driver.

As pointed out by ronchigram, many people are having issues with newer NVIDIA drivers, so it's worth using the nvidia-update script by Benjamin Dobell that installs the latest stable NVIDIA web driver, and if necessary patches it to run on your system. We also don't need to disable SIP when using nvidia-update.

I have als

@smitshilu
smitshilu / Tensorflow_Build_GPU.md
Last active June 9, 2020 18:27
Tensorflow 1.4 Mac OS High Sierra 10.13 GPU Support

Tensorflow

System information

  • OS - High Sierra 10.13
  • Tensorflow - 1.4
  • Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v)
  • Cmake - 3.7
  • Bazel - 0.7.0
@joelouismarino
joelouismarino / googlenet.py
Last active October 24, 2024 05:51
GoogLeNet in Keras
from __future__ import print_function
import imageio
from PIL import Image
import numpy as np
import keras
from keras.layers import Input, Dense, Conv2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, Dropout, Flatten, Concatenate, Reshape, Activation
from keras.models import Model
from keras.regularizers import l2
from keras.optimizers import SGD