abhijitjadhav1998 / Deepfake_detection_using_deep_learning

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.
GNU General Public License v3.0
495 stars 164 forks source link

Forbidden error #8

Closed NarendranM08 closed 2 years ago

NarendranM08 commented 2 years ago

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

NarendranM08 commented 2 years ago

I executed the project in google colabs

abhijitjadhav1998 commented 2 years ago

Since you will be accessing the URL from outside the colab network , then you cannot access the localhost url. You can follow the below medium blog to generate the proxy link to connect to colab https://medium.com/@arsindoliya/running-django-on-google-colab-ea9392cdee86

Dont forget to star the repo 😊

NarendranM08 commented 2 years ago

I tried it but still I get the Forbidden error 403

NarendranM08 commented 2 years ago

After selecting the video and clicking the upload button it shows forbidden error

abhijitjadhav1998 commented 2 years ago

https://stackoverflow.com/questions/6800894/django-returns-403-error-when-sending-a-post-request this blog might help you but this Django appllicaiton was build to either run locally or on docker .. I an not sure if it will run on Google golab

NarendranM08 commented 2 years ago

After clicking upload video , the video is saved to the folder "uploaded_videos" but next this error shows up [12/May/2022 08:04:00] "POST / HTTP/1.1" 302 0 image

abhijitjadhav1998 commented 2 years ago

This may be due to many request

On Thu, May 12, 2022 at 1:45 PM Narendran M @.***> wrote:

After clicking upload video , the video is saved to the folder "uploaded_videos" but next this error shows up [12/May/2022 08:04:00] "POST / HTTP/1.1" 302 0 [image: image] https://user-images.githubusercontent.com/69786211/168024037-94512480-9d07-4f0a-b3fd-da52ca68becc.png

— Reply to this email directly, view it on GitHub https://github.com/abhijitjadhav1998/Deepfake_detection_using_deep_learning/issues/8#issuecomment-1124672408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJGDTFHC32OYBH54GEZWRL3VJS4ZRANCNFSM5VA2HK3Q . You are receiving this because you modified the open/close state.Message ID: <abhijitjadhav1998/Deepfake_detection_using_deep_learning/issues/8/1124672408 @github.com>

NarendranM08 commented 2 years ago

then should i close all request session after using

NarendranM08 commented 2 years ago

Any solutions?