Skip to content

Instantly share code, notes, and snippets.

View manzke's full-sized avatar

Daniel Manzke manzke

View GitHub Profile
@manzke
manzke / README
Created April 20, 2023 20:43
How to use ChatGPT to exploit another tools which uses ChatGPT. All code has been written by ChatGPT
https://medium.com/@danielmanzke/how-i-used-chatgpt-to-exploit-another-tool-which-uses-chatgpt-b0885a89b210
@manzke
manzke / convert-images-to-video.sh
Created February 26, 2022 14:58
Converting stylegan2 fakes generated during evaluation to video
# script to create movie from multiple png files
# taken in choronoligcal order
# start at 0
count=0
# take all files named shot - something ordered by date
for f in `ls fakes*.jpg`
do
# get the index in 0000 format
printf -v counts "%06d" $count
@manzke
manzke / projected_gan.ipynb
Created February 11, 2022 23:56
projected_gan.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@manzke
manzke / README.md
Created January 3, 2022 20:55
Using MODNet for Background Removal
@manzke
manzke / vautoencoder-alibi-detect.py
Created December 26, 2021 20:14
Variational AutoEncoder with Alibi-Detect and Keras
import logging
import matplotlib.pyplot as plt
import numpy as np
import os
import tensorflow as tf
import tensorflow_datasets as tfds
tf.keras.backend.clear_session()
from tensorflow.keras.layers import Conv2D, Conv2DTranspose, \
Dense, Layer, Reshape, InputLayer, Flatten
from tqdm import tqdm
@manzke
manzke / autoencoder-alibi-detect.py
Created December 26, 2021 19:58
AutoEncoder Example with Keras and Alibi-Detect
import os
import logging
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import tensorflow_datasets as tfds
tf.keras.backend.clear_session()
from tensorflow.keras.layers import Conv2D, Conv2DTranspose, \
Dense, Layer, Reshape, InputLayer, Flatten
from tensorflow import keras
@manzke
manzke / efficientnet.py
Last active January 5, 2024 01:16
Training Image (Binary) Classification with Keras, EfficientNet
# import the necessary packages
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras.models import Model
from tensorflow.keras.applications.efficientnet import EfficientNetB3, EfficientNetB4, EfficientNetB5, preprocess_input
'''
EfficientNetB0 - (224, 224, 3)
EfficientNetB1 - (240, 240, 3)
Verifying my Blockstack ID is secured with the address 1NiVduDatTrtM5eCSAym5cbd5vhE71H8P3 https://explorer.blockstack.org/address/1NiVduDatTrtM5eCSAym5cbd5vhE71H8P3