cntk-hotel-pictures-classificator | using CNTK 2.1 to train model | Computer Vision library

 by   karolzak Python Version: Current License: MIT

kandi X-RAY | cntk-hotel-pictures-classificator Summary

kandi X-RAY | cntk-hotel-pictures-classificator Summary

cntk-hotel-pictures-classificator is a Python library typically used in Travel, Transportation, Hotels, Artificial Intelligence, Computer Vision, Deep Learning, Pytorch, Tensorflow applications. cntk-hotel-pictures-classificator has no vulnerabilities, it has a Permissive License and it has low support. However cntk-hotel-pictures-classificator has 6 bugs and it build file is not available. You can download it from GitHub.

This POC is using CNTK 2.1 to train model for multiclass classification of images. Our model is able to recognize specific objects (i.e. toilet, tap, sink, bed, lamp, pillow) connected with picture types we are looking for. It plays a big role in a process which will be used to classify pictures from different hotels and determine whether it's a picture of bathroom, bedroom, hotel front, swimming pool, bar, etc. That final classification will be made based on objects that were detected in those pictures.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              cntk-hotel-pictures-classificator has a low active ecosystem.
              It has 33 star(s) with 22 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 7 open issues and 3 have been closed. On average issues are closed in 4 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of cntk-hotel-pictures-classificator is current.

            kandi-Quality Quality

              cntk-hotel-pictures-classificator has 6 bugs (0 blocker, 0 critical, 6 major, 0 minor) and 274 code smells.

            kandi-Security Security

              cntk-hotel-pictures-classificator has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              cntk-hotel-pictures-classificator code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              cntk-hotel-pictures-classificator is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              cntk-hotel-pictures-classificator releases are not available. You will need to build from source code and install.
              cntk-hotel-pictures-classificator has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              cntk-hotel-pictures-classificator saves you 1477 person hours of effort in developing the same functionality from scratch.
              It has 3295 lines of code, 206 functions and 29 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed cntk-hotel-pictures-classificator and discovered the below as its top functions. This is intended to give you an instant insight into cntk-hotel-pictures-classificator implemented functionality, and help decide if they suit your requirements.
            • Calculate the prediction for the given bottom box
            • Compute the target sizes
            • Unmap data
            • Train the FASNN alternative model
            • Compute rpn_proto_probs
            • Clone a model
            • Clone the convolution layer
            • Calculate the predictions based on the input arguments
            • Compute nms of dets
            • Set global variables
            • Forward computation
            • Evaluate a faster RNN model
            • Evaluate the model and plot the results
            • Calls the cv2 event handler
            • Set up the layers
            • Generate anchors
            • Train a FasterRNN prediction model
            • Download the dataset
            • Download a model by name
            • Read image from file
            • Generate list of anchors
            • Draw text using cv2
            • Compute the overlap between this bounding box
            • Crop a list of bounding boxes
            • Return the width of the draw text
            • Create mappings
            • Set up the layer
            Get all kandi verified functions for this library.

            cntk-hotel-pictures-classificator Key Features

            No Key Features are available at this moment for cntk-hotel-pictures-classificator.

            cntk-hotel-pictures-classificator Examples and Code Snippets

            No Code Snippets are available at this moment for cntk-hotel-pictures-classificator.

            Community Discussions

            Trending Discussions on cntk-hotel-pictures-classificator

            QUESTION

            CNTK on Data Science VM (FasterRCNN): ImportError: No module called 'utils.rpn'
            Asked 2018-Feb-03 at 22:26

            I have just set up a new Data Science Virtual Machine on Azure. I wanted to run a script FasterRCNN.py from https://github.com/karolzak/CNTK-Hotel-pictures-classificator but received an error:

            from utils.rpn.rpn_helpers import create_rpn, create_proposal_target_layer

            ImportError: No module named 'utils.rpn'

            The environment I am running the script on has Python 3.4 and CNTK 2.1 installed.

            I tried to add a Detection or Detection/utils directories (by editing ~./bashrc) to PYTHONPATH:

            export PYTHONPATH="$PYTHONPATH:/home/username/CNTK-Hotel-pictures-classificator/Detection"

            as described in https://github.com/Microsoft/CNTK/issues/2705 but the error persists.

            Update: Screenshot

            ...

            ANSWER

            Answered 2018-Feb-03 at 22:26

            If anyone is struggling: the solution to that problem is creating an empty __init__.py file in utils directory.

            Source https://stackoverflow.com/questions/48428669

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install cntk-hotel-pictures-classificator

            Download content of this repo You can either clone this repo or just download it and unzip to some folder
            Setup Python environment In order for scripts to work you should have a proper Python environment. If you don't already have it setup then you should follow one of the online tutorials. To setup Python environment and all the dependencies required by CNTK on my local Windows machine, I used scripted setup tutorial for Windows. If you're using Linux then you might want to look into one of these tutorials. Just bear in mind that this project was developed and tested with CNTK 2.1 and it wasn't tested for any other version. Even after setting up Python environment properly you might still witness some errors when running Python scripts. Most of those errors are related to missing modules or some 3rd party frameworks and tools (i.e. GraphViz). Missing modules can be easily pip installed and most of the required ones can be found in requirements.txt files for each folder with Python scripts. Please report if you'll find any errors or missing modules, thanks!
            Download hotel pictures dataset (HotailorPOC2) and pretrained AlexNet model used for Transfer Learning Go to Detection/FasterRCNN folder in the location were you unzipped this repo and run install_data_and_model.py. It will automatically download the HotailorPOC2 dataset, pretrained AlexNet model and will generate mapping files required to train the model.
            Follow steps number 1 and 2 from setup instructions.
            In order to train the model we use transfer learning and we need to have a pretrained model for that. For this sample we use AlexNet model.
            Make sure to change variables in your config.py file and make sure you set __C.CNTK.MAP_FILE_PATH variable to a proper directory: if __C.CNTK.DATASET == "HotailorPOC2": #name of your dataset. Must match the name set with property '__C.CNTK.DATASET' __C.CNTK.MAP_FILE_PATH = "../../DataSets/HotailorPOC2" # your dataset directory __C.CNTK.NUM_TRAIN_IMAGES = 82 # number of images in 'positive' folder __C.CNTK.NUM_TEST_IMAGES = 20 # number of images in 'testImages' folder __C.CNTK.PROPOSAL_LAYER_PARAMS = "'feat_stride': 16\n'scales':\n - 4 \n - 8 \n - 12"
            Open install_data_and_model.py script and comment out those lines: #downloads hotel pictures classificator dataset (HotailorPOC2) #comment out lines bellow if you're using a custom dataset sys.path.append(os.path.join(base_folder, "..", "..", "DataSets", "HotailorPOC2")) from download_HotailorPOC2_dataset import download_dataset download_dataset()
            Run install_data_and_model.py script. Bear in mind that downloading the pretrained model may take few minutes or even more depending on your internet connection.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/karolzak/cntk-hotel-pictures-classificator.git

          • CLI

            gh repo clone karolzak/cntk-hotel-pictures-classificator

          • sshUrl

            git@github.com:karolzak/cntk-hotel-pictures-classificator.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link