Skip to content

Instantly share code, notes, and snippets.

View Nikhil-Kasukurthi's full-sized avatar

Nikhil Kasukurthi Nikhil-Kasukurthi

View GitHub Profile
@Nikhil-Kasukurthi
Nikhil-Kasukurthi / visualisation.py
Last active December 13, 2022 16:55
Visualisation of CNN using Grad-Cam on PyTorch
import cv2
import numpy as np
import torch
from torchvision import models, transforms
from torch.autograd import Variable
import torch
import torch.nn as nn
import pickle
import os
import argparse
@Nikhil-Kasukurthi
Nikhil-Kasukurthi / custom_record.py
Created July 30, 2017 16:48
Here's how to use that Tensorflow API
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import hashlib
import io
import logging
import os
from lxml import etree
@Nikhil-Kasukurthi
Nikhil-Kasukurthi / data.sh
Created June 7, 2017 12:10
Leveraging on transfer learning for image classification using Keras.
mkdir data
cd data
mkdir train
mkdir test
mkdir validation
cd train
mkdir roses
mkdir dandelion
@Nikhil-Kasukurthi
Nikhil-Kasukurthi / data.sh
Created June 7, 2017 12:10
Leveraging on transfer learning for image classification using Keras.
mkdir data
cd data
mkdir train
mkdir test
mkdir validation
cd train
mkdir roses
mkdir dandelion
@Nikhil-Kasukurthi
Nikhil-Kasukurthi / data.sh
Created June 7, 2017 12:10
Leveraging on transfer learning for image classification using Keras.
mkdir data
cd data
mkdir train
mkdir test
mkdir validation
cd train
mkdir roses
mkdir dandelion