Author: torontoai
[D] about VAE
Let’s say I have a pretrained VAE, If I always decode the mean vector instead of sampling from N(mean,std^2), does it mean the VAE turned into a regular deterministic AE?
submitted by /u/DeMorrr
[link] [comments]
[P] Tensorflow deployment
Hi, I gather different methods how to deploy Tensorflow model to cater different processing, https://github.com/huseinzol05/Gather-Deployment
1 . Object Detection. Flask SocketIO + WebRTC
- Stream from webcam using WebRTC -> Flask SocketIO to detect objects -> WebRTC -> Website.
2 . Object Detection. Flask SocketIO + opencv
- Stream from OpenCV -> Flask SocketIO to detect objects -> OpenCV.
3 . Speech streaming. Flask SocketIO
- Stream speech from microphone -> Flask SocketIO to do realtime speech recognition.
4 . Text classification. Flask + Gunicorn
- Serve Tensorflow text model using Flask multiworker + Gunicorn.
5 . Image classification. TF Serving
- Serve image classification model using TF Serving.
6 . Image Classification using Inception. Flask SocketIO
- Stream image using SocketIO -> Flask SocketIO to classify.
7 . Object Detection. Flask + opencv
- Webcam -> Opencv -> Flask -> web dashboard.
8 . Face-detection using MTCNN. Flask SocketIO + opencv
- Stream from OpenCV -> Flask SocketIO to detect faces -> OpenCV.
9 . Face-detection using MTCNN. opencv
- Webcam -> Opencv.
10 . Image classification using Inception. Flask + Docker
- Serve Tensorflow image model using Flask multiworker + Gunicorn on Docker container.
11 . Image classification using Inception. Flask + EC2 Docker Swarm + Nginx load balancer
- Serve inception on multiple AWS EC2, scale using Docker Swarm, balancing using Nginx.
12 . Text classification. Hadoop streaming MapReduce
- Batch processing to classify texts using Tensorflow text model on Hadoop MapReduce.
13 . Text classification. Kafka
- Stream text to Kafka producer and classify using Kafka consumer.
14 . Text classification. Distributed TF using Flask + Gunicorn + Eventlet
- Serve text model on multiple machines using Distributed TF + Flask + Gunicorn + Eventlet. Means that, Distributed TF will split a single neural network model to multiple machines to do feed-forward.
15 . Text classification. Tornado + Gunicorn
- Serve Tensorflow text model using Tornado + Gunicorn.
16 . Text classification. Flask + Celery + Hadoop
- Submit large texts using Flask, signal queue celery job to process using Hadoop, delay Hadoop MapReduce.
17 . Text classification. Luigi scheduler + Hadoop
- Submit large texts on Luigi scheduler, run Hadoop inside Luigi, event based Hadoop MapReduce.
18 . Text classification. Luigi scheduler + Distributed Celery
- Submit large texts on Luigi scheduler, run Hadoop inside Luigi, delay processing.
19 . Text classification. Airflow scheduler + elasticsearch + Flask
- Scheduling based processing using Airflow, store inside elasticsearch, serve it using Flask.
20 . Text classification. Apache Kafka + Apache Storm
- Stream from twitter -> Kafka Producer -> Apache Storm, to do distributed minibatch realtime processing.
21 . Text classification. Dask
- Batch processing to classify texts using Tensorflow text model on Dask.
22 . Text classification. Pyspark
- Batch processing to classify texts using Tensorflow text model on Pyspark.
23 . Text classification. Pyspark streaming + Kafka
- Stream texts to Kafka Producer -> Pyspark Streaming, to do minibatch realtime processing.
24 . Text classification. PyFlink
- Batch processing to classify texts using Tensorflow text model on Flink batch processing.
25 . Text classification. Streamz + Dask + Kafka
- Stream texts to Kafka Producer -> Streamz -> Dask, to do minibatch realtime processing.
Discussion
- I am waiting for official binary released flink 1.10, support custom Python function, right now stable released 1.9 cannot.
- Just realized, I missed FastAPI, will going to add later.
- Kubeflow required at least minikube, maybe will add later.
- Will add imagezmq -> nginx load balancer -> process multiple video sources on multiple machines, display on single machine.
Feel free to comment!
submitted by /u/huseinzol05
[link] [comments]
[D] 2019’s Top Machine Learning Articles
The best written and video content from the year in machine learning
https://heartbeat.fritz.ai/2019s-top-machine-learning-articles-49082b4ca946
submitted by /u/mwitiderrick
[link] [comments]
[D] Why use GAN if we have Real NVP?
It seems to me that Real NVP is better than GAN in many aspects (exact log-likelihood computation, exact sampling, exact inference of latent variables), according to
https://arxiv.org/abs/1605.08803
Plus, one doesn’t need a discriminator. So what’s the problem with Real NVP then? What GAN can do that Real NVP can’t?
submitted by /u/lastmanmoaning
[link] [comments]
[P] Reinforcement Learning: The Markov Decision Process
Understanding the Markov Decision Process https://medium.com/ai%C2%B3-theory-practice-business/reinforcement-learning-part-3-the-markov-decision-process-9f5066e073a2
submitted by /u/cdossman
[link] [comments]
[D] Techniques to encourage feature diversity?
In my (convolutional) neural network, there are some activation maps that behave/look almost exactly like each other (i.e. high activations in response to the same visual pattern), which is undesirable behavior for my current project. What are some techniques one can use to encourage the diversity of features extracted by a neural network?
submitted by /u/seann999
[link] [comments]
[P] MusicGAN
Hey guys!
I just submitted MusicGAN to the #TFWorld hackathon and thought I’d post my results! A link to a video demo can be found in the repo. MusicGAN is just the catchy name I gave the project. I essentially implemented the architecture described in WaveGAN with WGAN-GP using Tensorflow 2. I had actually tried to create an LSTM with minature WaveGANs to create audio of any duration, however, I was unable to get it to work well enough before the submission deadline. I am currently looking at creating sounds with different instruments, and will then return to my attempt at the recurrent version.
Harry
submitted by /u/HStuart18
[link] [comments]
[D] Why do disentangling methods not result in independent dimensions of the learned representation?
By disentangling methods I mean methods under the VAE framework such as factor-VAE and beta-TCVAE which explicitly regularize the total correlation of the aggregate posterior q(z) approx 1/N sum_n q(z | x_n).
Locatello et. al. in their large-scale study of disentanglement methods (1) show empirical evidence to demonstrate that the dimensions of the mean representation of q(z|x) (usually used for representation) are correlated, but it seems that the dimensions of the mean representation by definition are independent if we use a factorial distribution to represent the posterior such as a diagonal-covariance Gaussian. Also, averaging this representation over the data distribution should also be factorial if we assume that the aggregate posterior q(z) is factorial (proof in 2), so I think the claim in 1 is wrong.
submitted by /u/Tonic_Section
[link] [comments]