Skip to content

Instantly share code, notes, and snippets.

Avatar
🍃

Shubham Gupta goodhamgupta

🍃
View GitHub Profile
View sockets_vs_rmi.md

Sockets

  • Two-sided communication links between two programs in a network.
  • Connection: Machines are aware of the each other's network location(IP) and TCP port
  • Can be TCP or UDP based.

Socket Types

Two kinds of sockets: Server(wait for request) and Client(receive and send data)

View voc_to_yolo.py
def generate(label):
(
bbox_xmin,
bbox_ymin,
bbox_xmax,
bbox_ymax,
img_width,
img_height
) = (
label.get('xmin'),
@goodhamgupta
goodhamgupta / yolo_to_voc.py
Last active Sep 11, 2021
Convert yolo coordinates to VOC format
View yolo_to_voc.py
# Script to convert yolo annotations to voc format
# Sample format
# <annotation>
# <folder>_image_fashion</folder>
# <filename>brooke-cagle-39574.jpg</filename>
# <size>
# <width>1200</width>
# <height>800</height>
# <depth>3</depth>