Open in app

Sign In

Write

Sign In

Yanwei Liu
Yanwei Liu

1.8K Followers

Home

About

Pinned

PyTorch深度學習工具箱

本文把文章標題取名成PyTorch深度學習工具箱的用意是在於: 日常在進行PyTorch模型訓練的時候,如果想知道模型的好壞,我們會用不少方式去評估。例如:train/val loss、train/val accuracy、Confusion Matrix、per class accuracy、F1 Score、t-SNE視覺化、GradCAM、觀看模型分類時,判斷錯誤的圖片,及其原始圖片路徑。 然而,目前大多數research公開的程式碼當中,幾乎找不太到有一個將前述評估方法整合在一起的程式。也因此,如果我們想要得到這些資訊,就必須到Google搜尋,找別人是怎麼完成這些功能的,往往花上不少時間。 在本文當中,我將彙整過去寫過關於這些主題的文章及程式碼,製作成一個目錄,供讀者及自己查詢使用: 1.使用TensorBoard視覺化train/val loss、train/val accuracy https://pytorch.org/docs/stable/tensorboard.html

Pytorch

4 min read

Pytorch

4 min read


Published in

𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨

·Aug 29

Analyzing Pixel Value Distribution in Four-Channel RAW Images using Python and Matplotlib

Exploring Insights into Image Characteristics and Quality — Introduction In the world of digital imaging, understanding the distribution of pixel values within an image is essential for various applications. In this blog post, we will explore how to analyze the pixel value distribution in RAW images with four channels using Python and Matplotlib. …

Python

2 min read

Analyzing Pixel Value Distribution in Four-Channel RAW Images using Python and Matplotlib
Analyzing Pixel Value Distribution in Four-Channel RAW Images using Python and Matplotlib
Python

2 min read


Jul 31

How To Convert RAW tensor to RGB image in PyTorch using Numpy, OpenCV, and Matplotlib?

Convert RGGB RAW torch tenosr to RGB image with Numpy, OpenCV, and Matplotlib.

Artificial Intelligence

1 min read

Artificial Intelligence

1 min read


Published in

𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨

·Jun 12

Renaming Columns Inside a TensorBoard Log File

When working with TensorBoard log files, it’s sometimes necessary to modify or rename the columns to better suit your analysis needs. In this article, we will explore how to efficiently rename columns inside a TensorBoard log file using TensorFlow’s EventAccumulator. The workflow is pretty easy: 1. load log file 2. read…

TensorFlow

1 min read

TensorFlow

1 min read


Published in

𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨

·May 19

Image Padding to Nearest Multiple in PyTorch

A Python function for efficiently padding image tensors to the nearest multiple for image processing. — The purpose of this function is to ensure that the dimensions of an image are divisible by a given multiple, which can be useful in various computer vision tasks and deep learning applications. The code takes an input image array and a multiple value as parameters. Here’s how the…

Pytorch

2 min read

Pytorch

2 min read


Published in

𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨

·May 11

Mastering Tensor Padding in PyTorch: A Guide to Reflect and Replicate

In data processing, especially when dealing with neural networks, it’s common to need to adjust the size of your data. This process, known as padding, involves adding extra artificial data to an existing dataset. …

Pytorch

4 min read

Pytorch

4 min read


Apr 28

Flask-Notes-App: A Simple Flask Application for Note-Taking

A guide to using Flask-Notes-App, a simple Flask application for note-taking. — Flask-Notes-App is a simple web application built using the Flask framework, which allows users to create, view, and delete notes. The application is built using Python 3.x and utilizes Flask, Flask SQLAlchemy, and SQLite. Installation To install Flask-Notes-App, simply clone the repository from GitHub using the following command:

Flask

2 min read

Flask-Notes-App: A Simple Flask Application for Note-Taking
Flask-Notes-App: A Simple Flask Application for Note-Taking
Flask

2 min read


Apr 27

HTML, CSS, and JavaScript Combined: A Closer Look into Stopwatch App

Discover the Functionality and Development of this Beginner-Friendly Stopwatch Application — GitHub - e96031413/Stopwatch-App: Stopwatch App is a web-based stopwatch application built using… Stopwatch App is a web-based stopwatch application built using HTML, CSS, and JavaScript. The app allows users to…github.com Stopwatch App is a basic but effective stopwatch app built with HTML, CSS, and JavaScript. It provides a quick and easy solution for anyone who needs to keep track of time. This article will guide you through the features, usage, and contributing aspects of this app.

Time Management

3 min read

HTML, CSS, and JavaScript Combined: A Closer Look into Stopwatch App
HTML, CSS, and JavaScript Combined: A Closer Look into Stopwatch App
Time Management

3 min read


Apr 26

Mastering CSS Properties: A Comprehensive Guide to Display, Positioning, and Styling

An Introduction to Common CSS Properties for Styling Web Pages — CSS is a powerful tool for web designers to style and layout web pages. There are many CSS properties available, each with their own unique purpose. In this article, we’ll explore some of the most commonly used CSS properties and explain what they do. Display The display property specifies the type…

CSS

2 min read

CSS

2 min read


Published in

Nerd For Tech

·Apr 25

Building a Weather App with Taiwan Central Weather Bureau API

GitHub - e96031413/Taiwan-Weather-App: A weather app that uses the Taiwan Central Weather Bureau… A weather app that uses the Taiwan Central Weather Bureau API to retrieve weather information for various locations in…github.com The Taiwan Weather App is a simple web application that uses the Taiwan Central Weather Bureau API to retrieve weather information for a given location. It provides users with a convenient way to check weather conditions and forecasts for different locations in Taiwan.

Weather

2 min read

Building a Weather App with Taiwan Central Weather Bureau API
Building a Weather App with Taiwan Central Weather Bureau API
Weather

2 min read

Yanwei Liu

Yanwei Liu

1.8K Followers

Machine Learning | Deep Learning | https://linktr.ee/yanwei

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams