Deep learning model feature visualization method based on Django framework

Through the deep learning model feature visualization method based on the Django framework, customers can realize the visualization of model features on the web page, solving the problems of high usage threshold, high cost and security risks in the existing technology, and realizing the intuitive understanding and flexibility of model features Expand.

CN118567643APending Publication Date: 2024-08-30FREESENSE IMAGE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410712464.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing deep learning model feature visualization methods have high barriers to use, high costs, and security risks, making it difficult for non-professional personnel to realize and understand the image feature information learned by the model.

Method used

Using the deep learning model feature visualization method based on the Django framework, visual web pages are developed through the Django framework. Customers can pass in model weight files and image files through the web page side, and the Django framework calls controllers, models, views and other controls to complete feature visualization operations. Provides visual results in html form.

Benefits of technology

Lower the threshold for use, allowing non-professional personnel to understand the working mechanism of the model, improve the flexibility and scalability of visualization, and solve the high cost and security risks of existing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567643A
    Figure CN118567643A
Patent Text Reader

Abstract

The invention discloses a deep learning model feature visualization method based on a Django framework, and the method comprises the following steps: S1, deploying all model feature visualization methods into the Django framework in a preprocessing stage; s2, a client selects model features needing to be visualized in a webpage form and transmits a model weight file, picture data and model layer information with specified feature visualization for access calling; and S3, selecting and calling a corresponding view function module and a model module according to url information selected by a customer in the Django framework to execute corresponding model feature visualization operation. The method utilizes the Django framework to develop a visual webpage, and introduces a model weight file, an image file and the like which need to be viewed at a webpage end, so that the visual webpage is more visual. And the Django framework finishes calling through controls such as a controller, a model and a view, and feeds back a visualization result on a webpage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to artificial intelligence deep learning and Web service related fields, and mainly relates to a model feature visualization method based on a Django framework, which helps developers to more intuitively understand the image feature information of model learning and increase users' understanding of the model. Background Art

[0002] Deep learning technology has been widely used in various fields of real life and has brought great positive impacts. However, the interpretability of deep learning technology is relatively poor. Non-professional developers or customers cannot intuitively understand its technical principles. By visualizing the features learned by the model, developers can quickly and intuitively understand the technical principles.

[0003] The current model feature visualization method is generally executed by local code and saved to a local folder for viewing. However, this method can only be implemented by professionals, and other industry developers or customers cannot implement this operation alone. At the same time, the model contains many layers of learning features, and it is inconvenient to switch to view different levels of features. Although some visualization websites are available, such websites have security risks and high usage costs. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a method for visualizing the features of a deep learning model based on the Django framework. The present invention uses an open source Web application framework written in Python development language based on Django technology, and only a small amount of code is needed to realize simple website development. The Django framework is used to develop a visualization web page. By passing in the model weight file and image file to be viewed on the web page, the Django framework completes the call through controllers, models, views and other controls, and feeds back the visualization results on the web page.

[0005] To achieve the above object, the present invention provides the following technical solutions: A method for visualizing features of a deep learning model based on a Django framework includes the following steps: Step S1: In the preprocessing stage, all model feature visualization methods are deployed into the Django framework; Step S2: The customer selects the model features to be visualized through the web page and passes the model weight file, image data, and model layer information of the specified feature visualization for access call; Step S3: The Django framework selects and calls the corresponding view function module and model module according to the URL information selected by the customer to perform the corresponding model feature visualization operation.

[0006] As a further solution of the present invention, in step S1, the model features include three types of models: classification, detection, and segmentation.

[0007] As a further solution of the present invention, in step S3, the visualization result is returned to the web page in HTML format.

[0008] As a further solution of the present invention, in step S1, the preprocessing stage also includes the configuration of calling the URL interface, the configuration of the web page interface, and the configuration of the model visualization return interface.

[0009] As a further solution of the present invention, in step S3, the specific calling process within the Django framework includes: deploying different types of models including classification, detection and segmentation within the Django framework, and configuring the specified url interface, the view function corresponding to the url interface, the model module corresponding to the view function, and the result parameters accepted by the page; after the user passes the data and model file parameters into Django through the page, Django will call the url control module to find the corresponding view function module, and the view function module will call the visualization code in the corresponding model module; finally, the visualized feature map and network structure map are returned to the page in html form for viewing.

[0010] The present invention has the following beneficial effects: The present invention adopts a deep learning model feature visualization method based on the Django framework, which is helpful for non-professionals to understand the working mechanism of the model; it is helpful for professionals to debug the model effect conveniently; it has strong scalability, and developers can quickly modify or expand new model feature visualization methods; it has strong flexibility, and developers can develop Web applications more flexibly. The code structure is clear and the degree of modularization is high.

[0011] The present invention proposes a method for visualizing the features of a deep learning model based on a Django framework. First, the feature visualization codes of all models are deployed inside the Django framework, and different URL interfaces are set according to different model types to distinguish them. Users select different models on the web side and input information such as model files, pictures, and model layers for specifying feature visualization. Django will perform corresponding operations based on the transmitted information, such as calling the specified model visualization code, performing visualization operations on a specific layer, etc. This method has strong scalability and good flexibility, can be quickly implemented, and is convenient for users to understand the working mechanism of the deep learning model, solving the problems of high threshold, high cost, and safe use of existing visualization methods.

[0012] In order to more clearly illustrate the structural features and effects of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 An overview diagram of a user call to create an embodiment of the present invention.

[0014] Figure 2 This is the internal calling process of the Django framework of the embodiment of the present invention.

[0015] Figure 3 It is a diagram of the interface returned by different model modules of the implementation example of the present invention. DETAILED DESCRIPTION

[0016] The present invention will be further explained below in conjunction with the accompanying drawings and related knowledge, and described clearly and completely. Obviously, the described application is only a part of the embodiments of the present invention, rather than all the embodiments.

[0017] In view of the high threshold for use, high cost, and safety of use of existing visualization methods, the purpose of the present invention is to effectively solve the problem by proposing a deep learning model feature visualization method based on the Django framework. First, the feature visualization code of all models is deployed inside the Django framework, and different URL interfaces are set according to different model types to distinguish them. Secondly, the user selects different models on the web side and inputs information such as model files, pictures, and model layers for specifying feature visualization. Finally, Django will perform corresponding operations based on the transmitted information, such as calling the specified model visualization code, performing visualization operations on a specific layer, etc.

[0018] Reference Figure 1-Figure 3 As shown, the present invention provides a deep learning model feature visualization method based on the Django framework, comprising the following steps: Step S1: In the preprocessing stage, all model feature visualization methods are deployed into the Django framework, including three types of models: classification, detection, and segmentation; Step S2: The customer selects the model type to be visualized through the web page and passes the model weight file, image data, model layer of the specified feature visualization and other information for access call; Step S3: The Django framework selects and calls the corresponding view function module and model module according to the URL and other information selected by the customer to perform the corresponding model feature visualization operation, and the visualization result is returned to the web page in the form of HTML; In the embodiment of the present invention, refer to Figure 1As shown in the figure, the deep learning model feature visualization method based on the Django framework mainly includes the deployment of multi-type model feature visualization code in the preprocessing stage, the configuration of the call URL interface, the configuration of the web interface, the configuration of the model visualization return interface, etc. Specifically, the user opens the browser and enters the specified URL to open the model feature visualization interface. According to the page requirements, one of the classification, detection, and segmentation models is selected for visualization operation, and the model weight file, data, and the specified visualization model feature layer are input at the same time. The model call and result return are completed within the Django framework.

[0019] In the present invention, reference is made to Figure 2 As shown in the figure, the specific call logic diagram inside the Django framework, the specific process is: deploy different types of models including classification, detection and segmentation (can be expanded according to needs) in the Django framework, and configure the specified url interface, the view function corresponding to the url interface, the model module corresponding to the view function, the result parameters accepted by the page, etc. Secondly, after the user passes the data and model file and other parameters into Django through the page, Django will call the url control module to find the corresponding view function module, and the view function module will call the visualization code in the corresponding model module. Finally, the visualized feature graph and network structure graph and other result graphs ( Figure 3 ) is returned to the page in HTML format for viewing.

[0020] The technical principle of the present invention is described above in combination with the specific embodiments, which are only preferred implementations of the present invention. The protection scope of the present invention is not limited to the above embodiments, and all technical solutions under the idea of ​​the present invention belong to the protection scope of the present invention. Those skilled in the art can think of other specific implementations of the present invention without creative work, and these methods will fall within the protection scope of the present invention.

Claims

1. A method for visualizing deep learning model features based on the Django framework, characterized in that: The following steps are involved: Step S1: In the preprocessing stage, all model feature visualization methods are deployed into the Django framework; Step S2: The customer selects the model features to be visualized through the web page and passes the model weight file, image data, and model layer information of the specified feature visualization for access call; Step S3: The Django framework selects and calls the corresponding view function module and model module according to the URL information selected by the customer to perform the corresponding model feature visualization operation.

2. A method for visualizing deep learning model features based on a Django framework as claimed in claim 1, characterized in that: In step S1, the model features include three types of models: classification, detection, and segmentation.

3. A method for visualizing deep learning model features based on a Django framework as claimed in claim 2, characterized in that: In step S3, the visualization result is returned to the web page in HTML format.

4. A method for visualizing deep learning model features based on a Django framework as claimed in claim 3, characterized in that: In step S1, the preprocessing stage also includes the configuration of calling the URL interface, the configuration of the web page interface, and the configuration of the model visualization return interface.

5. A method for visualizing deep learning model features based on a Django framework as claimed in claim 4, characterized in that: In step S3, the specific calling process within the Django framework includes: deploying different types of models including classification, detection and segmentation within the Django framework, and configuring the specified url interface, the view function corresponding to the url interface, the model module corresponding to the view function, and the result parameters accepted by the page; after the user passes the data and model file parameters into Django through the page, Django will call the url control module to find the corresponding view function module, and the view function module will call the visualization code in the corresponding model module; finally, the visualized feature map and network structure map are returned to the page in html form for viewing.