Skip to content

Instantly share code, notes, and snippets.

View ktatar's full-sized avatar

Kıvanç Tatar ktatar

View GitHub Profile
@ktatar
ktatar / disco_v5_plus_Win_Install.md
Created May 11, 2023 09:25 — forked from MSFTserver/disco_v5_plus_Win_Install.md
guide to installing disco v5+ locally on windows

Install Disco Diffusion v5 for Windows

NOTE: Pytorch3d no longer has to be compiled i have stripped out the function we use to make this a lot easier and also so we do not have to use WSL2 with linux and can now run directly on your windows system.

Comments section is not checked often for issues please join the disco diffusion discord for assistance

https://discord.gg/mK4AneuycS

You may now use the official disco diffusion notebook with this tutorial as it has been uodated to reflect the changes here for better cross platform support

@ktatar
ktatar / tezos-profile.txt
Last active September 3, 2021 08:50
Tezos-profile-confirm
I am attesting that this GitHub handle ktatar is linked to the Tezos account tz1cgMGNVeL22kVboXsZoch9d669QihjvSXW for tzprofiles
sig:edsigtcCAjkPiTZxitiL85wY4XWfm15xMUsDnnAKvN1G3v1bKit6gdwwzUnYZf4Y2UpuBUirGe1AQaiPbcnRcdHGBfZnip2YccX
@ktatar
ktatar / stretch_1d_array.py
Last active February 23, 2020 20:40
[Stretch a 1d numpy array] #python #numpy #signalprocessing #scipy #interpolate
import numpy as np
from scipy import interpolate
#Create target array. We are trying to match the size of this array
my_cqt = np.linspace(2.0,3.0, num=20)
#The array to be stretched
my_alfa = np.linspace(0., 1., num=10)
f = interpolate.interp1d(np.arange(0, len(my_alfa)), my_alfa)
@ktatar
ktatar / mount-my-drive.sh
Created December 21, 2019 11:13
[Mount an external drive in ubuntu] Mount an external drive with read/write privileges. #ubuntu #shell
#!/bin/bash
#install hfsprogs if you don't have it
sudo apt-get install hfsprogs
#check the status of the drive
sudo fsck.hfsplus -f /dev/sdb2
#Mount the drive
sudo umount /media/tatar/MetaMusical
sudo mount -t hfsplus -o force,rw /dev/sdb2 /media/tatar/MetaMusical
sudo mount -t hfsplus -o remount,force,rw /dev/sdb2 /media/tatar/MetaMusical
@ktatar
ktatar / test-tensorflow.py
Created December 16, 2019 06:17
[test-tensorflow] simple python code to test tensorflow #python #tensorflow #test
import tensorflow as tf
# Create some tensors
a = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
b = tf.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
c = tf.matmul(a, b)
print(c)
text_file = open("Output.txt", "w")
text_file.write("Hello World, my num is %s" % c)
@ktatar
ktatar / install-tensorflow-gpu-windows.md
Last active December 16, 2019 06:17
[install tensorflow-gpu on windows] simple guide to install tensorflow-gpu on windows #tensorflow #gpu #guide #install #conda #howto

This guide works with tensorflow-gpu=2.0.0 and CUDA 10.0.130 and CuDNN 7.6.4

  1. Install anaconda for python 3

  2. Install CUDA 10.0 for Windows 64bit using network

  3. Use Anaconda Command prompt

  4. Create a python3 environment on Anaconda and activate the environment

  5. Install tensorflow-gpu using conda install tensorflow-gpu

  6. Test if tensorflow is running

@ktatar
ktatar / conda-managing-environments.rst
Last active December 16, 2019 05:52
[conda: managing environments] cheatsheet for actions on conda environments #conda #anaconda #python
@ktatar
ktatar / keybase.md
Created December 2, 2018 05:43
My keybase

Keybase proof

I hereby claim:

  • I am ktatar on github.
  • I am ktatar (https://keybase.io/ktatar) on keybase.
  • I have a public key ASAB_PLywpJc6WP9Z0AT09kaLBoKN9sxyLj6BbvAEsePfgo

To claim this, I am signing this object: