imágenes y las paso por un algoritmo de clasificación. Deep learning Paso la imagen directamente por un algoritmo de clasificación más complejo. 9 Modelo Estadístico
en los 80. Utilización de convoluciones en estas redes (Yann LeCun, 1989), para crear redes neuronales convolucionales. 10 Lector de dígitos en cheques. LeNet-5, Yann LeCun, 1998.
de activaciones. Visión por Computadora La operación Convolución 12 Source: https://github.com/vdumoulin/conv_arithmetic Uso más filtros para detectar patrones sobre los mapas de activación (patrones sobre patrones sobre patrones…).
→ Se aprenden mirando muchas imágenes. Son pesos comunes de una red (usando backpropagation). ¿Cuántos filtros tengo que usar por capa? → Hiperparámetro de la red (probar varios números y ver qué funciona mejor). 16 Source: https://cs231n.github.io/understanding-cnn/
# Create tfrecords for optimizing data consumption. $ lumi train --config pascal-fasterrcnn.yml # Hours of training... $ tensorboard --logdir jobs/ # On another GPU/Machine/CPU. $ lumi eval --config pascal-fasterrcnn.yml # Checks for new checkpoints and writes logs. # Finally. $ lumi server web --config pascal-fasterrcnn.yml # Looks for checkpoint and loads it into a simple frontend/json API server. Ciclo de uso de Luminoth 23 Luminoth
--help Usage: lumi [OPTIONS] COMMAND [ARGS]... Options: -h, --help Show this message and exit. Commands: checkpoint Groups of commands to manage checkpoints cloud Groups of commands to train models in the cloud dataset Groups of commands to manage datasets eval Evaluate trained (or training) models predict Obtain a model's predictions server Groups of commands to serve models train Train models
[...] Validation and retrieve `image` from POST data. # Perform the object detection (using Luminoth). objects = detect_objects(image) # [...] Generate a unique ID and store to disk. # Prepare the document and index to Elasticsearch. doc = { 'image_name': filename, 'image_id': image_id, 'objects': objects, } store_doc(doc) # Return the detected objects. return jsonify(doc) 27 https://github.com/nagitsu/imsearch/blob/master/api/api/app.py#L37 @app.route('/search/', methods=['POST']) def search_images(): # [...] Validation and retrieve `image` from POST data. s = search() qs = [] if 'term' in query: qs.append(Q('match', objects__label=query['term'])) # [...] Rest of the query building. if qs: s = s.filter( 'nested', path='objects', query=Q('bool', must=qs) ) s = s[offset:offset + limit] raw_hits = s.execute() hits = [hit.to_dict() for hit in raw_hits] return jsonify(result=hits, count=raw_hits.hits.total) https://github.com/nagitsu/imsearch/blob/master/api/api/app.py#L84