waps101 / albedomm Goto Github PK
View Code? Open in Web Editor NEWAlbedo Morphable Model
Albedo Morphable Model
Hey, I was able to run the code on a windows machine for the samples provided in the repo.
I would like to test out inverse rendering for some in the wild images for testing purposes.
How would you guys recommend generating the required landmark for a 2D image, is manually annotating the only way? or is there a model available for prediciting these landmarks.
Hello thanks for sharing this model! Just a question, do you guys plan on attaching a license? And if so, would it be a permissive one?
Hi,
I made this error while running ‘java -Xmx2g -cp assembly.jar faces.apps.AlbedoModelBuilder’. Since I don't understand the java code, I would like to ask how to solve this error.
Thank you.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/media/xy-w/Data/GitHub/AlbedoMM/scala/model/assembly.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at scala.reflect.ManifestFactory$$anon$12.newArray(Manifest.scala:141)
at scala.reflect.ManifestFactory$$anon$12.newArray(Manifest.scala:139)
at breeze.linalg.DenseMatrix$mcD$sp.copy$mcD$sp(DenseMatrix.scala:235)
at scalismo.faces.momo.PancakeDLRGP.basisMatrix(PancakeDLRGP.scala:110)
at faces.lib.AlbedoMoMoIO$$anonfun$faces$lib$AlbedoMoMoIO$$writeStatisticalModel$1.apply$mcV$sp(AlbedoMoMoIO.scala:430)
at faces.lib.AlbedoMoMoIO$$anonfun$faces$lib$AlbedoMoMoIO$$writeStatisticalModel$1.apply(AlbedoMoMoIO.scala:426)
at faces.lib.AlbedoMoMoIO$$anonfun$faces$lib$AlbedoMoMoIO$$writeStatisticalModel$1.apply(AlbedoMoMoIO.scala:426)
at scala.util.Try$.apply(Try.scala:192)
at faces.lib.AlbedoMoMoIO$.faces$lib$AlbedoMoMoIO$$writeStatisticalModel(AlbedoMoMoIO.scala:426)
at faces.lib.AlbedoMoMoIO$$anonfun$faces$lib$AlbedoMoMoIO$$writeAlbedoMoMoExpress$1.apply$mcV$sp(AlbedoMoMoIO.scala:233)
at faces.lib.AlbedoMoMoIO$$anonfun$faces$lib$AlbedoMoMoIO$$writeAlbedoMoMoExpress$1.apply(AlbedoMoMoIO.scala:229)
at faces.lib.AlbedoMoMoIO$$anonfun$faces$lib$AlbedoMoMoIO$$writeAlbedoMoMoExpress$1.apply(AlbedoMoMoIO.scala:229)
at scala.util.Try$.apply(Try.scala:192)
at faces.lib.AlbedoMoMoIO$.faces$lib$AlbedoMoMoIO$$writeAlbedoMoMoExpress(AlbedoMoMoIO.scala:229)
at faces.lib.AlbedoMoMoIO$$anonfun$writeToHDF5$1.apply$mcV$sp(AlbedoMoMoIO.scala:176)
at faces.lib.AlbedoMoMoIO$$anonfun$writeToHDF5$1.apply(AlbedoMoMoIO.scala:163)
at faces.lib.AlbedoMoMoIO$$anonfun$writeToHDF5$1.apply(AlbedoMoMoIO.scala:163)
at scala.util.Try$.apply(Try.scala:192)
at faces.lib.AlbedoMoMoIO$.writeToHDF5(AlbedoMoMoIO.scala:163)
at faces.lib.AlbedoMoMoIO$$anonfun$write$1$$anonfun$apply$mcV$sp$3.apply(AlbedoMoMoIO.scala:154)
at faces.lib.AlbedoMoMoIO$$anonfun$write$1$$anonfun$apply$mcV$sp$3.apply(AlbedoMoMoIO.scala:153)
at scalismo.faces.utils.ResourceManagement$.using(ResourceManagement.scala:51)
at faces.lib.AlbedoMoMoIO$$anonfun$write$1.apply$mcV$sp(AlbedoMoMoIO.scala:153)
at faces.lib.AlbedoMoMoIO$$anonfun$write$1.apply(AlbedoMoMoIO.scala:153)
at faces.lib.AlbedoMoMoIO$$anonfun$write$1.apply(AlbedoMoMoIO.scala:153)
at scala.util.Try$.apply(Try.scala:192)
at faces.lib.AlbedoMoMoIO$.write(AlbedoMoMoIO.scala:152)
at faces.apps.AlbedoModelBuilder$.delayedEndpoint$faces$apps$AlbedoModelBuilder$1(AlbedoModelBuilder.scala:28)
at faces.apps.AlbedoModelBuilder$delayedInit$body.apply(AlbedoModelBuilder.scala:13)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
I have model that only has face mesh, how to register it with flame?
How can I use a custom face geometry (which has been registered and processed to BFM template) in the inverse rendering pipeline instead of the current estimated geometry? i.e for a given face image, I have the geometry (acquired from a capture setup) which complies with BFM and want to use your inverse rendering pipeline to estimate the diffuse and specular component.
I'd be grateful if you could point me to the block of code that concerns the above.
What is the second argument (10.0) in AlbedoMoMoRenderer(model, 10.0)
@ faces.apps.AlbedoModelFit ?
Edit: I apologize if this is addressed somewhere, but I couldn't find it in the paper.
Hi, thank you for your great work. I have a problem when running the fitter.
I am using Ubuntu 16.04, and java-8
when I run the command
sbt run -mem 2000
the program will produce the following error:
[info] Compiling 11 Scala sources to D:\AlbedoMM\AlbedoMM-1.0\scala\target\scala-2.11\classes...
sbt.InvalidComponent: Could not find required component 'xsbti'
at sbt.ComponentManager.invalid(ComponentManager.scala:57)
at sbt.ComponentManager.sbt$ComponentManager$$notFound$1(ComponentManager.scala:34)
at sbt.ComponentManager.sbt$ComponentManager$$createAndCache$1(ComponentManager.scala:37)
at sbt.ComponentManager$$anonfun$sbt$ComponentManager$$fromGlobal$1$1.apply(ComponentManager.scala:27)
at sbt.ComponentManager$$anonfun$sbt$ComponentManager$$fromGlobal$1$1.apply(ComponentManager.scala:26)
at sbt.ComponentManager$$anon$1.call(ComponentManager.scala:50)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:55)
at xsbt.boot.Locks$.apply0(Locks.scala:47)
at xsbt.boot.Locks$.apply(Locks.scala:36)
at sbt.ComponentManager.lock(ComponentManager.scala:50)
at sbt.ComponentManager.lockGlobalCache(ComponentManager.scala:49)
at sbt.ComponentManager.sbt$ComponentManager$$fromGlobal$1(ComponentManager.scala:25)
at sbt.ComponentManager$$anonfun$files$1$$anonfun$apply$2.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anonfun$files$1$$anonfun$apply$2.apply(ComponentManager.scala:44)
at sbt.ComponentManager.sbt$ComponentManager$$getOrElse$1(ComponentManager.scala:32)
at sbt.ComponentManager$$anonfun$files$1.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anonfun$files$1.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anon$1.call(ComponentManager.scala:50)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:55)
at xsbt.boot.Locks$.apply0(Locks.scala:47)
at xsbt.boot.Locks$.apply(Locks.scala:36)
at sbt.ComponentManager.lock(ComponentManager.scala:50)
at sbt.ComponentManager.lockLocalCache(ComponentManager.scala:47)
at sbt.ComponentManager.files(ComponentManager.scala:44)
at sbt.compiler.IvyComponentCompiler$$anonfun$sbt$compiler$IvyComponentCompiler$$compileAndInstall$1.apply(ComponentCompiler.scala:114)
at sbt.compiler.IvyComponentCompiler$$anonfun$sbt$compiler$IvyComponentCompiler$$compileAndInstall$1.apply(ComponentCompiler.scala:111)
at sbt.IO$.withTemporaryDirectory(IO.scala:358)
at sbt.compiler.IvyComponentCompiler.sbt$compiler$IvyComponentCompiler$$compileAndInstall(ComponentCompiler.scala:111)
at sbt.compiler.IvyComponentCompiler$$anonfun$apply$1.apply$mcV$sp(ComponentCompiler.scala:102)
at sbt.IfMissing$Define.apply(ComponentManager.scala:75)
at sbt.ComponentManager.sbt$ComponentManager$$createAndCache$1(ComponentManager.scala:39)
at sbt.ComponentManager$$anonfun$sbt$ComponentManager$$fromGlobal$1$1.apply(ComponentManager.scala:27)
at sbt.ComponentManager$$anonfun$sbt$ComponentManager$$fromGlobal$1$1.apply(ComponentManager.scala:26)
at sbt.ComponentManager$$anon$1.call(ComponentManager.scala:50)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:113)
at xsbt.boot.Locks$GlobalLock.withChannelRetries$1(Locks.scala:91)
at xsbt.boot.Locks$GlobalLock.$anonfun$withFileLock$1(Locks.scala:119)
at xsbt.boot.Using$.withResource(Using.scala:12)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:119)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:71)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:59)
at xsbt.boot.Locks$.apply0(Locks.scala:47)
at xsbt.boot.Locks$.apply(Locks.scala:36)
at sbt.ComponentManager.lock(ComponentManager.scala:50)
at sbt.ComponentManager.lockGlobalCache(ComponentManager.scala:49)
at sbt.ComponentManager.sbt$ComponentManager$$fromGlobal$1(ComponentManager.scala:25)
at sbt.ComponentManager$$anonfun$files$1$$anonfun$apply$2.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anonfun$files$1$$anonfun$apply$2.apply(ComponentManager.scala:44)
at sbt.ComponentManager.sbt$ComponentManager$$getOrElse$1(ComponentManager.scala:32)
at sbt.ComponentManager$$anonfun$files$1.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anonfun$files$1.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anon$1.call(ComponentManager.scala:50)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:113)
at xsbt.boot.Locks$GlobalLock.withChannelRetries$1(Locks.scala:91)
at xsbt.boot.Locks$GlobalLock.$anonfun$withFileLock$1(Locks.scala:119)
at xsbt.boot.Using$.withResource(Using.scala:12)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:119)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:71)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:59)
at xsbt.boot.Locks$.apply0(Locks.scala:47)
at xsbt.boot.Locks$.apply(Locks.scala:36)
at sbt.ComponentManager.lock(ComponentManager.scala:50)
at sbt.ComponentManager.lockLocalCache(ComponentManager.scala:47)
at sbt.ComponentManager.files(ComponentManager.scala:44)
at sbt.ComponentManager.file(ComponentManager.scala:53)
at sbt.compiler.IvyComponentCompiler.apply(ComponentCompiler.scala:102)
at sbt.compiler.ComponentCompiler$$anon$2.apply(ComponentCompiler.scala:35)
at sbt.compiler.AnalyzingCompiler.loader(AnalyzingCompiler.scala:118)
at sbt.compiler.AnalyzingCompiler.getInterfaceClass(AnalyzingCompiler.scala:128)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:104)
at sbt.compiler.AnalyzingCompiler.newCachedCompiler(AnalyzingCompiler.scala:62)
at sbt.compiler.AnalyzingCompiler.newCachedCompiler(AnalyzingCompiler.scala:57)
at sbt.compiler.CompilerCache$$anon$2.apply(CompilerCache.scala:47)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:45)
at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
at sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
at sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
at sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:72)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:71)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:99)
at sbt.inc.Incremental$.compile(Incremental.scala:71)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
at sbt.Compiler$.compile(Compiler.scala:155)
at sbt.Compiler$.compile(Compiler.scala:141)
at sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:927)
at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:918)
at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:916)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[error] (compile:compileIncremental) sbt.InvalidComponent: Could not find required component 'xsbti'
[error] Total time: 39 s, completed Apr 16, 2021 12:06:32 AM
I tried on both Ubuntu 18.04 and windows 10, but got this same error.
Could you please help me with this? Thank you very much.
In the README, it is stated that "We also make a version of our model available in the topology of the FLAME model" (https://github.com/waps101/AlbedoMM#flame-topology-model); I have attempted to use the model in FLAME (by replacing FLAME_texture.npz), but it seems that the number of principal components is different and yields an error that reshaping cannot be done. Thus, is it possible to provide more details on how the albedoModel2020_FLAME_albedoPart.npz model can be used within the FLAME model please?
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.