Giter Site home page Giter Site logo

Comments (7)

apchenstu avatar apchenstu commented on September 27, 2024

I think it is because your project path contain some space characters:
C:\Users\LINK\OneDrive - University of Waterloo\SYDE 671 project\released_v0.1\

I hope this is helpfully to you.

from facial_details_synthesis.

mumuyanyan avatar mumuyanyan commented on September 27, 2024

I have the same problem.
Did you have dealt with the problem?

from facial_details_synthesis.

janhavisawal avatar janhavisawal commented on September 27, 2024

Even I am facing the same issue and removing the space characters didn't resolve the problem.

from facial_details_synthesis.

JessieW-eyevio avatar JessieW-eyevio commented on September 27, 2024

I had the same issues even without space characters in project path. Any way to work around it?

from facial_details_synthesis.

SuwoongHeo avatar SuwoongHeo commented on September 27, 2024

I'm not sure this would help. But regarding the problem with space in the file path, I modified the code to make it work. Specifically, I had added a double quote around each path and change the os.system(cmd) to subprocess.run(shlex.split(cmd)) - subprocess, shlex should be imported. As an example, fit_model function in the proxyPredictor.py of my code is looks like,

def fit_model( exepath, imagePath, ptsPath, savePath,landmark_scale,expressionPath):
    current_path = os.getcwd()
    os.chdir(exepath)
    imagePath = '"' + imagePath + '"'
    ptsPath = '"' + ptsPath + '"'
    savePath = '"' + savePath + '"'
    if not expressionPath==None:
        expressionPath = '"' + expressionPath + '"'
    file_path = ' -p ./bfm2017/ibug_to_bfm2017-1_bfm_nomouth.txt -c ./bfm2017/bfm2017-1_bfm_nomouth_model_contours.json'+ \
				' -e ./bfm2017/bfm2017-1_bfm_nomouth_edge_topology.json -m ./bfm2017/bfm2017-1_bfm_nomouth.bin'
    if expressionPath is None:
        cmd = './build/examples/Release/fit-model.exe -i '+ imagePath +' -l '+ptsPath+' -o '+savePath+' --save-texture 0 --save-wireframe 0 --landmark-scale '+ \
		  				str(landmark_scale)+' '+file_path
    else:
        cmd = './build/examples/Release/fit-model.exe -i ' + imagePath +' -l ' +ptsPath +' -o ' +savePath+ \
			   ' --num-fit-iter 10 --init-expression-coeffs-fp '+ expressionPath+ \
				' --fix-expression-coeffs ' + str(args.fit_expression) + ' --save-texture 0 --save-wireframe 0  --landmark-scale '+str(landmark_scale) +' '+ file_path

    subprocess.run(shlex.split(cmd))
    # os.system(cmd)
    os.chdir(current_path)

Hope it helps

from facial_details_synthesis.

janhavisawal avatar janhavisawal commented on September 27, 2024

I tried to follow the above steps ^^ which resulted in the following error.

sh: 1: FaceLandmarkImg.exe: not found
===> Landmarks detection done.

===> estimating proxy of /content/000005.jpg
sh: 1: fit-model.exe: not found
sh: 1: textureRender.exe: not found

from facial_details_synthesis.

XIAO-RUI-RUI avatar XIAO-RUI-RUI commented on September 27, 2024

The picture's problem?

from facial_details_synthesis.

Related Issues (20)

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.