Skip to content

Integration of deepfake detection models#29

Closed
lous-e wants to merge 53 commits intoUMass-Rescue:mainfrom
lous-e:deepfake-detection-models
Closed

Integration of deepfake detection models#29
lous-e wants to merge 53 commits intoUMass-Rescue:mainfrom
lous-e:deepfake-detection-models

Conversation

@lous-e
Copy link
Copy Markdown

@lous-e lous-e commented Apr 25, 2025

Libraries (versions represent those added in the original requirements.txt file

  1. numpy

    • Version: 2.2.2
    • License: custom license
  2. pandas

    • Version: 2.2.3
    • License: BSD 3-Clause "New" or "Revised" License
  3. pillow

    • Version: 11.1.0
    • License: open source MIT-CMU License
  4. onnxruntime

    • Version: 1.20.1
    • License: MIT

Models:

  1. ViT

  2. ViT

  3. BNext

  4. BNext

lous-e and others added 23 commits April 25, 2025 04:11
added model parameter options, updated the server, etc.
* deepfake pyproject.toml
* improved sim_data.py 's dataset_path (line 20)
* renamed server.py to main.py
* Fixed model paths in each of the model process files
* updated imports to be deepfake_detection.NAME
* fixed models loading before specification of which models
* fixed add_ml_service
* fixed schema functions
ollama = ">=0.4.7,<0.5.0"
pypdf2 = ">=3.0.1,<4.0.0"
pandas = ">=2.2.3,<3.0.0"
pillow = ">=11.2.1,<12.0.0"
Copy link
Copy Markdown
Collaborator

@nb950 nb950 Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notice that this Python package has a special license open source MIT-CMU License req
https://github.com/python-pillow/Pillow/blob/main/LICENSE
please add this too

### Download and run RescueBox Desktop from the following link: [Rescue Box Desktop](https://github.com/UMass-Rescue/RescueBox-Desktop/releases)

#### Open the RescueBox Desktop application and register the model
![RescueBox Desktop](images/register_model.png)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new UI does not have a register option please remove this
also remove old UI images src/deepfake-detection/deepfake_detection/images/*.png


[tool.poetry.dependencies]
numpy = "*"
pandas = "*"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pandas package is licensed under the BSD 3-Clause "New" or "Revised" License. This license permits the use, ...provided that the copyright notice, conditions, and disclaimer are retained.
please add this license file

readme = "README.md"

[tool.poetry.dependencies]
numpy = "*"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.



# Personal Attributes (Stuff about the subject)
possible_genders = ["Male", "Female"] # Consider wording Man/Woman or Boy/Girl
Copy link
Copy Markdown
Collaborator

@nb950 nb950 May 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you consider "unknown" as an option ?
(for all these prompts ? )

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The intent of each attribute is to diversify the results. "Unknown" or "None" was too non descriptive in my eyes since the model would just assign the most obvious one(s). So I elected to omit that type of attribute category.

name="Image DeepFake Detector",
author="UMass Rescue",
version="0.2.0",
info=load_file_as_string("img-app-info.md"),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the pull path to img-app-info.md has to be passed to load_file_as_string() method
example src/face-detection-recognition/face_detection_recognition/face_match_server.py

@lous-e lous-e changed the title Initial PR for deepfake detection models Integration of deepfake detection models May 16, 2025
@nb950
Copy link
Copy Markdown
Collaborator

nb950 commented Jul 21, 2025

@nb950 nb950 closed this Jul 21, 2025
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

Successfully merging this pull request may close these issues.

6 participants