Giter Site home page Giter Site logo

mxochicale / code Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 34.53 MB

:computer: :school_satchel: code

Shell 0.11% Jupyter Notebook 93.91% Python 2.66% C++ 1.03% CMake 0.01% HTML 0.36% Cuda 1.39% JavaScript 0.01% Dockerfile 0.01% Makefile 0.24% C 0.28% MATLAB 0.01% R 0.01%

code's Introduction

Twitter Badge LinkedIn Badge Youtube Badge CV

Websites: Personal Website

Miguel is currently a Senior Research Engineer at University College London, UK, where he leads pioneering advancements in data-centric AI tools for Medical Imaging, MedTech, SurgTech, Biomechanics, and Clinical Translation. His work focuses on driving innovation and delivering impact in several critical areas: Real-time AI for surgery, eye movement disorders, and echocardiography, Sensor fusion data integrating wearable trackers with medical imaging, Generative models for fetal imaging, and Child-robot interaction in low-resource countries. By harnessing these cutting-edge technologies, he is dedicated to transforming healthcare through AI and making a lasting impact on patient care and medical research.

code's People

Contributors

mxochicale avatar

Watchers

 avatar

code's Issues

What is a std::atomic?

What is an atomic operation? An atomic operation is an operation guaranteed to execute as a single unified transaction. When an atomic operation is executed on an object by a specific thread, no other threads can read or modify the object while the atomic operation is in progress. This means that other threads will only see the object before or after the operation — no intermediary state.
https://ryonaldteofilo.medium.com/atomics-in-c-what-is-a-std-atomic-and-what-can-be-made-atomic-part-1-a8923de1384d

Testing Latest Stable version of OpenCV

Tidy up demos for kalman filters

  • Create a common conda virtual environment
  • Add gif for animations in the demos
  • Try to investigate the latency of kalman algorithms

c++

Adding examples for few principles of c++

GStreamer

GStreamer is a library for constructing graphs of media-handling components. The applications it supports range from simple Ogg/Vorbis playback, audio/video streaming to complex audio (mixing) and video (non-linear editing) processing.
https://gstreamer.freedesktop.org/

  • Playing video
gst-launch-1.0 v4l2src device=/dev/video2 ! videoconvert ! videoscale ! video/x-raw, width=640, height=480, framerate=30/1 ! autovideosink
gst-launch-1.0 videotestsrc ! autovideosink
gst-launch-1.0 videotestsrc ! ximagesink

gst-launch-1.0 -vvv videotestsrc ! 'video/x-raw,width=1280,height=720,format=RGB,framerate=60/1' ! autovideosink
gst-launch-1.0 -vvv videotestsrc ! 'video/x-raw,width=1280,height=720,format=YV12,framerate=30/1' ! autovideosink
  • Options
v4l2src: Reads frames from a linux video device.
videotestsrc: Creates a test video stream.
videoconvert: Converts video format.
videoscale: Resizes video.
autovideosink: Automatically detects video sink.
  • features of devices
v4l2-ctl --list-formats-ext --device /dev/video2

References

try `nvFuser` with torch 1.13; functorch

This tutorial will demonstrate how you can accelerate your networks with nvFuser. nvFuser is a Deep Learning Compiler that just-in-time compiles fast and flexible GPU specific code to reliably accelerate users’ networks automatically, providing speedups for deep learning networks running on Volta and later CUDA accelerators by generating fast custom “fusion” kernels at runtime. nvFuser is specifically designed to meet the unique requirements of the PyTorch community, and it supports diverse network architectures and programs with dynamic inputs of varying shapes and strides.
https://pytorch.org/tutorials/intermediate/nvfuser_intro_tutorial.html

Using `#include <opencv2/opencv.hpp>`

I am opening this ticket to check opencv version in Ubuntu22.04.
Notes: there is already some examples for opencv in c++ https://github.com/mxochicale/code/tree/main/opencv/examples/cpp but not sure which is the opencv version and if they work in the latest ubuntu verision.

  • OS
hostnamectl
 Static hostname: --
       Icon name: computer-laptop
         Chassis: laptop
      Machine ID: --
         Boot ID: --
Operating System: Ubuntu 22.04.1 LTS              
          Kernel: Linux 5.15.0-56-generic
    Architecture: x86-64
 Hardware Vendor: --

Just a quickly trying YOLOv9

References

Some issues

cv2.error: OpenCV(4.9.0) /io/opencv/modules/highgui/src/window.cpp:1272: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'
SOLVED #- opencv-contrib-python-headless USING - opencv-python

Using docker

Creating this one to add few details to use docker in Ubuntu

  1. Installation
sudo apt update
sudo apt install docker.io
docker version
Client:
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.3
 Git commit:        24.0.5-0ubuntu1~20.04.1
 Built:             Mon Aug 21 19:50:14 2023
 OS/Arch:           linux/amd64
 Context:           default
permission denied while trying to 
connect to the Docker daemon socket at unix:///var/run/docker.sock:

https://www.howtoforge.com/tutorial/how-to-create-docker-images-with-dockerfile/

  1. Linux post-installation steps for Docker Engine
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world
reboot
#chmod 777 /var/run/docker.sock
#sudo chmod 666 /var/run/docker.sock

https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user

References

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.