"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;

June 23, 2022

Retail & Vision - 2.0 Learning

Interesting paper and discussions link

Session #1 - AI for Retail Problems

  • AI in retail

  • Same product with variations

  • Leverage a combination of techniques



  • Approach to learn


Session - #2 - Vision for Fashion

  • Customizing existing designs to make it better

  • Fashion++ alter the design

  • Training based on 
  • Classifier for fashion estimation
  • Suggesting changes


Paper - C O M P U T E R V I S I O N A N D D E E P L E A R N I N G F O R R E TA I L S T O R E

M A N A G E M E N T

  • Automatic recognition of items on store shelves and obtaining a reliable 3D reconstruction of an environment for navigation purpose
  • Planogram - This arrangement is carefully planned to maximize sales and keep customers happy, currently, however, verifying compliance of real shelves


  • Planogram as a grid-like fully connected graph
  • Planogram compliance issue related to the checked node is reported (i.e., missing/misplaced item).
  • Camera would locally run only model relevant for the Aisle
  • Given a shelf image, we perform first a class-agnostic object detection to extract region proposals enclosing the individual product items

  • we propose to deploy an image-to-image translation GAN together with the embedding CNN and to optimize the whole architecture end-to-end

More Reads

Keep Exploring!!!

June 22, 2022

Good Read - What we learned in studying the most effective founders

A very good inspiring read - What we learned in studying the most effective founders

Crux is "manage the work, and make time to stay ahead of their industry"

  • Treat people like volunteers - Pick things based on priority / issues / challenges, Not to be managed but enable them to pick
  • Protect the team from distractions - Focus on key things
  • Minimize unnecessary micromanagement - Focus on deliverable not on timely reports
  • Invite disagreement - Get to hear all concerns, relook and sort out differences than letting it boil

Things to Practice from the list

  • Described the impact of the work to the team
  • Intellectual challenge / passion / financial wallet
  • Communicate carefully, and check if employees understand correctly
  • Post-mortem discussion or a note of gratitude to collaborators
  • Autonomy and trusting the team to pull you in as necessary
  • Collaboration required is high
  • Set the destination, but have them lay out the path
  • We need to achieve these 5 things this week/month/quarter. Figure out what sequence makes sense
  • Have honest, no-ego conversations
  • Interview Confidence ≠ competence

Keep Thinking!!!!


June 21, 2022

AI - Ethics / Trivialize Efforts

Being unbiased and taking the neutral stand vs trivialize things.


Ref - Link



Keep Thinking!!!

ML beyond Models - MLOps

Good Read, Helped me spot the gaps / Already things I know :)

Good Read - Reproducible Deep Learning

  • Code Versioning (GIT)
  • Data Versioning (DVC)
  • Model Dockerization / Deployment
Codes / Examples

Most of this flow is applicable for any existing software dev process :)




Ref - Link

Keep Checking!!!

Good Reads - Learning List

Keep Exploring!!!



June 17, 2022

Inflation / Rising Expenses / Future of Swiggy / Zomato / Luxury Apps / ola / uber

  • 95% of the population will prefer to commute in metro, 5% would be using ola / uber with rising expenses
  • Swiggy / Zomato with rising expense would end up limited to metros / elite / upper middle class
  • For the middle class it would be same affordable Dabbawala, Collect, Sort, Deliver
  • Down the line we might use ola / uber / swiggy / zomato only for festivals / emergency, They are becoming more expensive day by day 
  • Educated graduates who work as delivery boys are losing their skills/education. Bringing up / educating the next generation to be more skilled needs more focused innovative/quality education
With rising costs, reduced usage, customer churn, and zero offers, markets are shrinking. How many will innovate/perform/perish will get to know in another 12 months :)

Tons of things to distract, Being a focused, clear-cut mindset needs constant focus, thinking, and repeated efforts.

Keep Thinking!!!

You are your 'brand'

  • You have to train your mind like a mental athlete
  • Cold-blooded killer of ideas / solutions / practice / learn
  • Be clear about skills to learn / code/skills to be aware of
  • Work ethic is more important, Genuine to support. You are your 'brand'
  • Domain / Ideas / Constant learning is the key. 'No' is a part of the journey with wins/failures
  • I don't connect for need / Get work done, When we work for a while it becomes natural to connect but connecting to get work done is not my way of work :)

Pause / Break / Relook / Unlearn / Relearn 

Keep Going!!!

June 15, 2022

Learning / Selling / Coding

Consulting has multiple hats. Some of the experiences summarizing below :)

  • You are with ok with hearing a 'No'
  • Source ideas/inspirations from domain/products / what really happing in this space/domain
  • Read papers to find connecting dots of learning :)
  • Start selling those ideas, Building MVP / Production grade implementation
Getting all three is a challenge - Productive, Gratified, and Satisfied :)

Keep Thinking!!!

June 14, 2022

AI In Beauty / Cosmetics - Sephora Case Study





Key Innovations
  • Assisted Self-Service Model
  • Digital Adoption
  • Beauty Advisor
  • Product Placement / Isles
  • Exclusive private labels
  • Insider programs
Keep Exploring!!!

June 13, 2022

Project Analysis - Color Transfer / GAN

Project Analysis - Color Transfer

Git ref - Link

  • XYZ to CIE-LAB color space conversion
  • skimage.color.rgb2lab(rgb[, illuminant, …])
  • Conversion from the sRGB color space (IEC 61966-2-1:1999) to the CIE Lab colorspace under the given illuminant and observer.


Project #2 - deep koalarization

Paper  - link

Key Notes

  • High-level feature extraction using a pre-trained model (Inception-ResNetv2) to enhance the coloring process.

  • Fusion The fusion layer takes the feature vector from Inception, replicates it HW/8*8 times and attaches it to the feature volume outputted by the encoder along the depth axis

More Reads

Color Spaces

Paper - Colorization Using ConvNet and GAN

  • Colorization is a popular image-to-image translation problem
  • We implemented two models for the task: ConvNet and conditional-GAN and found that GAN can generate better results both quantitatively and qualitatively
  • ConvNet and GAN. Both models are design to take either grayscale or edge-only images and produce color (RGB) images.

Types of GAN

Attgan

More Reads

Controlling Colors of GAN-Generated and Real Images via Color Histograms

Keep Exploring!!!

Data Science Hiring Questions

Real skills vs Interview skills vs Execution skills vs Communication skills everything decides the culture and working environment. Innovate with creativity or burnout with constant pressure.

Keep Exploring!!!

Manager / Mentor / Guide

The daily tasks of a mentor/manager/architect are - how you unblock your Team, the Quality of ideas, and the ability to foresee risks before it actually happens.

Knowledge management as a mentor has a lot of learning curve both ongoing, past lessons

  • Read / Learn to collect ideas
  • Learn to unblock when your Team is Struck
  • Learn to understand trends/markets/offerings
  • Code and share working solutions :)
  • Do not just forward links but read, code, try and share

There is no work-life balance. After 20 years still ideas, and inspirations come after work, driving, and sleeping :)

Like in FightClub "You are never really asleep, You are never really awake, feels like insomnia"

Keep Thinking!!!

Performance of Windows10

  • Optimize disable hardware acceleration in browser/teams
  • Disable unused services RTX voice, Use only when environment noisy
  • Keep updated drivers 
  • Keep the Laptop well ventilated
  • Avoid extensions if they heat up

We pay so much money, Running browser, teams, ppt, and outlook system sounds like a fire engine :( crazy software, Reflects there is no sync up for hardware and software. Make customers buy new laptops every few months.

Keep Checking!!!

June 12, 2022

Men's Hair Styles Approach

Paper #1 - Real-time deep hair matting on mobile devices

Key Notes

  • Hand-crafted features for segmentation.
  • Employ simple pixel-wise color models to classify hair.
  • Fully Convolutional MobileNet Architecture for Hair Segmentation

  • HairSegNet
  • Pre-trained weights on ImageNet, we dilate all the kernels for the layers with updated resolution by their scale factor
  • Upsampling is performed by a simplified version of an inverted MobileNet architecture
  • a loss function that promotes perceptually accurate matting output

  • HairMatteNet runs twice as fast compared to HairSegNet

Paper #2 - Intuitive, Interactive Beard and Hair Synthesis with Generative Models

Key notes

  • Edge detection or image gradients would be an intuitive approach
  • Generative adversarial networks (GANs)
  • Two-stage pipeline
  • First stage focuses on synthesizing realistic facial hair
  • Texture synthesis techniques
  • pixel-based methods
  • stitching-based methods

Generative adversarial networks (GANs) [26] has inspired a large body of high-quality image synthesis and editing approaches

Two Stage Network

  • The first stage synthesizes the hair in this region.
  • The second stage refines and composites the synthesized hair into the input image.

Close-up images of high-resolution complex structures fail to capture all the complexity of the hair structure, limiting the plausibility of the synthesized images

StyleGAN

Paper - Link

  • Generator embeds the input latent code into an intermediate latent space

Deep Convolutional Generative Adversarial Network 

  • During training, the generator progressively becomes better at creating images that look real, while the discriminator becomes better at telling them apart. 
  • The process reaches equilibrium when the discriminator can no longer distinguish real images from fakes.
  • Both the generator and discriminator are defined using the Keras Sequential API.

How to code a Generative Adversarial Network (GAN) in Python

Paper #3 - PROGRESSIVE GROWING OF GANS FOR IMPROVED QUALITY, STABILITY, AND VARIATION

  • Our primary contribution is a training methodology for GANs where we start with low-resolution images, and then progressively increase the resolution by adding layers to the networks
  • When training the discriminator, we feed in real images that are downscaled to match the current resolution of the network


  • MULTI-SCALE STATISTICAL SIMILARITY FOR ASSESSING GAN RESULTS
  • Intuitively a small Wasserstein distance indicates that the distribution of the patches is similar

Paper #4 - Training Language GANs from Scratch

ScratchGAN code 

  • Generator architecture and reward structure
  • Large Batch Sizes for Variance Reduction
  • Unlike image GANs, ScratchGAN learns an explicit model of data

Paper #5 - A review of Generative Adversarial Networks (GANs) and its applications in a wide variety of disciplines - From Medical to Remote Sensing








CelebHair: A New Large-Scale Dataset for Hairstyle Recommendation based on CelebA

More Reads

Keep Thinking!!!

What does it take to build a good enough CNN model ?

This question came up during class. There is no direct answer. It depends on domain / data / use case / number of classes. Guidelines of recommendations are

  • Number of Layers of convolution, Experiment with VGG16 / 19 to get started
  • Balacing imbalanced datasets
  • Depth of Layers - 32/ 64/ 256 as needed
  • Relu, Experiment, Customize on activation functions
  • Adjusting learning rates / Loss functions
  • Early Stopping / Dropouts for regularization
  • Domain Relevant Augmentation
  • Transfer Learning Approach
Keep Thinking!!!



Ideation - Techniques

What does it take to build a production grade working product ? 

Clarity of business impact of idea



Competitive products in the market to draw the source of market/landscape/potential


Research papers to understand basics of implementation. Collect all possible ideas / Strategies


Take all the tools of the idea, Have the clarity to translate vision to working tech with steps/models/data/approach, Bridging between great vision vs transparent planning and predictable execution


Consistency in vision, execution, innovating every problem with your experience, and open to accept failures and relearn as needed. You will build the learning path that best works for you. Skill/consistency is long-term. It goes beyond copy-paste/certifications.

Keep Thinking!!!





CDP - PDP - DDP - RDP - FDP - HDP

All the data in silos vs having something relevant, anonymized, and useful like a knowledge repository (Not for Profit)

  • CustomerDataPlatform  
  • DiseasesDataPlatform 
  • PatientDataPlatform 
  • FinancialDataPlatform
  • EducationDataPlatform
  • MentalHealthDataPlatform

Helping each other in sharing their experiences, Not for profit but for benefit of humanity.

Bridging the 2/3rd world while the 1/3rd goes ahead with Adoption, AI, and Better lifestyles.

Keep Thinking

June 10, 2022

Building products

Every product that we use in AI / ML work seems to be built by a core set of a small number of focused Teams.

  • Streamlit - 21 Employees
  • BentoML - 8 Employees
  • DagsHub - 13 Employees
  • MLFlow - < 10 Employees

We need a focused team of passionate people. Employee count is just a number. Focus, Focus, Focus, Consistency, and Persistence. 

Keep Thinking!!!

June 09, 2022

Decode Content Engagement across apps / Alive and productive or Alive and Unhappy

Across different platforms / Apps, How the traps are set for Content engagement and amplification. How do you draw the line between #healthy consumption vs #dangerous consumption?

Youtube

  • The subscribe option that shows up regular daily videos
  • Updates to your favorites - Paranormal, travel vlogs, stocks, etc..
  • This easily takes up time before sleep (Adds to your menu list with constant follow up / curiosity)
  • Walking time is almost gone
  • Recommendations of video list to keep you scrolling

Swiggy

  • The notification / offers trap
  • Beautiful recipe pictures
  • Add more to the menu and get a 30% discount with X value order
  • Always this comes in mind, Even if you don't cook you can swiggy it anytime food delivered 
  • 50 rs if I walk for 5 mins, 300 rs for ordering from smartphone :), One-click at cost :)

Twitter

  • Search by trending tags and keep hearing opinions
  • Look for opinions similar to your beliefs
  • After a TV show lookup for trending topics to engage more in content

TV

  • Debate shows / Talk shows / comedy shows / Expedition X
  • People know the type of content/type of engagement
  • Although unverified but content that excites with uncertainty
  • Breaking news of constant repetition and sensation

Work (Some useful work)

  • Read papers / Experiment code
  • Look for solutions/references
  • 30% is useful, 70% is a useless Internet content

Whatsapp / Telegram

  • Groups / messages / discussions
  • Status in WhatsApp to know things around us
  • Constant forwards / motivation / count of unread messages / groups
  • Marketing forwards / calls from marketing/loans offers / Numbers that get shared with data registered in the apps

"Many time blocks of the day were used only for work before social media now take up smartphones". Everything consumes time. 

What we forget

  • Reminder I waste time and I age losing my precious time and thoughts, How slowly we change our routine based on the content we consume, gradual increase in content consumption with the personalized recommendations
  • A reminder this content is for attention and not really true always
  • The food in the picture is good for taste but bad for the heart
  • Everybody cannot afford to travel, focus on work
  • Don't live or long for Life that you don't have
  • Internet is a garbage yard, the more you travel without a plan the more you end up with trash
  • Eye problems, sedentary lifestyle everything will be an issue
  • Swiggy food looks good in pictures, and discounts but in quality often consuming it what about cholesterol?
  • Die early, get more health issues, feel emotionally low
  • Every age group kids/teens/adults / aged everyone has similar to their preferences and choices of apps for engagement, The changes come in all segments. How much we use for learning vs entertainment? How much do we get often distracted?
  • The small amounts of loss of focus how impact cascades into habits and loss of productivity

We have slow poison pills everywhere around us. Alive and feeling unhappy vs #alive and #focused vs alive and #purposeful. We need to set boundaries in our usage/consumption and be consciously aware of purpose/usage, or else we will end up as busy and unproductive.

Good read - Link

  • Fake news. Misinformation. Mental health crises. Election meddling. Extremism. Partisanship. Eating Disorders. Body Dysmorphia. Vulnerability porn.
  • Parasocial relationships4 where a single person can make thousands (or more) feel as though they are interacting on a personal, one-on-one level.
  • #Socialmedia companies hire #programmers and #datascientists to operate “engaging user interfaces” that strip mine your attention.
  • "...you’re not the customer, you’re the product."

Keep Thinking!!!

June 06, 2022

Read - Write - Experiment - Unlearn - Relearn

Over a point in time, once we collect/analyze trends/patterns we will have our perceptions of how things are shaping up

  • Customer data patterns
  • Product adoption vs predictions
  • Gartner hype vs Reality

Bring it down to 300 feet when solving day to day vision, forecasting, recommendations, and data problems

  • Alternatives
  • Algos / Data challenges
  • Vision options models / custom training / alternative approaches
The mind always keeps things looking out 

  • Running thoughts of options / references / ideas
  • Experimenting with codes and evaluating pros/cons
  • Planning for next steps / next aspects of product building
  • Agile / Calculated risks / /Proactive to spot failures
  • Plan for the team, Don't miss anything to waste team efforts
  • Learn and upskill self, to guide / proactively spot red flags
  • Use experience to apply and identify risks
  • Being productive not just busy needs a running set of ideas/thoughts
  • Reduce the gaps between Great planning vs Poor Execution
The mind always keeps on what next to anticipate, and prepare for .....

Keep Going!!!




June 05, 2022

My observations from - How different companies ship code to production

Microsoft days 

  • Way back 14 years ago
  • Automated build
  • CI / CD
  • DEV - Test - Support - Prod
  • Environment for each function
  • Bugs / Triage 
  • Only Stable code will goto prod :)
  • Bug bashing, Support bashing...
  • Comes next to Amazon but has tighter QA
  • Phased / frequent releases
  • Expensive rollbacks so had tighter QA

Amazon days

  • Saas world / 10 years ago itself
  • Everything as service
  • One click deployment
  • Ton of A/B testing/experiments
  • Weblabs / weblabs / Test ton of features same time
  • The best of several teams working together
  • One-click rollback too so was easier to revert back
  • Weekly deployments

Sensormatic

  • Like windows service packs 
  • Once every 6 months
  • Pure offline mode installation
  • Hardware + Software combo
  • Customization / Customer specific feature
  • Bit far compared to Amazon / Microsoft practices

Consulting

  • CI / CD
  • Up to date with the latest tools in the market :)
  • Containerized / dockerized / deployed in cloud
  • Fast / Fast / Fast. 6 to 8 weeks
  • Closer to startup type culture :)

The quality bar is relative to maturity of product, number of active customers, Complexity of implementation, expectations from beta product vs production system

More reads - Link

Keep Thinking!!!

June 01, 2022

Learning from code reviews

An interesting read from link

My favorite list

Perspective #1 - You don’t need hundreds of engineers to build a great product

[Siva] - Have a set of ideas, experiment, fail, learn, unlearn, relearn, and Build a vision of the product not under the pressure of timelines

Perspective #2 - Simple Outperformed Smart

[Siva] - Start to crawl before you learn to run

Perspective #3 - Our highest impact findings would always come within the first and last few hours of the audit.

[Siva] - Functionality, Scalability, Performance matters

Perspective #4 - Business logic flaws were rare, but when we found one they tended to be epically bad

[Siva] - Product is a for customer need not for experimenting technology. Build what is needed for the customer, provide the customer experience

Perspective #5 - Quick turnarounds on fixing vulnerabilities are usually correlated with general engineering operational excellence.

[Siva] - Quality ideas come from the domain, data, and functional understanding. Think from the long term no near term fixes

Good Read - Link

  • How does the number of reported defects in source code files correlate to source code quality?
  • How much longer development time is needed to resolve an issue in files with low-quality source code?
  • To what extent is the code quality of a file related to the predictability of resolving issues on time?

Keep Thinking!!!