DALL·E 2 Vincentian Diagram Model Practice Guide

Preface: This blog records the relevant information and DEBUG process used for inference using the dalle2 model. Related blogs: Super detailed! DALL · E Vincentian Diagram Model Practical Guide Directory 1. Environment setup and pre-training model preparation Environment setup Pre-trained model download 2. Code 3. BUG & DEBUG URLError CUDA error RuntimeError PydanticUserError 1. Environment […]

ZYNQ_project:ram_dual_port

Pseudo dual-port ram: write port: clk_w,en_A,we_A,addr_A,din_A; read port: clk_r,en_B,addr_B;dout_B. Design a read-write module to write 256 data and read 256 data. The input clock is 100Mhz and the output clock is 50Mhz. Multi-bit data is processed from high-speed clock domain to low-speed clock domain. Module block diagram: Code: module ram_real_wr( input wire clk_w , input […]

No framework, just use numpy to write a wonderful chapter of DNN (Deep Neural Networks)

1. Overview A Logistics Regression can be thought of as a simple neural network consisting of only one hidden layer (Hidden Layer) (as shown in the figure below). However, Logistic Regression is often very sensitive to outliers, and it is difficult to deal with polyphenols. Therefore, people were inspired by human brain nerves and established […]

redis org.springframework.data.redis.RedisSystemException: Error in execution

Background When running a certain system, the test class stores a certain value into redis and then takes it out. 1. Problems encountered Error reported: org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify […]

Initialization program of 3-axis acceleration sensor QMA6100P

QMA6100P attitude sensor initialization program Article directory Preface 1. Brief description 2. Usage steps 1.IIC basic configuration (iic.c file) 2. Register address of QMA6110P (qma6100p.h file) QMA6100P ID and data reading function (qma6100p.c file) main program Foreword The initialization program of the domestic 3-axis acceleration sensor QMA6100P, the HK32 MCU, and the entire project can […]

WinForm application interface development practice – how to integrate external API interface calls in a hybrid framework

In our regular business processing, most of the internal processing interfaces are database-related and based on the Winform development framework of hybrid development. Although when the client calls, the general choice is also based on Web API calls, but the back-end We may not only process our business database, but also call other external interfaces, […]

Byte’s 10 years of experience – developing an automated testing framework from 0 to 1!

1. Preface With the rapid iteration of project versions, APP testing has the following characteristics: First of all, there are many and detailed function points, the testing workload is large, and it is easy to miss; Secondly, code modules are often changed, regression testing is frequent, and testing is repeated and inefficient; Finally, the data […]

.NET Framework 4.8 console application in C# accesses the established database through EF

Table of Contents 1. Create a .NET Framework 4.8 console application 2. Establish a database 1. Establish database Blogging in SSMS 2. Create a new database connection on VS 3. Install the EF package 4. Automatically generate EF models and contexts 1.Blog.cs class model 2. Model of Post.cs class 3.BloggingContext.cs database context 5. Write an […]