Skip to content

Instantly share code, notes, and snippets.

View rishikksh20's full-sized avatar
🖐️
Happy to help you !!!

Rishikesh (ऋषिकेश) rishikksh20

🖐️
Happy to help you !!!
View GitHub Profile
@rishikksh20
rishikksh20 / resunet.ipynb
Created August 21, 2020 17:56
ResUnet.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rishikksh20
rishikksh20 / deployUser.md
Created December 25, 2019 21:08 — forked from learncodeacademy/deployUser.md
Adding a deploy user in Linux

(wherever it says url.com, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password

@rishikksh20
rishikksh20 / add_aws_efs.sh
Created September 9, 2019 19:20
Add EFS to AWS ec2 instance
sudo apt-get install nfs-common
git clone https://github.com/aws/efs-utils.git
cd efs-utils
sudo apt-get update
sudo apt -y install binutils
./build-deb.sh
sudo apt -y install ./build/amazon-efs-utils*deb
cd ~
sudo mkdir /opt/efs
sudo mount -t nfs4 efs-ip:/ /opt/efs
sudo apt update 

Check weather cuda exist

lsmod | grep nouveau 
lsmod | grep nvidia 
lspci | grep -i nvidia  

Install Nvidia driver

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rishikksh20
rishikksh20 / classifier_from_little_data_script_3.py
Created October 8, 2017 23:08 — forked from fchollet/classifier_from_little_data_script_3.py
Fine-tuning a Keras model. Updated to the Keras 2.0 API.
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
class CORALLossLayer(object):
def __init__(self, diff_, color, cov_s, cov_t, mean_s, mean_t, diff_data_s, diff_data_t, square_mean_s, square_mean_t, bp_mean_s, bp_mean_t, bp_der_s, bp_der_t, identity):
self.diff_=diff_;
self.cov_s=cov_s;
self.cov_t=cov_t;
self.mean_s=mean_s;
self.mean_t=mean_t;
self.diff_data_s=diff_data_s;
self.diff_data_t=diff_data_t;
@rishikksh20
rishikksh20 / labels_1024.tsv
Created February 18, 2017 12:18 — forked from teamdandelion/labels_1024.tsv
TensorBoard: TF Dev Summit Tutorial
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
7
2
1
0
4
1
4
9
5
9
@rishikksh20
rishikksh20 / dl4j_log.txt
Created January 20, 2017 19:39
dl4j logs
Rishikesh@DESKTOP-IGP4E4G MINGW64 /c/Open_Source/JAVA/Deeplearning4j/deeplearning4j
$ mvn clean install -DskipTests -Dmaven.javadoc.skip=true
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 28 modules...
[INFO] Not installing Nexus Staging features:
[INFO] * Preexisting staging related goal bindings found in 28 modules.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] DeepLearning4j
@rishikksh20
rishikksh20 / nd4j_build.txt
Created January 20, 2017 19:36
nd4j build Log
Rishikesh@DESKTOP-IGP4E4G MINGW64 /c/Open_Source/JAVA/Deeplearning4j/nd4j
$ mvn clean install -DskipTests -Dmaven.javadoc.skip=true
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 37 modules...
[INFO] Not installing Nexus Staging features:
[INFO] * Preexisting staging related goal bindings found in 37 modules.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] nd4j