Skip to content

Instantly share code, notes, and snippets.

View yohhaan's full-sized avatar

Yohan Beugin yohhaan

View GitHub Profile

This gist is related to this blog post

Here are some steps you can follow to reproduce the issue and the misclassifications due to the incorrectly formatted entries in the override list of the Topics API feature.

  1. Get the override_list.pb.gz shipped with model v4 (current version of the model.tflite for the Topics API shipped in Chrome).
    • Visit chrome://topics-internals, under the Classifier tab, get the path where the model is stored, in that same folder you will find the override_list.pb.gz file
    • For archival purposes, the file can also be found here
@yohhaan
yohhaan / invalid_character_override_list_v4.tsv
Last active February 14, 2024 20:30
List of domains with invalid character in override list v4 for the Topics API for the Web. To reproduce see: https://gist.github.com/yohhaan/629ca776c9eef01116fe6e637a6630f0
domain topics
01 ma/dev point1 253,439,250,442,1
1688 com/trade 103,572
2chblog jp/ff14net 194,186,183
2chblog jp/gahalog 250
2chblog jp/rabitsokuhou 1
aktualne cz/magazin 243
aktualne cz/sport 299,243
aktualne cz/zena 1
aktualne cz/zpravy 243
@yohhaan
yohhaan / TopicsModelExecution.ipynb
Created February 12, 2024 17:50
Copy of the Demo of the Topics API for the Web hosted by Google on Colab: https://colab.research.google.com/drive/1hIVoz8bRCTpllYvads51MV7YS3zi3prn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yohhaan
yohhaan / howto_vscode_remote_containers.md
Last active March 28, 2024 19:09
How to use VS Code Remote Containers Extension
@yohhaan
yohhaan / wd_my_book_duo_luks_lvm_ext4_gnu_linux.md
Created April 12, 2021 03:45
Configurations to format the Western Digital My Book Duo external drives for GNU/Linux with LUKS encryption

Configuration

  1. Install WD Drive Utilities (available only on Windows and Mac).

  2. Under RAID Management in WD Drive Utilities, choose Individual Drives (JBOD) and format the 2 drives.

  3. Then boot on a GNU/Linux machine and run the following commands:

    • Remove existing partitions and make sure that you are using GPT:

sudo parted /dev/sda

@yohhaan
yohhaan / config.md
Last active August 15, 2021 02:56
Backup of some commands to config a new machine

Shell

sudo apt-get -y install zsh 
sudo chsh -s /bin/zsh username
sudo chsh -s /bin/zsh root

Some packages

sudo apt-get -y install htop ncdu thunderbird openconnect kdenlive inkscape ffmpeg obs-studio redshift redshift-gtk curl vlc