GithubHelp home page GithubHelp logo

basel-face-model-viewer's People

Contributors

andreas-forster avatar bernhardegger avatar fox918 avatar imagesynthtue avatar wolfviking0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

basel-face-model-viewer's Issues

Precompiled jar gives this error when executing it

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007f2755b2e009, pid=9939, tid=10037

JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)

Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, parallel gc, linux-amd64)

Problematic frame:

C [libjava.so+0x1d009] JNU_GetEnv+0x19

scalismo.support.nativelibs.NativeLibraryException

Thank you for this visualization tool!!
I did the following:
installed Java (Version 8.0 or higher recommended) I used java version "14.0.2" 2020-07-14.
installed sbt (only for compiling from sources) sbt script version: 1.3.13
download model-viewer.jar
run

java -Xmx2g -jar model-viewer.jar

And got the error:

scalismo.support.nativelibs.NativeLibraryException: Unable to load native library file /home/myname/.scalismo/native-libs-4.0/libnativewindow_awt.so
... (more)

OS: Ubuntu 18.04.5 LTS

I am quite new to Scala and Java. And there is no exact match at Stackoverflow.
How to solve this? Do I need to include Basel Model in the folder?
Please tell me if any further information is needed.
Yifan

Exception in thread "main" ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException

Hello Andreas:

I have installed Java Runtime Environmentwhen 1.8 but when I run the command
java -jar model-viewer.jar -Xmx2g
I meat the error like this:
Exception in thread "main" ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException
at ncsa.hdf.hdf5lib.H5._H5Fopen(Native Method)
at ncsa.hdf.hdf5lib.H5.H5Fopen(H5.java:2546)
at ncsa.hdf.object.h5.H5File.open(H5File.java:1943)
at ncsa.hdf.object.h5.H5File.open(H5File.java:1869)
at ncsa.hdf.object.h5.H5File.open(H5File.java:949)
at scalismo.io.HDF5Utils$$anonfun$openFile$1.apply(HDF5Utils.scala:337)
at scalismo.io.HDF5Utils$$anonfun$openFile$1.apply(HDF5Utils.scala:326)
at scala.util.Try$.apply(Try.scala:192)
at scalismo.io.HDF5Utils$.openFile(HDF5Utils.scala:326)
at scalismo.io.HDF5Utils$.openFileForReading(HDF5Utils.scala:343)
at scalismo.faces.io.MoMoIO$$anonfun$read$2.apply(MoMoIO.scala:95)
at scalismo.faces.io.MoMoIO$$anonfun$read$2.apply(MoMoIO.scala:95)
at scalismo.faces.utils.ResourceManagement$.usingTry(ResourceManagement.scala:60)
at scalismo.faces.io.MoMoIO$.read(MoMoIO.scala:95)
at faces.apps.SimpleModelViewer.(ModelViewer.scala:89)
at faces.apps.ModelViewer$$anonfun$12.apply(ModelViewer.scala:59)
at faces.apps.ModelViewer$$anonfun$12.apply(ModelViewer.scala:59)
at scala.Option.map(Option.scala:146)
at faces.apps.ModelViewer$.delayedEndpoint$faces$apps$ModelViewer$1(ModelViewer.scala:59)
at faces.apps.ModelViewer$delayedInit$body.apply(ModelViewer.scala:34)
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)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at faces.apps.ModelViewer$.main(ModelViewer.scala:34)
at faces.apps.ModelViewer.main(ModelViewer.scala)

Thanks
Peixin LI

error on run: libc++abi.dylib: terminating with uncaught exception of type NSException

i installed java 8 and tried to run the viewer,
It gave me a dialogue box asking to choose a file,
image

so i picked the model-viewer.jar
then i got this error:

(base) ashamir-MBP:Downloads ashamir$ java -Xmx2g -jar model-viewer.jar
2021-01-31 12:10:18.809 java[92178:33799839] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
2021-01-31 12:10:18.809 java[92178:33799839] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff331739ad __exceptionPreprocess + 256
	1   libobjc.A.dylib                     0x00007fff5d897a17 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff3318d50d -[NSException raise] + 9
	3   AppKit                              0x00007fff307325ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
	4   AppKit                              0x00007fff3072f9f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	5   AppKit                              0x00007fff3072f42a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	6   libnativewindow_macosx.dylib        0x000000011aad8f9e Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	7   ???                                 0x000000011b886407 0x0 + 4756890631
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

any suggestions?

How to open the file through the viewer in apple M1 chip?

I am using m1 macbook, and I got this error:

(base) eunjo@eunjoui-MacBookPro BFM % java -Xmx2g -jar model-viewer.jar
Bundle jhdf5 (JHDF 5) does not support platform mac_aarch64

I am wondering if anyone solved this problem. Thank you!

Adjust parameters via Python

Hi, I want to adjust the parameter of the face model using Python code. Something likes
face.nose.param_1 = 0.3
And along with that renders a 2D image from the model.
Is there a way to achieve this?

Screenshot!

Hey, it might be helpful for some people if you post a screenshot, to see what the tool can do before installing it. Great work, thank you!!

Any way to see images by entering the exact value of each PC?

Hi,

I am currently exploring to generate multiple parametric images using this program.
What I want to do is to enter exact value number of each PC, rather than sliding up and down the sliders.
Is there any way that I can generate images with exact values?
Thank you for your help!

Sincerely, Jieun.

Adjust pose of head in MoMo-Viewer

Hey Guys, this repo is TERRRRRRRRRIFIC!!!
I love it so much.

I got a tiny question here:
Is it able to adjust head pose in the viewer?
It seems demo image in readme has a different pose from what I got.

My environment is MacOS and I run the released jar file.
Here's what I got:
what I got

Null pointer when running from source

I am getting a NullPointerException when trying to run with sbt run -mem 4000. It doesn't even show the screen to select the model file, just crashes immediately. It used to run fine on my old laptop before but I recently switched to a new one. I'm not sure what could have changed though.

Here's the stack it prints out.

[info] Loading project definition from /Users/ajmal/Meograph/basel-face-model-viewer-master/project
java.lang.NullPointerException
	at java.base/java.util.regex.Matcher.getTextLength(Matcher.java:1769)
	at java.base/java.util.regex.Matcher.reset(Matcher.java:416)
	at java.base/java.util.regex.Matcher.<init>(Matcher.java:253)
	at java.base/java.util.regex.Pattern.matcher(Pattern.java:1130)
	at java.base/java.util.regex.Pattern.split(Pattern.java:1249)
	at java.base/java.util.regex.Pattern.split(Pattern.java:1322)
	at sbt.IO$.pathSplit(IO.scala:744)
	at sbt.IO$.parseClasspath(IO.scala:859)
	at sbt.compiler.CompilerArguments.extClasspath(CompilerArguments.scala:62)
	at sbt.compiler.MixedAnalyzingCompiler$.withBootclasspath(MixedAnalyzingCompiler.scala:189)
	at sbt.compiler.MixedAnalyzingCompiler$.searchClasspathAndLookup(MixedAnalyzingCompiler.scala:167)
	at sbt.compiler.MixedAnalyzingCompiler$.apply(MixedAnalyzingCompiler.scala:177)
	at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
	at sbt.Compiler$.compile(Compiler.scala:128)
	at sbt.Compiler$.compile(Compiler.scala:114)
	at sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:814)
	at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:805)
	at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:803)
	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:226)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.Execute.work(Execute.scala:235)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:844)
[error] (compile:compileIncremental) java.lang.NullPointerException

Build from source, dependency issue.

Hi, I am trying to build from source but I am facing an issue with the dependency.

[error] (*:update) sbt.ResolveException: unresolved dependency: ch.unibas.cs.gravis#scalismo-faces_2.11;0.9.2+: not found

I try to update the version to 0.90.0 but I have the same issue. Any suggestion of what I am doing wrong ?

Thanks

Ask the Basel Face Model 2019 version first

Hello, I would like to ask how to generate random Face using Basel Face Model 2019 version (that version is a.h5 file, I will not use),
I would be very grateful if you can help me,That version is a full human head

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.