Skip to content

Instantly share code, notes, and snippets.

View monajalal's full-sized avatar
🎯
Focusing

Mona Jalal monajalal

🎯
Focusing
View GitHub Profile
@monajalal
monajalal / cuda_11.7_installation_on_Ubuntu_22.04
Created October 17, 2023 13:38 — forked from primus852/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 22.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@monajalal
monajalal / train_DDP.py
Created May 17, 2023 13:51
DDP version of DOPE train.py
#!/usr/bin/env python3
# Copyright (c) 2018 NVIDIA Corporation. All rights reserved.
# This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
# https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
from __future__ import print_function
######################################################
"""
@monajalal
monajalal / VAE_training.ipynb
Last active November 12, 2020 00:05
trying a VAE training on my custom images
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@monajalal
monajalal / moth.qsub
Created October 15, 2020 22:16
qsub file for running a python code in BU SCC
$ cat moth.qsub
#!/bin/bash -l
#$ -l gpu_c=7.0
#$ -pe omp 8
#$ -l gpus=0.125
# Get an email when it starts, ends, or fails
#$ -m bea
@monajalal
monajalal / vimrc
Created September 24, 2020 06:49
my ~/.vimrc
set nocompatible
syntax on
set autoindent
set hlsearch
set ignorecase
set incsearch
set smartcase
set ruler
set title
set background=dark
@monajalal
monajalal / category_prediction.ipynb
Created March 28, 2019 05:30
category_prediction_using_transfer_learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@monajalal
monajalal / transfer_learning_fold9.ipynb
Created November 28, 2018 22:21
transfer learning with chopping the last layer transferred learned features as well as producing the class probabilities for test images using a 10fold cross-val
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.
@monajalal
monajalal / extraction.py
Created March 21, 2017 19:57
extract frame info
#renderdoc.LoadLogfile('D:\gta5_frames\GTAVLauncher_2017.02.20_11.53.06_frame9280.rdc')
config = {}
# where we find the Python libraries
#config['py_lib_dir'] = 'C:\\Program Files\\Anaconda3\\Lib\\'
# where we find the Python libraries
config['py_lib_dir'] = 'C:\\Program Files\\Anaconda2\\Lib\\'
#import os
#from os import listdir
@monajalal
monajalal / run_vnc_env.py
Created January 14, 2017 02:56
very very very slightly modified version so it wouldn't download stuff and copy them everytime
#!/usr/bin/python
from __future__ import print_function
import argparse
import json
import logging
import os
import subprocess
import sys
import csv
import traceback