CharlesCNorton
Image-level person classification on EUPE-ViT-B features with no free parameters
e8b8483 | // Zero-parameter person classifier, 6 dims. | |
| // Generated by rtl_gen.py; do not edit by hand. | |
| // | |
| // sum(pos) > sum(neg), on signed INT8 channels taken from the pooled feature | |
| // vector. No threshold, so no constant appears anywhere in this module. | |
| module person_d6 ( | |
| input signed [7:0] f48, f71, f292, f637, f90, f82, | |
| output person_present | |
| ); | |
| wire signed [9:0] pos_sum = | |
| {{2{f48[7]}}, f48} + {{2{f71[7]}}, f71} + {{2{f292[7]}}, f292}; | |
| wire signed [9:0] neg_sum = | |
| {{2{f637[7]}}, f637} + {{2{f90[7]}}, f90} + {{2{f82[7]}}, f82}; | |
| assign person_present = pos_sum > neg_sum; | |
| endmodule | |