Giter Site home page Giter Site logo

abhijitjadhav1998 / deepfake_detection_using_deep_learning Goto Github PK

View Code? Open in Web Editor NEW
370.0 9.0 135.0 74.68 MB

This projects aims in detection of video deepfakes using deep learning techniques like RestNext and LSTM. We have achived deepfake detection by using transfer learning where the pretrained RestNext CNN is used to obtain a feature vector, further the LSTM layer is trained using the features. For more details follow the documentaion.

License: GNU General Public License v3.0

Python 0.07% HTML 0.16% CSS 0.01% Jupyter Notebook 99.76% Dockerfile 0.01% Shell 0.01%
deepfake-detection deepfakes deepfake-detection-challenge deep-learning

deepfake_detection_using_deep_learning's Introduction

Deepfake detection using Deep Learning (ResNext and LSTM)

Give a Star⭐ to repo and Don't forget to Buy Me A Coffee

Latest Update

We have dockerised the Django Application now you can spin up a container within seconds without worring about dependencies

1. Introduction

This projects aims in detection of video deepfakes using deep learning techniques like ResNext and LSTM. We have achived deepfake detection by using transfer learning where the pretrained ResNext CNN is used to obtain a feature vector, further the LSTM layer is trained using the features. For more details follow the documentaion.

You can also watch this Youtube video to get a better intuition about the project. You can watch this playList for step by step installation.

You can read more about the project on Medium 

2. Directory Structure

For ease of understanding the project is structured in below format

Deepfake_detection_using_deep_learning
    |
    |--- Django Application
    |--- Model Creation
    |--- Documentaion
  1. Django Application
    • This directory consists of the django made application of our work. Where a user can upload the video and submit it to the model for prediction. The trained model performs the prediction and the result is displayed on the screen.
  2. Model Creation
    • This directory consists of the step by step process of creating and training a deepfake detection model using our approach.
  3. Documentation
    • This directory consists of all the documentation done during the project

3. System Architecture

4. Demo

You can watch the youtube video for demo

5. Our Results

Model Name No of videos No of Frames Accuracy
model_84_acc_10_frames_final_data.pt 6000 10 84.21461
model_87_acc_20_frames_final_data.pt 6000 20 87.79160
model_89_acc_40_frames_final_data.pt 6000 40 89.34681
model_90_acc_60_frames_final_data.pt 6000 60 90.59097
model_91_acc_80_frames_final_data.pt 6000 80 91.49818
model_93_acc_100_frames_final_data.pt 6000 100 93.58794

6. Contributors

  1. Abhijit Jadhav
  2. Jay Patel
  3. Hitendra Patil
  4. Abhishek Patange

7. License

License: GPL v3

8. We welcome Open Source Contribution.

Below are the some changes that can be applied to the project. New Ideas will be appreciated.

  • Deploying the applications in free cloud
  • Creating open source API for detection
  • Batch processing of entire video instead of processing first 'x' frames.
  • Optimizing the code for faster execution.

Completed

  • Dockerizing the app
  • Enabling working of project on Non Cuda Computers. i.e on normal or AMD GPUs : not possible as dlib uses CUDA internally

9. Dont forget to Star⭐ this repo 😉 and Buy Me A Coffee

deepfake_detection_using_deep_learning's People

Contributors

abhijitjadhav1998 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepfake_detection_using_deep_learning's Issues

Unable to download dataset from google drive

Downloading 1ubvKLzBDe5i1acxgGUK6ObeNBYCKUS07 into /content/drive/MyDrive/Hammad/data.zip... Done.
Unzipping.../usr/local/lib/python3.6/dist-packages/google_drive_downloader/google_drive_downloader.py:78: UserWarning: Ignoring unzip since "1ubvKLzBDe5i1acxgGUK6ObeNBYCKUS07" does not look like a valid zip file
warnings.warn('Ignoring unzip since "{}" does not look like a valid zip file'.format(file_id))

I'm trying to download dataset from your provided URL (file_id), but it's showing me above mentioned warnings.

No such file or directory

Hi, I am using the docker and managed to launch the web app but I got the error below during the upload. Can you please advise?

=== | Started Videos Splitting | ===>
image_name /app/uploaded_videos/app/uploaded_videos/uploaded_file_1683025192_preprocessed_1.png
Internal Server Error: /predict/
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/app/ml_app/views.py", line 299, in predict_page
    img.save(image_path)
  File "/usr/local/lib/python3.6/site-packages/PIL/Image.py", line 2099, in save
    fp = builtins.open(filename, "w+b")
FileNotFoundError: [Errno 2] No such file or directory: '/home/app/staticfiles/app/uploaded_videos/app/uploaded_videos/uploaded_file_1683025192_preprocessed_1.png'

After running the python mange.py file causing error

C:\Users\91986\Desktop\Deepfake_detection_using_deep_learning\Django Application>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\urls\resolvers.py", line 590, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
self.check(display_num_errors=True)
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\base.py", line 395, in check
include_deployment_checks=include_deployment_checks,
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\base.py", line 382, in _run_checks
return checks.run_checks(**kwargs)
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks
new_errors = check(app_configs=app_configs)
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\checks\urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver
return check_method()
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\urls\resolvers.py", line 407, in check
for pattern in self.url_patterns:
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "C:\Users\91986\AppData\Local\Programs\Python\Python36\lib\site-packages\django\urls\resolvers.py", line 597, in url_patterns
raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
django.core.exceptions.ImproperlyConfigured: The included URLconf 'project_settings.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.

Index out of range

Hey! Are u sure ur code is correct at this part[loading video and labels to the dataloader]...bcz some functions are not defined in the code.

Can u please help me out!!

Exception in run project when i write python manage.py runserver

i install the project and i am trying run the django application and i install python v3.6 and django v3.0 but i have this exception when i write python manage.py runserver:
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\urls\resolvers.py", line 589, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\OSAMA\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Users\OSAMA\AppData\Local\Programs\Python\Python36\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
self.check(display_num_errors=True)
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\core\management\base.py", line 395, in check
include_deployment_checks=include_deployment_checks,
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\core\management\base.py", line 382, in _run_checks
return checks.run_checks(**kwargs)
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks
new_errors = check(app_configs=app_configs)
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\core\checks\urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver
return check_method()
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\urls\resolvers.py", line 406, in check
for pattern in self.url_patterns:
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\utils\functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "C:\Deepfake_detection_using_deep_learning\Django Application\venv\lib\site-packages\django\urls\resolvers.py", line 596, in url_patterns
raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
django.core.exceptions.ImproperlyConfigured: The included URLconf 'project_settings.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
how i can solve it?

FileNotFoundError: [Errno 2] No such file or directory: '/app/models'

=> ERROR [stage-1 10/12] RUN python manage.py collectstatic --noinput 1.5s

[stage-1 10/12] RUN python manage.py collectstatic --noinput:
1.353 Traceback (most recent call last):
1.353 File "manage.py", line 21, in
1.353 main()
1.353 File "manage.py", line 17, in main
1.353 execute_from_command_line(sys.argv)
1.353 File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
1.353 utility.execute()
1.353 File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 395, in execute
1.353 self.fetch_command(subcommand).run_from_argv(self.argv)
1.353 File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 328, in run_from_argv
1.354 self.execute(*args, **cmd_options)
1.354 File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 369, in execute
1.354 output = self.handle(*args, **options)
1.354 File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 187, in handle
1.354 collected = self.collect()
1.354 File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 104, in collect
1.354 for path, storage in finder.list(self.ignore_patterns):
1.354 File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/finders.py", line 130, in list
1.355 for path in utils.get_files(storage, ignore_patterns):
1.355 File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/utils.py", line 23, in get_files
1.355 directories, files = storage.listdir(location)
1.355 File "/usr/local/lib/python3.6/site-packages/django/core/files/storage.py", line 316, in listdir
1.355 for entry in os.scandir(path):
1.355 FileNotFoundError: [Errno 2] No such file or directory: '/app/models'


Dockerfile:17

15 | RUN pip install -r requirements.txt
16 | COPY . /app
17 | >>> RUN python manage.py collectstatic --noinput
18 |
19 | RUN pip install gunicorn

Installation issue of Torch for CUDA 12

Need help with installation of Torch : my CUDA version is 12
Even if I'm Installing other versions like CUDA 11.6 / CUDA 11.7. Its not working in my device. I tried installing from the website and It says something like :
"Could not find a version that satisfies the requirement torch==1.12.1 (from versions: )
No matching distribution found for torch==1.12.1 "
Also I've tried installing torch separately, versions like : 1.4.0, 0.1.2, 1.9.0, 1.9.0+cu111
It still shows the same thing that : No matching distribution found.
IMG-20230313-WA0003

Forbidden error

After installation and running the server i get the following error while uploading the video:
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
May 04, 2022 - 04:50:19
Django version 3.2.13, using settings 'project_settings.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[04/May/2022 04:50:35] "GET / HTTP/1.1" 200 5233
[04/May/2022 04:50:36] "GET /static/bootstrap/bootstrap.min.css HTTP/1.1" 200 159515
[04/May/2022 04:50:36] "GET /static/css/jquery-ui.css HTTP/1.1" 200 35972
[04/May/2022 04:50:36] "GET /static/css/styles.css HTTP/1.1" 200 1675
[04/May/2022 04:50:37] "GET /static/js/jquery-3.4.1.min.js HTTP/1.1" 200 88144
[04/May/2022 04:50:37] "GET /static/js/popper.min.js HTTP/1.1" 200 25308
[04/May/2022 04:50:37] "GET /static/js/jquery-ui.min.js HTTP/1.1" 200 253668
[04/May/2022 04:50:38] "GET /static/images/logo1.png HTTP/1.1" 200 34641
[04/May/2022 04:50:38] "GET /static/js/script.js HTTP/1.1" 200 520
[04/May/2022 04:50:38] "GET /static/images/background1.png HTTP/1.1" 200 580299
Not Found: /favicon.ico
[04/May/2022 04:50:39] "GET /favicon.ico HTTP/1.1" 404 2824
Forbidden (CSRF cookie not set.): /
[04/May/2022 04:50:50] "POST / HTTP/1.1" 403 2870
Forbidden (CSRF cookie not set.): /
[04/May/2022 04:54:51] "POST / HTTP/1.1" 403 2870

Please provide training dataset.

Hi, I am working on a similar project and faced an issue to train the model. Can you provide some videos ( the one you demoed in the you-tube video and also in the gif).

o

The slider for sequence length selection in the wepage is missing. So, it shows 'the field is required' error everytime. How to solve it?

Enabling working of project on Non Cuda Computers

In the readme file, under "We welcome Open Source Contribution", Enabling working of project on Non Cuda Computers. i.e on normal or AMD GPUs is considered not possible as dlib uses CUDA internally. I have modified the code in such a way that the project works very fine on Normal computer's CPU without requiring GPU. Wishing to contribute to the requirements stated in readme file. I'm using Lenovo Ideapad S340 with intel i5 processor.

Facing Sequence Error

Hi There,

I'm new to python and deep learning stuff. I'm facing following error, can someone please guide me to resolve the issue,

Request Method: GET
http://ec2-13-212-202-36.ap-southeast-1.compute.amazonaws.com:8000/predict/
3.0.5
IndexError
list index out of range
/home/ubuntu/Deepfake_detection_using_deep_learning/Django Application/ml_app/views.py in get_accurate_model, line 196
/usr/bin/python3
3.8.10
['/home/ubuntu/Deepfake_detection_using_deep_learning/Django Application', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']

Internal Server Error: /predict/
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/ubuntu/Deepfake_detection_using_deep_learning/Django Application/ml_app/views.py", line 268, in predict_page
model_name = os.path.join(settings.PROJECT_DIR,'models', get_accurate_model(sequence_length))
File "/home/ubuntu/Deepfake_detection_using_deep_learning/Django Application/ml_app/views.py", line 196, in get_accurate_model
final_model = sequence_model[0]
IndexError: list index out of range

Thanks
Anup Tilak

ERROR: Failed building wheel for dlib Failed to build dlib ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

Building wheels for collected packages: dlib
Building wheel for dlib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for dlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [66 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\venv\Scripts\cmake.exe_main
.py", line 4, in
ModuleNotFoundError: No module named 'cmake'
Traceback (most recent call last):
File "D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\build_meta.py", line 410, in build_wheel
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\build_meta.py", line 395, in build_with_temp_dir
self.run_setup()
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 223, in
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_init
.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\normal\Lib\site-packages\wheel\bdist_wheel.py", line 368, in run
self.run_command("build")
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "", line 129, in run
File "", line 120, in get_cmake_version
File "C:\Users\Deepak\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Deepak\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '--version']' returned non-zero exit status 1.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dlib
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

(venv) D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application>python setup.py install --no dlib_if_support
C:\Users\Deepak\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\setup.py': [Errno 2] No such file or directory

(venv) D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application>python setup.py install --no dlib_s
upport
C:\Users\Deepak\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\setup.py': [Errno 2] No such file or directory

Prediction issue

I am facing problem when I upload vedio it's is showing prediction error in it what should I do to solve the error or sometime I get assertion error
IMG-20240406-WA0003
IMG-20240406-WA0002
IMG-20240406-WA0004

Redirect error

In colabs, after uploading the video, the video is saved but the page is not redirected to predict
return redirect('ml_app.predict')

Poor recognition rate

I tested the video of NT-c23 in the FF + + fake dataset, and the results were very poor. What the problem is, many of the results are correct(998_561.mp4)
PT:Your model_87_acc_20_frames_final_data.pt

error while downloading requirement.txt

Iam working in colab. And currently trying to implement the Django part but the Requirement.txt is not getting downloaded.
error
Kindly suggest a solution for it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.