GithubHelp home page GithubHelp logo

quereste / implicit-deepfake Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 0.0 10.03 MB

Official repository of paper "ImplicitDeepfake: Plausible Face-Swapping through Implicit Deepfake Generation using NeRF and Gaussian Splatting"

3d deepfake deepfake-3d gaussian-splatting nerf

implicit-deepfake's People

Contributors

quereste avatar stekoaa avatar

Stargazers

 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

implicit-deepfake's Issues

Error in Colab

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()'''

Give me this error:
Everything is ok!

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:

AttributeError: 'NoneType' object has no attribute 'shape'

Could you help me fix this issue

How to get the camera params for a custom 3d head model?

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.

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.