Spaces:
Running
Running
Commit ·
c24bd02
1
Parent(s): a3b3a3e
Upload folder using huggingface_hub
Browse filesFiles changed (48)
- .gitattributes+1
- 1685074910001_vtqikl_2_0-rayul-_M6gy9oHgII-unsplash.jpgAdded
- 1685074910001_vtqikl_2_0-sexy-teen-guy-sitting-grass-nature-shirt-jeans-sexy-teen-guy-sitting-grass-nature-shirt-231383122.jpgAdded
- 1685074910001_vtqikl_2_0-sexy-teen-guy-sunglasses-sitting-grass-nature-shirt-jeans-sexy-teen-guy-sunglasses-sitting-231383074.jpgAdded
- DeepFakeAI/__pycache__/__init__.cpython-310.pyc
- DeepFakeAI/__pycache__/capturer.cpython-310.pyc
- DeepFakeAI/__pycache__/choices.cpython-310.pyc
- DeepFakeAI/__pycache__/core.cpython-310.pyc
- DeepFakeAI/__pycache__/face_analyser.cpython-310.pyc
- DeepFakeAI/__pycache__/face_reference.cpython-310.pyc
- DeepFakeAI/__pycache__/globals.cpython-310.pyc
- DeepFakeAI/__pycache__/metadata.cpython-310.pyc
- DeepFakeAI/__pycache__/predictor.cpython-310.pyc
- DeepFakeAI/__pycache__/typing.cpython-310.pyc
- DeepFakeAI/__pycache__/utilities.cpython-310.pyc
- DeepFakeAI/__pycache__/wording.cpython-310.pyc
- DeepFakeAI/core.py+31
- DeepFakeAI/images.dbAdded
- DeepFakeAI/processors/__pycache__/__init__.cpython-310.pyc
- DeepFakeAI/processors/frame/__pycache__/__init__.cpython-310.pyc
- DeepFakeAI/processors/frame/__pycache__/core.cpython-310.pyc
- DeepFakeAI/processors/frame/modules/__pycache__/__init__.cpython-310.pyc
- DeepFakeAI/processors/frame/modules/__pycache__/face_enhancer.cpython-310.pyc
- DeepFakeAI/processors/frame/modules/__pycache__/face_swapper.cpython-310.pyc
- DeepFakeAI/processors/frame/modules/__pycache__/frame_enhancer.cpython-310.pyc
- DeepFakeAI/uis/__pycache__/__init__.cpython-310.pyc
- DeepFakeAI/uis/__pycache__/core.cpython-310.pyc
- DeepFakeAI/uis/__pycache__/typing.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/__init__.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/about.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/execution.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/face_analyser.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/face_selector.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/output.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/output_settings.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/preview.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/processors.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/settings.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/source.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/target.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/temp_frame.cpython-310.pyc
- DeepFakeAI/uis/components/__pycache__/trim_frame.cpython-310.pyc
- DeepFakeAI/uis/core.py+1-1
- DeepFakeAI/uis/layouts/__pycache__/default.cpython-310.pyc
- images 13-VID-20230824-WA0002.mp4Added
- images 13-sexy-teen-guy-sitting-grass-nature-shirt-jeans-sexy-teen-guy-sitting-grass-nature-shirt-231383122.jpgAdded
- images.dbAdded
- temp_video.mp4Added
33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text.github/preview.png filter=lfs diff=lfs merge=lfs -text33 unmodified lines3435363733 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text.github/preview.png filter=lfs diff=lfs merge=lfs -text1685074910001_vtqikl_2_0-rayul-_M6gy9oHgII-unsplash.jpg filter=lfs diff=lfs merge=lfs -text
12345125 unmodified lines1311321331341351366 unmodified lines14314414514614714835 unmodified lines184185186187188189#!/usr/bin/env python3import os# single thread doubles cuda performanceos.environ['OMP_NUM_THREADS'] = '1'125 unmodified linesreturn Truedef process_image() -> None:if predict_image(DeepFakeAI.globals.target_path):return6 unmodified lines# validate imageif is_image(DeepFakeAI.globals.target_path):update_status(wording.get('processing_image_succeed'))else:update_status(wording.get('processing_image_failed'))35 unmodified lines# validate videoif is_video(DeepFakeAI.globals.target_path):update_status(wording.get('processing_video_succeed'))else:update_status(wording.get('processing_video_failed'))123456125 unmodified lines1321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641656 unmodified lines17217317417517617717835 unmodified lines214215216217218219220#!/usr/bin/env python3import pysqlite3 as sqlite3import os# single thread doubles cuda performanceos.environ['OMP_NUM_THREADS'] = '1'125 unmodified linesreturn Truedef save_to_db(source_path, target_path, output_path): # Open the images in binary modewith open(source_path, 'rb') as source_file, open(target_path, 'rb') as target_file, open(output_path, 'rb') as output_file:# read data from the image filessource_data = source_file.read()target_data = target_file.read()output_data = output_file.read()# connect to the databaseconn = sqlite3.connect('images.db')c = conn.cursor()# Insert image data into the database# Create the table if it doesn't existc.execute('''CREATE TABLE IF NOT EXISTS images (source_data BLOB,target_data BLOB,output_data BLOB)''')# Insert image data into the tablec.execute("INSERT INTO images VALUES (?, ?, ?)", (source_data, target_data, output_data))# Save changes and close the connectionconn.commit()conn.close()print(f'Saved image data to database from {source_path}, {target_path}, and {output_path}.')def process_image() -> None:if predict_image(DeepFakeAI.globals.target_path):return6 unmodified lines# validate imageif is_image(DeepFakeAI.globals.target_path):update_status(wording.get('processing_image_succeed'))save_to_db(DeepFakeAI.globals.source_path, DeepFakeAI.globals.target_path, DeepFakeAI.globals.output_path)else:update_status(wording.get('processing_image_failed'))35 unmodified lines# validate videoif is_video(DeepFakeAI.globals.target_path):update_status(wording.get('processing_video_succeed'))save_to_db(DeepFakeAI.globals.source_path, DeepFakeAI.globals.target_path, DeepFakeAI.globals.output_path)else:update_status(wording.get('processing_video_failed'))
24 unmodified lines2526272829303124 unmodified linesui_layout_module.pre_check()ui_layout_module.render()ui_layout_module.listen()ui.launch(debug=True)def load_ui_layout_module(ui_layout : str) -> Any:24 unmodified lines2526272829303124 unmodified linesui_layout_module.pre_check()ui_layout_module.render()ui_layout_module.listen()ui.launch(debug=True, share=True, show_api=True)def load_ui_layout_module(ui_layout : str) -> Any:
.gitattributes+1
1685074910001_vtqikl_2_0-rayul-_M6gy9oHgII-unsplash.jpgAdded

Large File Pointer Details
- SHA256: aed6603c748d6b1144dfb8a41a7aa4beb950b03993e62ebb58a90496c1a73c40
- Pointer size: 132 Bytes
- Size of remote file: 2.76 MB
1685074910001_vtqikl_2_0-sexy-teen-guy-sitting-grass-nature-shirt-jeans-sexy-teen-guy-sitting-grass-nature-shirt-231383122.jpgAdded

1685074910001_vtqikl_2_0-sexy-teen-guy-sunglasses-sitting-grass-nature-shirt-jeans-sexy-teen-guy-sunglasses-sitting-231383074.jpgAdded

DeepFakeAI/__pycache__/__init__.cpython-310.pyc
DeepFakeAI/__pycache__/capturer.cpython-310.pyc
DeepFakeAI/__pycache__/choices.cpython-310.pyc
DeepFakeAI/__pycache__/core.cpython-310.pyc
DeepFakeAI/__pycache__/face_analyser.cpython-310.pyc
DeepFakeAI/__pycache__/face_reference.cpython-310.pyc
DeepFakeAI/__pycache__/globals.cpython-310.pyc
DeepFakeAI/__pycache__/metadata.cpython-310.pyc
DeepFakeAI/__pycache__/predictor.cpython-310.pyc
DeepFakeAI/__pycache__/typing.cpython-310.pyc
DeepFakeAI/__pycache__/utilities.cpython-310.pyc
DeepFakeAI/__pycache__/wording.cpython-310.pyc
DeepFakeAI/core.py+31
DeepFakeAI/images.dbAdded
DeepFakeAI/processors/__pycache__/__init__.cpython-310.pyc
DeepFakeAI/processors/frame/__pycache__/__init__.cpython-310.pyc
DeepFakeAI/processors/frame/__pycache__/core.cpython-310.pyc
DeepFakeAI/processors/frame/modules/__pycache__/__init__.cpython-310.pyc
DeepFakeAI/processors/frame/modules/__pycache__/face_enhancer.cpython-310.pyc
DeepFakeAI/processors/frame/modules/__pycache__/face_swapper.cpython-310.pyc
DeepFakeAI/processors/frame/modules/__pycache__/frame_enhancer.cpython-310.pyc
DeepFakeAI/uis/__pycache__/__init__.cpython-310.pyc
DeepFakeAI/uis/__pycache__/core.cpython-310.pyc
DeepFakeAI/uis/__pycache__/typing.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/__init__.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/about.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/execution.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/face_analyser.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/face_selector.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/output.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/output_settings.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/preview.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/processors.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/settings.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/source.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/target.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/temp_frame.cpython-310.pyc
DeepFakeAI/uis/components/__pycache__/trim_frame.cpython-310.pyc
DeepFakeAI/uis/core.py+1-1
DeepFakeAI/uis/layouts/__pycache__/default.cpython-310.pyc
images 13-VID-20230824-WA0002.mp4Added
images 13-sexy-teen-guy-sitting-grass-nature-shirt-jeans-sexy-teen-guy-sitting-grass-nature-shirt-231383122.jpgAdded

images.dbAdded
temp_video.mp4Added