Seeing the Glasses
One perception problem, answered six ways and measured
Several glasses of one kind stand on a table, and the arm has to work out which pixels belong to which glass. This book follows that single question the whole way down: what the camera can and cannot see, why a glass standing behind another is in no picture at all, and six quite different ways to answer it. One is a written rule with nothing fitted to anything, one is a small network trained in this cell from nothing, and four start from weights somebody else fitted to photographs of the everyday world. All six are built, and all six are scored by the same examiner, so the differences between them are measured rather than argued. The programs are in the repository, and each solution names the folder it was built in.
- 01
The Cell Everything Happens In
Every solution in this book works in the same room. It uses the same arm, the same camera and the same table. So does every solution in pushing the glasses apart. This page gives those shared numbers once, so other pages do not…
- 02
The Problem
This page states the task that every solution in this book must solve. It is for any reader, and you should read it before any solution.
- 03
The Examiner
This book solves one problem in six ways. Six answers can only be compared if each one gets the same question and is marked the same way. The examiner is the program that does both. It works in four steps. It arranges glasses on…
- 04
The Six Solutions
This book asks for one record per glass. A record says which pixels are that glass and where it stands on the table. What is asked for states the question in full. This chapter answers it in six different ways. No one of the six…
- 05
Solution 1: Rules on the Table
This chapter is about the one answer to the problem this book sets that uses no model. It fits nothing. It states a rule that a person can read, and it applies that rule. It is for a reader who has read the shared setup pages and…
- 06
Solution 2: A Network Trained From Scratch
This chapter is for a reader who has read the cell and the problem. The cell is described there, so these pages cover only this solution.
- 07
Solution 3: A Borrowed Model, as It Downloads
This solution answers what this book asks for by downloading a model and running it. It collects no labels and trains nothing.
- 08
Solution 4: The Same Model, Fine-Tuned
This chapter answers what this book asks for in a common way. It takes a model that was trained somewhere else, and trains it further on pictures of this cell. This is called fine-tuning. It is the usual way to use a borrowed…
- 09
Solution 5: A Foundation Model With a Keeper
This chapter is for a reader who has read the shared pages on the cell, the problem and the examiner. It describes solution 5. This solution does the job this book sets out with almost nothing trained in this cell.
- 10
Solution 6: A Transformer Segmenter, Fine-Tuned
This is the sixth of the six solutions in this book. It uses the newest design of the six. It takes a transformer segmenter, RF-DETR-Seg, and trains it further on this cell's pictures.
- 11
The Results
This page is the scoreboard for the six solutions in this book. It answers one question. With the same pictures and the same marking, how many glasses did each method find, and how good were its masks? It is for a reader who has…
- 12
How a Mask Becomes a Record
Every solution in this book returns masks. A mask is the set of pixels that belong to one glass. But every scorecard reports places and widths. This page explains the step in between. It is the arithmetic the examiner uses to…