error in main_extraction.py
Opened this issue · 1 comments
natalie-stephenson commented
In line 29 of your 'main_extraction.py' I noticed that you've made a typo with the variable name.
Currently the code reads:
try:
QF = jpeg_qtableinv(strimgfilenameeam)
I believe the line of code should read:
try:
QF = jpeg_qtableinv(stream=imgfilename) #or just 'imgfilename'
As such, your try/except clause always hits your except as there is no variable named 'strimgfilenameeam'. This results in QF always being set to 200, and the model for your noiseprint always being 'net_jpg101'.
Hope this is helpful.
davin11 commented
the function jpeg_qtableinv returns 200 for the images that are not compressed JPEG.
for images not compressed JPEG, we use the network 101