Chadrick's Blog

  • Posts

August 2020

deep learning

cross entropy loss / focal loss implmentation in pytorch

at the moment, the code is written for torch 1.4 binary cross entropy loss currently, torch 1.6 is out there and according to the pytorch docs, the torch.max function can receive two tensors and return element-wise max values. However, in 1.4 this feature is not yet supported and that is Read more…

By chadrick_author, 3 years ago
deep learning

“SkeletonNet: Shape Pixel to Skeleton Pixel” paper review

arxiv link my comments very similar to unet, with some modifications to network architecture: during downsampling convolutions, paddings are applied so no minor dimension reductions occur. This allows downsampling results to be directly concatenated with same-level upsampling results. New concept called ‘side layers’ are introduced. Each level’s output tensor which Read more…

By chadrick_author, 3 years ago
deep learning

“U-Net: Convolutional Networks for BiomedicalImage Segmentation” paper review

arxiv link key points paper does not mention how upsampling is done. deconv? interpolation? or it just maybe an alias for ‘interpolation’… during downsampling path, it does not do any padding. when concatenating downsampling result and upsampling result, the downsampling result has bigger width and height and thus the downsampling Read more…

By chadrick_author, 3 years3 years ago
algorithm

python implementation of rotating caliper algorithm

Rotating caliper algorithm is used to find a rectangle that fits a convex hull. Below is a python implementation that finds all rotated rectangles for a given convex hull points. It is up to the user to select which rectangle to use since it returns all possible rotating caliper rectangles. Read more…

By chadrick_author, 3 years ago
web

fixing return data array from apollo client is duplicate of first item in array

Situation I am querying with apollo client to fetch some userinfo. From the server side which uses apollo server, I can check that it is returning an array of two items which have different contents. However, when I console the fetched data from apollo client, the array is somehow incorrect. Read more…

By chadrick_author, 3 years3 years ago
error fix

ssh local port forwarding and error fix for “channel 3: open failed: connect failed: Connection refused”

My Scenario I have a remote server(4.4.4.4) where I am running a python django webserver on port 8008. However, the remove server is only allowing ssh port 32686, which means that I cannot directly access remote server at port 8008 to view the webserver. This is why I am local Read more…

By chadrick_author, 3 years ago
linux

check ubuntu version through command line

The most popular command However, in some cases when lsb_release is not available, then use the following

By admin, 3 years ago
pytorch

check cuda version build to torch package and find cudnn version used in torch

use the following python snippet to check cuda version the torch package was built against use the following python snippet to check cudnn version used by torch

By chadrick_author, 3 years3 years ago
linux

finding out package and versions in apt

search available packages with keyword list available versions of a package. For example, if I want to list all available versions for package libcudnn7 Before running this, running apt update is recommended. After finding a specific version that I want to install, then install the packge with a specific version Read more…

By chadrick_author, 3 years ago
error fix

error fix: “OpenBLAS blas_thread_init: pthread_create failed for thread 27 of 36: Resource temporarily unavailable”

Problem When I tried to run a python script using numpy, it gave the following error. Solution found a solution from here from the shell, execute the following

By chadrick_author, 3 years3 years ago
Recent Posts
  • fix blank plot when using plotly in jupyter lab
  • pylance stuck on “Searching for source files”
  • paper review: “Graph Attention Networks”
  • fix “Certificate verification failed” error in apt update of docker container
  • fixing “Could not handshake: An unexpected TLS packet was received” error while apt update in docker container behind corporate proxy
Categories
  • algorithm
  • c/c++
  • cuda
  • data science
  • deep learning
  • error fix
  • kicad
  • kotlin
  • linux
  • postgres
  • python
  • pytorch
  • tensorflow
  • Uncategorized
  • web
Recent Comments
  • Eric on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
  • Anonymous on qtwindeploy output missing ‘libgcc_s_seh-1.dll’ error fix
  • Andrew Mellinger on python implementation of rotating caliper algorithm
  • minhln14 on get rotation angle between two vectors
  • Anonymous on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
Archives
  • September 2022
  • July 2022
  • June 2022
  • May 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
Meta
  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Posts
Hestia | Developed by ThemeIsle