Skip to content

Instantly share code, notes, and snippets.

View barvin04's full-sized avatar

Abhinaba Bala barvin04

View GitHub Profile
@chetanyagoyal
chetanyagoyal / GSOC_progress_report.md
Last active November 3, 2024 07:19
This gist elaborates on my contributions during the GSoC coding period.

GSoC 2024 Progress Report

Relational Framework for Prompt-based Automatic Layout Generation with Glayout

Project Overview

This project aims to develop a system to generate DRC and LVS-clean analog layouts from natural language prompts, which will streamline layout creation and enable high-level circuit specification. This involves the use of the pre-existing GLayout API in conjunction with a specially created syntax (termed as strict-syntax) and a Large Language Model.

@xvdp
xvdp / Image_Moments.ipynb
Created December 26, 2020 20:05
Image Moments, test and Implementation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# link to package https://github.com/lucidrains/slot-attention
import torch
from torch import nn
class Residual(nn.Module):
def __init__(self, fn):
super().__init__()
self.fn = fn
def forward(self, x):
import torch
from torch import nn
def expand_dim(t, dim, k):
t = t.unsqueeze(dim)
expand_shape = [-1] * len(t.shape)
expand_shape[dim] = k
return t.expand(*expand_shape)
class PKM(nn.Module):
@orionpax00
orionpax00 / Description.md
Last active December 9, 2020 04:14
A simple Attention Mechanism for LSTM-CNN Input model🎯

Attention

The Attention mechanism in Deep Learning is based off the concept of directing model's focus, and it pays greater attention to certain factors when processing the data.[1]


@SeungjunNah
SeungjunNah / download_REDS.py
Last active September 23, 2025 02:54
REDS dataset downloading script
# reference: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive
import os
import requests
import argparse
def download_file_from_google_drive(id, destination):
def get_confirm_token(response):
for key, value in response.cookies.items():
if key.startswith('download_warning'):
@iandanforth
iandanforth / rlreproducibilitychecklist.md
Last active May 11, 2019 01:34
RL Reproducibility Checklist

A Checklist for Reproducibility in Reinforcement Learning

From a slide in a NeurIPS 2018 keynote by Joelle Pineau

For all algorithms presented, check if you include:

  • A clear description of the algorithm.
  • An analysis of the complexity (time, space, sample size) of the algorithm.
  • A link to downloadable source code, including all dependencies.
@bushaev
bushaev / rprop.py
Created September 1, 2018 17:50
simplest form of rprop update rule
for t in range(num_interations):
dw[t] = compute_gradient(x, y)
if dw[t] * dw[t - 1] > 0:
step_size = min(step_size * incFactor, step_size_max)
elif dw[t] * dw[t - 1] < 0:
step_size = max(step_size * decFactor, step_size_min)
w[t] = w[t - 1] - sign(dw[t]) * step_size
@MacTuitui
MacTuitui / 180525.scala
Created May 26, 2018 01:34
Code for daily
//roughly like this
function draw(){
var frac = (gCount%200)*1.0/(100)
if(frac>1 ) frac = 2-frac
var frac2 = (gCount%200)*1.0/(200)
gFrac = 1-frac2
val s = 40
for(k <- 0 until s){
@nulledge
nulledge / H36M.ipynb
Last active September 8, 2021 03:39
Description for Human3.6M dataset.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.