Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in main_extraction.py #42

Open
natalie-stephenson opened this issue May 12, 2023 · 1 comment
Open

error in main_extraction.py #42

natalie-stephenson opened this issue May 12, 2023 · 1 comment

Comments

@natalie-stephenson
Copy link

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
Copy link
Collaborator

davin11 commented May 12, 2023

the function jpeg_qtableinv returns 200 for the images that are not compressed JPEG.
for images not compressed JPEG, we use the network 101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants