QA Official

netty3 entry case

https://qaofficial.com/post/2019/04/03/68731-netty3-entry-case.html 2019-04-03
Netty is a network application framework that provides asynchronous event driving to rapidly develop high performance and high reliability network server and client programs.In other words, it is a NIO framework, which can be used to develop network applications simply and quickly.Netty greatly simplifies the development process of network programs such as Socket development of TCP and UDP.Before learning netty, you need to have a thorough understanding of NIO. Please

vgg16 neural network reuse

https://qaofficial.com/post/2019/04/03/68705-vgg16-neural-network-reuse.html 2019-04-03
Load vgg16 data to reproduce neural network #!/usr/bin/python #coding:utf-8 import inspect import os import numpy as np import tensorflow as tf import time import matplotlib.pyplot as plt VGG_MEAN = [103.939, 116.779, 123.68] # 图像的平均像素值 class Vgg16(): def __init__(self, vgg16_path=None): if vgg16_path is None: vgg16_path = os.path.join(os.getcwd(), "vgg16.npy") # os函数拼接路径 self.data_dict = np.load(vgg16_path, encoding='latin1').item() # 读取

A standard resnet network with 18-150 layers

https://qaofficial.com/post/2019/04/03/68659-a-standard-resnet-network-with-18-150-layers.html 2019-04-03
import torch.nn as nn import torch.utils.model_zoo as model_zoo __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152'] model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', 'resnet34': 'https://download.pytorch.org/models/resnet34-333f7ec4.pth', 'resnet50': 'https://download.pytorch.org/models/resnet50-19c8e357.pth', 'resnet101': 'https://download.pytorch.org/models/resnet101-5d3b4d8f.pth', 'resnet152': 'https://download.pytorch.org/models/resnet152-b121ed2d.pth', } def conv3x3(in_planes, out_planes, stride=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) def conv1x1(in_planes, out_planes, stride=1): """1x1 convolution""" return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False) class BasicBlock(nn.Module): expansion = 1 def __init__(self, inplanes, planes, stride=1, downsample=None): super(BasicBlock, self).

FasterRCNN Configuration Process under Windows 7 64 Bit

https://qaofficial.com/post/2019/04/03/68693-fasterrcnn-configuration-process-under-windows-7-64-bit.html 2019-04-03
First of all, one of the most important prerequisites is to have the VC++operating environment and components in advance. It is best to install vs2012 or later in advance. After having the VC++operating environment and components, try the following steps to configure fast RCNN. If you are not sure whether there is a VC++operating environment that meets the requirements, you can try it first. If you fail and worry about the next configuration, you can directly uninstall Adacconda and reinstall Adacconda and then re-install it according to the procedure.

Fine tuning training is carried out by using Oxford trained face model;Identify 3 faces

https://qaofficial.com/post/2019/04/03/68689-fine-tuning-training-is-carried-out-by-using-oxford-trained-face-modelidentify-3-faces.html 2019-04-03
problems encountered: https://stackoverflow.com/questions/36920823/negative-training-image-examples-for-cnn Target: Fine tuning training is carried out by using Oxford trained face model;Identify 3 faces deep learning framework: Caffe network model: VGG16 Current situation: the collected data is not enough, the network can run, but the effect is not good, the next step may be to increase the amount of data;Learning to adjust parameters Work Flow # Python代码参照

Java NIO Framework Netty Tutorial (1)-Hello Netty

https://qaofficial.com/post/2019/04/03/68739-java-nio-framework-netty-tutorial-1-hello-netty.html 2019-04-03
Let's start with a few words. If you don't know what Netty does or can do.That can be a simple search to understand first.I can only say Netty is a NIO framework that can be used to develop distributed Java programs.You can try your best to imagine what you can do.Technology serves people, not limits them. If you already have everything, let's start with a piece of code.The first step

Netty Beginner-Level 1 (Basic Operation)

https://qaofficial.com/post/2019/04/03/68709-netty-beginner-level-1-basic-operation.html 2019-04-03
Netty Getting Started 1. Why netty? Netty is the implementation framework based on java NIO, which is exactly implemented based on NIO2.0, that is, AIO. However, because the use of NIO is complicated, netty appears. The NIO server and client developed through netty are very simple, with only a few tens of lines of code, NIO functions that can only be realized by hundreds of lines of code can be

Netty Game Server Actual Combat Development (2): Bytebuf-Container of Byte Data

https://qaofficial.com/post/2019/04/03/68719-netty-game-server-actual-combat-development-2-bytebuf-container-of-byte-data.html 2019-04-03
buffer The basic unit of network data is always byte.Java NIO provides ByteBuffer as byte container, but its function is too limited and has not been optimized.Using ByteBuffer is usually a tedious and complicated matter. Fortunately, Netty provides a powerful buffer implementation class to represent byte sequences and to help you manipulate bytes and custom POJO.This new buffer class, ByteBuf, is as efficient as JDK's ByteBuffer.ByteBuf was designed to

Netty Getting Started Tutorial (2)-Netty Server and Client

https://qaofficial.com/post/2019/04/03/68737-netty-getting-started-tutorial-2-netty-server-and-client.html 2019-04-03
Netty version in the code is 3.x because it is a preliminary study of Netty and Netty3 is easier to understand from the information found on the internet. 1. Netty Server import java.net.InetSocketAddress; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.channel.ChannelPipelineFactory; import org.jboss.netty.channel.Channels; import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory; import org.jboss.netty.handler.codec.string.StringDecoder; import org.jboss.netty.handler.codec.string.StringEncoder; /** * netty服务端入门 * */ public class Server { public

Netty from Zero to One-Getting Started

https://qaofficial.com/post/2019/04/03/68724-netty-from-zero-to-one-getting-started.html 2019-04-03
Start This chapter explains the core components of Netty in turn and includes simple examples to get you started quickly.At the end of this chapter, you can write the client and server that depend on Netty. preparation If you want to run the examples in this chapter, you need at least the latest version of Netty and JDK above 1.6.Please download the latest Netty to http://netty.io/downloads.html, and JDK please download