machine-shop / mothra

Automated butterfly wing length measurement
Other
27 stars 15 forks source link

U-Net is calculated more than once when cache is not on #92

Open alexdesiqueira opened 2 years ago

alexdesiqueira commented 2 years ago

After merging #91 and starting to work without cache on, we noticed that the U-Net arch is being calculated three times for the same image:

❯ ./pipeline.py
Image 1/1 : BMNHE_500607.JPG
Processing U-net...
Processing U-net...                                                                                                   
Processing U-net...  
Measurements:                                                                                                    
(...)

Is it "the way it is supposed to be"? Maybe it's something that was happening before, and we didn't see because of the cache... I'll check it.