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
function () { | |
this.color = "", this.radioYes = "", "" == this.answer || null == this.answer || null == this.answer ? alert("\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4\u10d7 \u10de\u10d0\u10e1\u10e3\u10ee\u10d8") : (this.fullCount++, 36 == this.index && (this.YesButton = "\u10dc\u10d0\u10db\u10e3\u10e8\u10d4\u10d5\u10d0\u10e0\u10d8 \u10d3\u10e0\u10dd", this.NoButton = "\u10e8\u10d4\u10e1\u10e0\u10e3\u10da\u10d4\u10d1\u10e3\u10da\u10d8 \u10e1\u10d0\u10db\u10e3\u10e8\u10d0\u10dd"), this.index > -1 && this.index < 7 ? "no" == this.answer ? (this.answers_array[this.index] = "0", this.incorrect_answer()) : "yes" == this.answer && (this.answers_array[this.index] = "1", this.correct_answer(), this.result_payer()) : this.index > 6 && this.index < 26 ? (this.index > 6 && this.index < 22 ? "yes" == this.answer ? (this.answers_array[this.index] = "1", this.correct_answer()) : (this.answers_array[this.index] = "0", this.incorrect_answer()) : this.index > 21 && this.index < 26 && ("no" == this.answer ? (this.answ |
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
#include "opencv2/core.hpp" | |
#include "opencv2/imgproc.hpp" | |
#include "opencv2/highgui.hpp" | |
#include "opencv2/videoio.hpp" | |
#include <opencv2/calib3d.hpp> | |
#include <opencv2/core/cvstd.hpp> | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
double my_exp(double a,double s, double x0,double 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
extern "C" void __attribute__((no_instrument_function)) | |
__cyg_profile_func_enter(void* this_fn, void* call_site) | |
{ | |
int p =(char*) this_fn - (char *)main; | |
if(funcs.size()!=0){ | |
if(funcs.count(p)) { | |
string fname = funcs[p]; | |
if (fname.rfind("cv::",0)==0) return; | |
if (fname.rfind("FrameWithInfo::Fra",0)==0) return; | |
if (fname.rfind("FrameWithInfo::~Fra",0)==0) return; |
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
class FairMutex { | |
private: | |
class waitnode { | |
std::condition_variable cv_; | |
waitnode* next_ = nullptr; | |
FairMutex& fmtx_; | |
public: | |
waitnode(FairMutex& fmtx) : fmtx_(fmtx) { | |
*fmtx.tail_ = this; | |
fmtx.tail_ = &next_; |
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
cmake_minimum_required(VERSION 3.15) | |
set(CMAKE_VERBOSE_MAKEFILE on) | |
#set (OpenCV_DIR /home/stiv2/opencv-4.1.2/build) | |
#find_package(OpenCV REQUIRED ) | |
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ") | |
project(darknet) | |
set(CMAKE_CXX_STANDARD 14) | |
#add_definitions(-DOPENCV=1) |
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
==1549== Memcheck, a memory error detector | |
==1549== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. | |
==1549== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info | |
==1549== Command: ./deepstream-test3-app file:///home/stiv/lpr/data/mp4-2/mgm15-2.mp4 | |
==1549== | |
==1549== Warning: noted but unhandled ioctl 0x30000001 with no size/direction hints. | |
==1549== This could cause spurious value errors to appear. | |
==1549== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. | |
==1549== Warning: noted but unhandled ioctl 0x27 with no size/direction hints. | |
==1549== This could cause spurious value errors to appear. |
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
Vagrant.configure(2) do |config| | |
# Ubuntu 15.10 | |
config.vm.box = "bento/ubuntu-18.04" | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine | |
vb.gui = true | |
end | |
# Install xfce and virtualbox additions |
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
smooth = 1. | |
intersection = tf.reduce_sum(flat_logits * flat_labels) | |
dice_score = (2 * intersection + smooth) / ( | |
tf.reduce_sum(flat_labels) + tf.reduce_sum(flat_logits) + smooth) | |
dice_loss = 1 - dice_score | |
cross_entropy_loss = tf.reduce_mean( | |
tf.nn.softmax_cross_entropy_with_logits_v2(logits=flat_logits, labels=flat_labels)) | |
loss = dice_loss + cross_entropy_loss |
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 tensorflow as tf | |
import numpy as np | |
from PIL import Image | |
batch_size = 32 | |
loaded_graph = tf.Graph() | |
with tf.Session(graph=loaded_graph) as sess: | |
tf.saved_model.loader.load(sess, [tf.saved_model.tag_constants.TRAINING], "./models/roofs_not_roofs/") | |
im = np.array(Image.open("./test_pic/b2_DJI_0145_02_05.png"), np.float32)[None,...]/256 | |
x = loaded_graph.get_tensor_by_name('x:0') |
This file has been truncated, but you can view the full file.
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
Attaching to process ID 20365, please wait... | |
Debugger attached successfully. | |
Server compiler detected. | |
JVM version is 25.181-b13 | |
Deadlock Detection: | |
No deadlocks found. | |
Thread 28025: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise) |
NewerOlder