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
figure = plt.figure(figsize=(12,12)) | |
cols, rows = 4,8 | |
for batchSize, (X, y) in enumerate(train_dataloader): | |
# X = X.transpose() | |
batch = y.shape[0] | |
for i in range(batch): | |
img, label = X[i], y[i] | |
# print(img.shape) | |
img.to(device) |
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
@font-face { | |
font-family: 'Material Symbols Outlined'; | |
font-style: normal; | |
font-weight: 400; | |
src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v107/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1n-q_4MrImHCIJIZrDCvHOejbd5zrDAt.woff2) | |
format('woff2'); | |
} | |
.material-symbols-outlined { |
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
#define NAME "TechOnTheNet.com" | |
#define AGE 10 | |
#define then { | |
#define end } | |
#define equals == | |
#define less < | |
#define lessEqualTo <= | |
#define greaterEqualTo >= |
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
export CPPFLAGS=-I/usr/include/opencv4 | |
python3 -m pip install robotpy-cscore===2022.0.3 | |
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
package frc.robot.subsystems; | |
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; | |
import edu.wpi.first.wpilibj2.command.CommandBase; | |
import edu.wpi.first.wpilibj2.command.SubsystemBase; | |
public class JetsonNanoSubsystem extends SubsystemBase { | |
private double angleToObj = 0; | |
private String objClassId = ""; |
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 numpy as np | |
import cv2 | |
import time | |
import torch | |
model = torch.hub.load('ultralytics/yolov5', 'custom', 'enson.engine',force_reload=True) | |
model1 = torch.hub.load('ultralytics/yolov5', 'custom', 'char.engine',force_reload=True) | |
cap = cv2.VideoCapture(0) | |
prev_frame_time = 0 | |
new_frame_time = 0 |
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
gst-launch-1.0 -vvv v4l2src device=/dev/video0 num-buffers=1 \! "video/x-bayer,width=1920,height=1080,framerate=(fraction)25/1,format=(string)bggr" \! bayer2rgb ! pngenc ! filesink location=test.png |
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
d |
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
package frc.robot; | |
import java.util.List; | |
import com.pathplanner.lib.PathConstraints; | |
import com.pathplanner.lib.PathPlanner; | |
import com.pathplanner.lib.PathPlannerTrajectory; | |
import com.pathplanner.lib.commands.PPSwerveControllerCommand; | |
import edu.wpi.first.math.controller.PIDController; |
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
license: gpl-3.0 | |
redirect: https://observablehq.com/@d3/focus-context |
NewerOlder