This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
import os | |
import imgaug as ia | |
from imgaug import augmenters as iaa | |
import tensorflow.keras as keras | |
from tensorflow.keras.losses import mean_absolute_error, mean_squared_error | |
from tensorflow.keras.models import Model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import numpy as np | |
import sys | |
import time | |
import plac | |
class FrozenGraph(object): | |
def __init__(self, model, shape): | |
import tensorflow.keras as keras |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keras | |
from keras.models import Model | |
from keras import backend as K | |
from keras.layers import Dense, Activation | |
import tensorflow as tf | |
from tensorflow.contrib import tensorrt as tftrt | |
import copy | |
import numpy as np | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<launch> | |
<arg name="serial_no" default=""/> | |
<arg name="json_file_path" default=""/> | |
<arg name="camera" default="camera"/> | |
<arg name="tf_prefix" default="$(arg camera)"/> | |
<arg name="fisheye_width" default="640"/> | |
<arg name="fisheye_height" default="480"/> | |
<arg name="enable_fisheye" default="true"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clf | |
hold on | |
disp("Note: You must define the CX output as the general solution here after running one time for this code to work") | |
syms y(x) x d C2 C4 | |
xrange = -5:0.1:5; | |
yrange = -10:0.1:10; | |
% Quiver | |
%ode = @(y, x) (x+2*y^2)/(2*y*x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
cap = cv2.VideoCapture(0) | |
final_frame = None | |
initial_frame = None | |
while True: | |
# Capture frame-by-frame | |
ret, frame = cap.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syms t; | |
syms C; | |
syms y; | |
syms r; | |
syms y; | |
syms x; | |
syms Y; | |
syms X; | |
hw_problem = '2.1 #24'; |