Skip to content

Instantly share code, notes, and snippets.

View yucedagonurcan's full-sized avatar
🎯
Focusing

Onur Can Yücedağ yucedagonurcan

🎯
Focusing
View GitHub Profile
@yucedagonurcan
yucedagonurcan / Faster_R-CNN_Map_Mask_Results.txt
Last active June 14, 2020 10:14
Faster R-CNN Map Mask Results
Faster R-CNN Results
---------------------
---------------------
Pure VOC2007:
-----------------------------------------------------------
Overlap_Coef:0, Top_300, 0.334 secs/image, car mAP: 0.7618
Overlap_Coef:0, Top_50, 0.260 secs/image, car mAP: 0.7624
------------------------------------------------------------
@yucedagonurcan
yucedagonurcan / ExMat.py
Created May 22, 2020 00:54
Extrinsic Matrix (Homogeneous) creator
import numpy as np
Z_ROT = lambda theta: np.array([[np.cos(theta), -np.sin(theta), 0],
[np.sin(theta), np.cos(theta), 0],
[0, 0, 1]])
def ConstructHomogeneousMatrices(phi_z, dx, dy, dz):
Rot_Mat = Z_ROT(phi_z)
Lidar_Camera_Base_Change = np.zeros(shape=(3, 3))
@yucedagonurcan
yucedagonurcan / region_tlr_ssd_output
Created March 16, 2020 08:39
region_tlr_ssd_output
adastec-oyucedag@adastec-oyucedag:~$ rosrun trafficlight_recognizer region_tlr_ssd _image_raw_topic:=/avt_camera/image_raw _network_definition_file:=/home/adastec-oyucedag/ssdcaffe/models/models_VGGNet_VOC0712Plus_SSD_512x512_ft/models/VGGNet/VOC0712Plus/SSD_512x512_ft/deploy.prototxt _pretrained_model_file:=/home/adastec-oyucedag/ssdcaffe/models/models_VGGNet_VOC0712Plus_SSD_512x512_ft/models/VGGNet/VOC0712Plus/SSD_512x512_ft/VGG_VOC0712Plus_SSD_512x512_ft_iter_160000.caffemodel _use_gpu:=true
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0316 11:36:55.824791 15369 upgrade_proto.cpp:67] Attempting to upgrade input file specified using deprecated input fields: /home/adastec-oyucedag/ssdcaffe/models/models_VGGNet_VOC0712Plus_SSD_512x512_ft/models/VGGNet/VOC0712Plus/SSD_512x512_ft/deploy.prototxt
I0316 11:36:55.824843 15369 upgrade_proto.cpp:70] Successfully upgraded file specified using deprecated input fields.
W0316 11:36:55.824848 15369 upgrade_proto.cpp:72] Note that future Caffe release
@yucedagonurcan
yucedagonurcan / Makefile.config
Created March 16, 2020 08:32
Makefile for building ssdcaffe.
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
After running this command: roslaunch runtime_manager runtime_manager.launch
Newly opened terminal can display the following error:
top: bad delay interval '0.1'
Exception in thread Thread-8:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/aw2/autoware.ai/install/runtime_manager/lib/runtime_manager/runtime_manager_dialog.py", line 1408, in top_cmd_th
@yucedagonurcan
yucedagonurcan / autoware_cuda_compile_err.txt
Created September 24, 2019 19:19
Autoware CUDA Compilation Error
aw2@aw2:~/autoware.ai$ AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
[0.195s] ERROR:colcon.colcon_core.entry_point:Exception loading extension 'colcon_core.package_identification.python': No module named 'setuptools.config', 'setuptools' needs to be at least version 30.3.0, if a newer version is not available from the package manager use 'pip3 install -U setuptools' to update to the latest version
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/colcon_core/entry_point.py", line 98, in load_entry_points
extension_type = load_entry_point(entry_point)
File "/usr/lib/python3/dist-packages/colcon_core/entry_point.py", line 140, in load_entry_point
return entry_point.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from bs4 import BeautifulSoup
import re
import pandas as pd
import os
import time
import requests as req
import cv2
import json
function exportToJsonFile(jsonData) {
let dataStr = JSON.stringify(jsonData);
let dataUri =
"data:application/json;charset=utf-8," + encodeURIComponent(dataStr);
let exportFileDefaultName = "data.json";
let linkElement = document.createElement("a");
linkElement.setAttribute("href", dataUri);
linkElement.setAttribute("download", exportFileDefaultName);
@yucedagonurcan
yucedagonurcan / Tyche_Meetup_5_Mar_2019.ipynb
Last active March 6, 2019 18:40
Notebook on meetup at Tyche LC - 5 Mar 2019
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.