This is a method for making quick markdown reports for things like weekly meetings. Suggestions for improvement are welecome.
This tutorial shows us how to make this sample document
Positives:
| $$ | |
| \newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}} | |
| \newcommand{\pderivsq}[2]{\frac{\partial^2 #1}{\partial #2^2}} | |
| \newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}} | |
| \newcommand{\pderivgiven}[3]{\left.\frac{\partial #1}{\partial #2}\right|_{#3}} | |
| \newcommand{\norm}[1]{\frac12\| #1 \|_2^2} | |
| \newcommand{argmax}[1]{\underset{#1}{\operatorname{argmax}}} | |
| \newcommand{argmin}[1]{\underset{#1}{\operatorname{argmin}}} | |
| \newcommand{blue}[1]{\color{blue}{#1}} | |
| \newcommand{red}[1]{\color{red}{#1}} |
| $$ | |
| \newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}} | |
| $$ | |
| My Update: | |
| $x \leftarrow x - \eta \pderiv{\mathcal L}{x}$ | |
|  |
This is a method for making quick markdown reports for things like weekly meetings. Suggestions for improvement are welecome.
This tutorial shows us how to make this sample document
Positives:
| # Identities | |
| **Delta, Sum** | |
| \begin{align} | |
| \Delta (x_t) &:= x_t - x_{t-1} \\ | |
| \Sigma (x_t) &:= s_t := s_{t-1} + x_t \\ | |
| \Sigma \circ \Delta &= \mathcal I | |
| \end{align} |
| <!DOCTYPE html> | |
| <html> | |
| <head><meta charset="utf-8" /> | |
| <title>experiment_tutorial</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
| <style type="text/css"> | |
| /*! |
| $$ | |
| \newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}} | |
| \newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}} | |
| \newcommand{\argmax}[1]{\underset{#1}{\operatorname{argmax}}} | |
| \newcommand{\argmin}[1]{\underset{#1}{\operatorname{argmin}}} | |
| \newcommand{\switch}[3]{\begin{cases} #2 & \text{if } {#1} \\ #3 &\text{otherwise}\end{cases}} | |
| \newcommand{\blue}[1]{\color{blue}{#1}} | |
| \newcommand{\red}[1]{\color{red}{#1}} | |
| \newcommand{\overlabel}[2]{\overset{#1}{\overline{#2}}} | |
| \newcommand{\loss}[0]{\mathcal L} |
| <p><script type="math/tex; mode=display" id="MathJax-Element-1"> | |
| \newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}} | |
| \newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}} | |
| \newcommand{\argmax}[1]{\underset{#1}{\operatorname{argmax}}} | |
| \newcommand{\argmin}[1]{\underset{#1}{\operatorname{argmin}}} | |
| \newcommand{\switch}[3]{\begin{cases} #2 & \text{if } {#1} \\ #3 &\text{otherwise}\end{cases}} | |
| \newcommand{\blue}[1]{\color{blue}{#1}} | |
| \newcommand{\red}[1]{\color{red}{#1}} | |
| \newcommand{\overlabel}[2]{\overset{#1}{\overline{#2}}} | |
| \newcommand{\loss}[0]{\mathcal L} |
| <p><script type="math/tex; mode=display" id="MathJax-Element-1"> | |
| \newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}} | |
| \newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}} | |
| \newcommand{\argmax}[1]{\underset{#1}{\operatorname{argmax}}} | |
| \newcommand{\argmin}[1]{\underset{#1}{\operatorname{argmin}}} | |
| \newcommand{\switch}[3]{\begin{cases} #2 & \text{if } {#1} \\ #3 &\text{otherwise}\end{cases}} | |
| \newcommand{\blue}[1]{\color{blue}{#1}} | |
| \newcommand{\red}[1]{\color{red}{#1}} | |
| \newcommand{\overlabel}[2]{\overset{#1}{\overline{#2}}} | |
| \newcommand{\loss}[0]{\mathcal L} |
| import os | |
| import shutil | |
| import sys | |
| from argparse import ArgumentParser | |
| from datetime import datetime | |
| from typing import Optional, Sequence | |
| def modified_timestamp_to_filename(timestamp: float) -> str: | |
| return datetime.fromtimestamp(timestamp).strftime('dji_%Y-%m-%d_%H-%M-%S') |
| from typing import Optional, Tuple, Sequence | |
| import cv2 | |
| def draw_bboxes_on_image( | |
| image, # A (height, width, 3) unit8 numpy array representing an image | |
| return_relative=False, # True to return box coorinates relative to width/height of image so they will be in [0, 1] interval | |
| window_name='Draw Your Bounding Box', # What to call the window | |
| display_color=(0, 0, 255), # Colour of the displayed box | |
| display_thickness=2 # Thickness of the displayed box |