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

the websites does not show deepfake rates rather it shows a yellow page indicating an error. #2

Open
Asmaa1233 opened this issue Nov 15, 2022 · 2 comments

Comments

@Asmaa1233
Copy link

[BUG] [Subject of the issue]

Description

Describe your issue in as much detail as possible here.

Your environment

  • OS and version
  • branch that causes this issue

Steps to reproduce

  • Tell us how to reproduce this issue
  • Where the issue is, if you know
  • Which commands triggered the issue, if any

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Logs

Please paste any logs here that demonstrate the issue, if they exist

Proposed solution

If you have an idea of how to fix this issue, please write it down here, so we can begin discussing it

@Patel-Preet
Copy link

Environment:

Request Method: POST
Request URL: http://127.0.0.1:8000/

Django Version: 3.1.13
Python Version: 3.10.6
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'fontawesome-free']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback (most recent call last):
File "C:\Python310\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "C:\Python310\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\siddi\Desktop\RPPG\deepfake\Deep-PoC\DeepPoC\DeepPoC2\views.py", line 31, in main
result = main_opencv("eye_model/10.0,1.0,1.0,10", name)
File "C:\Users\siddi\Desktop\RPPG\deepfake\Deep-PoC\DeepPoC/ai\main.py", line 42, in main_opencv
ourputs_layer = [layers_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]
File "C:\Users\siddi\Desktop\RPPG\deepfake\Deep-PoC\DeepPoC/ai\main.py", line 42, in
ourputs_layer = [layers_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]

Exception Type: IndexError at /
Exception Value: invalid index to scalar variable.

@profvsanchez
Copy link

Same here..
Using Python 3.11
Am guessing this is an issue of compatibility of Django with Python, and probably needs a specific version of Python, though not sure which version.

It returns the following error
Error:
IndexError
invalid index to scalar variable.

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

3 participants