QA Official

python _ _ init _ _. py is used

https://qaofficial.com/post/2019/04/22/68447-python-_-_-init-_-_.-py-is-used.html 2019-04-22
init.py's function is to change the folder into a Python package. in the package of each library in Python, there is init.py file. when we import a package, we actually import its init.py file.In this way, we can batch import the modules we need in init.py files, instead of importing one by one. # package.py 里面的代码 # __init__.py import re import urllib import sys import os

sys.argv in python

https://qaofficial.com/post/2019/04/22/68432-sys.argv-in-python.html 2019-04-22
You often see statements like this in OpenStack os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir,os.pardir)) 其中 sys.argv[0] represents the first parameter, for example, server.py in python server.py is the value represented by sys.argv[0] os.path.join is to connect the paths. os.pardir means to retire a directory import os import sys print os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir,os.pardir)) print os.path.abspath(sys.argv[0])output is C:\Users\s00279560 C:\Users\s00279560\Documents\server.py

sys.argv in python (parameters, unpacking, variables)

https://qaofficial.com/post/2019/04/22/68439-sys.argv-in-python-parameters-unpacking-variables.html 2019-04-22
sys.argv in python (parameters, unpacking, variables) What you learned here is the method of passing variables to scripts If you want to run a my.py script in python, you only need to run python my.py on the command line. The my.py part of this command is the so-called' argument)'. What you need to do now is how to write a script that can accept parameters. from sys import argv script , first , second , third = argv print('the script is called ',script) print('your first variable is ',first) print('your second variable is ',second) print('your thrid variable is ',thrid) import the import library in the first line.

usage of pythonsys.argv

https://qaofficial.com/post/2019/04/22/68410-usage-of-pythonsys.argv.html 2019-04-22
code first: if len(sys.argv) != 5 or (len(sys.argv)==5 and (not (str(sys.argv[1]).strip() == 'entrust' )): print 'python createHistoryEntrust.py entrust|deal env_no, enturst_no, client_id' elif str(sys.argv[1]).strip() == 'entrust': createHistoryEntrust(sys.argv[2], sys.argv[3], sys.argv[4]) elif str(sys.argv[1]).strip() == 'deal': createHistoryDeal(sys.argv[2], sys.argv[3], sys.argv[4]) Will it be a bit dull to see the above code????? don't worry, sys.argv is to get a list of command line parameters, such as pythoncreatehistorytrust.py. Deal 10086 true 0 this command, sys.

01 Summary of Studies on Convolutional Neural Network

https://qaofficial.com/post/2019/04/21/70643-01-summary-of-studies-on-convolutional-neural-network.html 2019-04-21
1. This article introduces Title: A Review of Studies on Convolutional Neural NetworkAuthor: Li Yandong, Hao Zongbo, Lei HangAuthor: School of Information and Software Engineering, University of Electronic Science and TechnologyPublished in: Computer Applications, September 10, 2016 2. Main Contents 1, CNN's History 1.In the 1960s, when the theory was put forward, Neocognitron took the lead (put forward in 1980)2.around 1998, LeNet-5 dominated the model implementation phase.3. From 2012 till now, AlexNet, VGG, GoogLeNet, ResNet,

Multiple Instance Learning

https://qaofficial.com/post/2019/04/21/70525-multiple-instance-learning.html 2019-04-21
////////////////////////////////////////////////////////////////////////////// http://www.robots.ox.ac.uk/~vgg/ //////////////////////////////////////////////////////////////////////////////////////// Multiple Instance Learning I have been preparing for the seminar today. It is a report that my tutor specifically asked me to do. It is a paper on "weakly supervised Discriminatory Location and Classification: A Joint Learning Process".After reading it for the first time, I felt that the so-called weakly supervised seems to be just another way of saying it.Before looking at more papers, this conclusion has yet to be verified.

PyTorch-Image Classification One (one folder for each class)

https://qaofficial.com/post/2019/04/21/70633-pytorch-image-classification-one-one-folder-for-each-class.html 2019-04-21
1. Data Set Preparation and Training Data is organized by folders, one for each class.Most other PyTorch tutorials and examples expect you to organize folders by training set and validation set, then organize folders by category in training set and validation set.However, I think this is very troublesome. A certain number of images must be selected from each category and moved from the training set folder to the validation set

Pytorch Learning Note _1_ Try to build an AlexNet for classification and training

https://qaofficial.com/post/2019/04/21/70635-pytorch-learning-note-_1_-try-to-build-an-alexnet-for-classification-and-training.html 2019-04-21
1. about AlexNet AlexNet structure The structure in the paper is as follows: Input (224x224x3) (1) Conv1 (96x55x55) (2) MaxPool1 (96x27x27) (3) Conv2 (256x27x27) (4) MaxPool2 (256x13x13) (5) Conv3 (384x13x13) (6) Conv4 (384x13x13) (7) Conv5 (256x13x13) (8) MaxPool3 (256x6x6) (9) FC (1x4096) (10) FC (4096) (11)

Weakly Supervised Object Localization with Multi-fold Multiple Instance Learning

https://qaofficial.com/post/2019/04/21/70530-weakly-supervised-object-localization-with-multi-fold-multiple-instance-learning.html 2019-04-21
Weakly Supervised Object Localization with Multi-fold Multiple Instance Learning Weak Supervised Object Localization Based on Multi-layer and Multi-instance Learning Abstract-In the fields of computation and vision, the classification and location of objects is a challenging problem.Standard supervision training requires bounding box labeling of object instances.Weak supervised learning avoids this time-consuming labeling process.In this case, the monitoring information is limited to two-state labeling, which can indicate whether the object instance in the picture is present or missing.

html Attribute Learning Overview

https://qaofficial.com/post/2019/04/21/70575-html-attribute-learning-overview.html 2019-04-21
工作过程中,基本上都负责后台部分,前端部分的修改量不多,框架基本固定。需要多学习复习一些基本的前端知识,不然时间久了,就落下了。现学习复习下