Skip to content

Instantly share code, notes, and snippets.

View joycenerd's full-sized avatar
:octocat:
Focusing

Zhi-Yi Chin joycenerd

:octocat:
Focusing
View GitHub Profile
'''FPN in PyTorch.
See the paper "Feature Pyramid Networks for Object Detection" for more details.
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class Bottleneck(nn.Module):
@joycenerd
joycenerd / face_routing.md
Created May 3, 2019 01:50
notes for OOP Assignment_3

Assignment_3 Face Routing

Explanation

How do we send messages nowadays and how can we assure we send it to the right person? The answer is obvious, via internet of course. But how it works? This is a simple program simulate one of the geographic routing a routing principle that relies on geographic routing a routing principle that relies on geographic position -- face routing. Face routing is mainly proposed for wireless networks. First assume each node in the network graph has three main information: source node, it's own neighbor nodes and destination node, the rest is unknown. Since other informations are unknown how can we send out our packet all the way from source to destination?

  • Generate the network graph to planar graph (No crossing link)
  • When sending message, the message can be seen as a packet. The packet will have 5 important informations: source, destination, last hop, next hop and previous intersection point
  • Initialize the packet when message generate and push into the queue of sou

Keybase proof

I hereby claim:

  • I am JoyceChin31415 on github.
  • I am joycechin (https://keybase.io/joycechin) on keybase.
  • I have a public key whose fingerprint is 854E 5438 2528 B664 2E97 D2D1 56D6 17A4 6574 68C0

To claim this, I am signing this object:

@joycenerd
joycenerd / 0_reuse_code.js
Last active August 26, 2015 05:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console