quereste / implicit-deepfake Goto Github PK
View Code? Open in Web Editor NEWOfficial repository of paper "ImplicitDeepfake: Plausible Face-Swapping through Implicit Deepfake Generation using NeRF and Gaussian Splatting"
Official repository of paper "ImplicitDeepfake: Plausible Face-Swapping through Implicit Deepfake Generation using NeRF and Gaussian Splatting"
Hello, great notebook,
but I have a problem with the following cell:
'''deepfake_source_img_path = '/content/drive/MyDrive/MyImplicitDeepfake/johan_00003_.jpg' # @param {type:"string"}
dirs_dict = {'train': 100, 'val': 50, 'test': 10}
batch_size = 40 # @param {type:"integer"}
create_deepfakes(dirs_dict, base_dir, deepfake_source_img_path, batch_size)
convert_to_rgba()'''
AttributeError Traceback (most recent call last)
in <cell line: 5>()
3 batch_size = 40 # @param {type:"integer"}
4
----> 5 create_deepfakes(dirs_dict, base_dir, deepfake_source_img_path, batch_size)
6 convert_to_rgba()
4 frames
/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/scrfd.py in detect(self, img, threshold, input_size, max_num, metric)
202 input_size = self.input_size if input_size is None else input_size
203
--> 204 im_ratio = float(img.shape[0]) / img.shape[1]
205 model_ratio = float(input_size[1]) / input_size[0]
206 if im_ratio>model_ratio:
Could you help me fix this issue
Hi, first of all very interesting work!
I wanted to try it on a custom 3d head model.
Which tool did you use to get the camera parameters? I tried with BlenderNeRF but the images are from not as good angles as in the colab dataset provided.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.