Installing Imamich on a NAS instead of Google Photos, with Chinese image search models first

My wife wanted to find the sunset photos taken by the sea last year, remembering those few shots of the kid running on the beach. Feiniu spent the whole night flipping through the album, sorting through each box by month, until it was dizzying and couldn't find everything—it could only browse by time, not by content. I remembered that Immich I installed in mid-September, I tried playing with it as a second backup. This time, I just fixed it and fed it over 40,000 old photos. After a month, searching for 'sunset by the sea' really managed to pull out those few cards, and I fell into four pitfalls, each one talking about one by one.
First, figure out what it does: your own "Google Photos."
Immich is open-source software, free to use. Its interface and gameplay are copied from Google Photos: timeline, year or today, map footprints, face grouping, and search by content. Google Photos can't be used domestically, and the NAS at home is just missing the "search by content" feature—Synology Photos and Feiniu Album still can't be used on my firmware version.
Immich made up for it. It has a machine learning model underneath that indexes the content of each photo. You enter "seaside," "cat," or "hotpot" in the search box, and it lists all the matching photos. The cost is obvious: it's much heavier than the official album. The official app is for sending and viewing photos. Under Immich run four containers—server body, machine learning, database, cache, and four employees each managing their own tasks. If you're not familiar with Docker images and containers, first read my article Docker in plain language, otherwise every step will be confusing.
The
most attractive step during installation: the external library, with 40,000 photos per set without needing to recopy
The setup is not complicated. Feiniu doesn't have it in the app store; just use Docker: Pull down the official docker-compose file, start four containers together, and have only one port 2283 externally. Clicking http://192.168.31.10:2283 browser to enter the web page, the first registered account is the administrator. What exactly does port mapping actually map? The previous article about Docker networks thoroughly explained it, so I won't repeat it here.
What really caught my eye was the "external library." I was mentally prepared: the app would resend the photos—46,000 photos, 186GB—which meant another portion in the drive, and the 4TB Cool Wolf would lose half its space. In reality, it is not necessary. The external library lets Immich "read" the original directory where the photos were located, only creating indexes without changing files—186GB photos remain untouched, not a single copy is copied. After attaching it, it scans automatically, and EXIF information, thumbnails, timelines—all from the original file. This hand is life-saving for tens of thousands of old photos.
One detail to keep in mind: the path entered in the external library must be visible inside the container, and in Compose, you need to attach the photo directory to the container; otherwise, Immich will stare at an empty folder for a long time and look innocent. The first time, I didn't connect correctly. After the progress bar finished, it showed zero images. I thought the program was broken, but when I checked the mount later, I realized it was just a nothing. After the modifications and rescanning, 46,000 photos were included, with no one sheet included.
Here's a small pitfall: when I tried it before, the mobile app sent dozens of new photos to Immich. Once the external library was added, two of these photos appeared on the timeline—one uploaded, one indexed. Go to the management page and delete the internal uploaded copy to clean up. So there's only one path to take: all old photos go to external libraries, and new photos shouldn't be sent to the app to Immich anymore; just send backups to the official app's line.
After 40,000 copies, the N100's account: memory is tighter than you think
After the external library is installed, machine learning finally gets started. Face recognition once, content encoding once—two jobs. My N100 previously had the built-in facial recognition on Flying Ox, and it took a < a day and a half to run 41,000 photos a href=">https://www.shunot.com/nas/865.html"; Immich did both jobs together, running intermittently for two and a half days. Those days, the machine was like it was pumped up, all four cores maxed out, the fan sound changed pitch, and Jellyfin had to make way for it when transcoding. I timed my work hours to let it run. During the evening rush hour, I often used containers for photos, but new photo recognition was a bit slow, which was bearable.
Memory is the real factor to weigh. Machine learning containers usually quietly occupy hundreds of megabytes, but once you run recognition or click intelligent search, the entire model loads into memory—three to three and a half gigabytes disappear. My previous upgraded to 8GAlong with Jellyfin, qBittorrent, and Home Assistant, the recognition data was once reduced to just a few hundred megabytes during those two days. If it's a machine with 4GB of RAM, don't hesitate: either go to Settings and turn off machine learning entirely—Timeline, Album, and Today are still used, but you can't search for content or distinguish faces; Or simply stop pretending. I once wrote a line saying "starting at 2GB of memory," which is after turning off machine learning. When it actually starts up, it's not that much at all. Let me correct myself here.
No need to worry about electricity bills. Running recognition only takes about two or three days, and the N100 at full load is only < about thirty watts > a href="https://www.shunot.com/en/nas/815.html", which means one or two kWh in just a few days. After running, it gets bored, and new photos come in to recognize a few seconds of thing.
There's a big pitfall in Chinese searches: the default model can't get 'seaside'
The first time I tried searching, I typed 'seaside' and the results didn't quite match; Instead of the English word "beach," it actually fits correctly. After searching for a long time, I found out its default content model is in English, and I don't recognize any Chinese keywords at all. You have to go to the machine learning settings in the management backend, replace the intelligent search model with the multilingual version, save the entire library, and recode the entire library—another day in time.
After replacement, it really works well. "Sunset by the Sea" came out with over forty photos, and the few photos of the kid running on the beach were on the front screen, which my wife immediately locked onto. "Cat"—even my own orange cat yawning was dug out. She also tried a "hotpot" dish, and found two blurred photos taken last year at hotpot restaurants. Facial recognition is also a notch above Feiniu's built-in facial recognition: in my child's six years' photos, Feiniu split his into three people, which I had to manually merge one by one; Immich got the general idea right in one go, saving more than half of the merged work. Of course, sometimes it won't recognize photos of children under one year old, and the changes are too large, so don't be too demanding about that.
One more thing: this search runs on the device, and you don't have to leave the house with a single photo. It's a completely different approach from Google Photos, where photos are fully uploaded to the cloud. The photo is exactly for this kind of thing, so you can get started.
How to use family: My mom keeps using the Feiniu app, and Immich is only with me and my wife
Install the app on your phone, log in with the server address http://192.168.31.10:2283, and open the account on the web page. For Android, remember to turn off battery optimization on this device, otherwise the system can easily disconnect the backup system; Apple is even more troublesome. The system doesn't let it keep streaming in the background; you have to keep the screen open to let it finish the transfer. Enabling "Background App Refresh" in settings might be better, but don't expect it to be as self-aware as Android. When you're out and want to browse photos, the remote route to FN Connect. In the app, just change the address to a domain name.
I didn't get a match from my parents' side. My mom's Feiniu app works fine, but a read-only account to browse photos, and she has to log in with 'server address plus port'. If anything goes wrong, she can't save herself—this was also the >
Whoever pretends to be pretending, who should be avoided
After a month, both the machine and the human accounts are laid out here:
| My suggestion for your situation | |
|---|---|
| RAM at 8GB or more, fiddling with lots of time, tens of thousands of photos | with your eyes installed, external libraries running and running |
| For machines with 4GB memory | , turn off machine learning before installation, just treat it as a timeline album; Or don't install |
| The whole family needs to | use it. Don't use Immich. The official app is for |
| If you just want an automatic backup | official app, that's enough. That's just using a sledgehammer to kill a chicken |
There's also an invisible cost reminder: this project iterates rapidly, with several versions per month. The mobile app and server versions must match, or else you'll be prompted to upgrade at the drop of a hat. How to upgrade a container without losing data? Previously, wrote five steps—just follow them, but be prepared to take care of it once a month.
Here's the order: first check if memory reaches 8GB, Docker bundles up the four components, attach old photos to the external library (don't let the app send another copy), immediately switch the intelligent search model to multilingual and run coding, pick a working hour to run facial recognition, and install the app only for internal users. My wife now asks me to search for photos directly, saving her three 'flipping through one night' this month.
