Giter VIP home page Giter VIP logo

Comments (7)

delebash avatar delebash commented on July 23, 2024 3

My fork with changes for Windows 10

delebash@875f5d7

In file retargeting/eval_single_pair.py

Replace this line

args.output_filename = recover_space(args.output_filename)

with

args.output_filename = args.output_filename

# Windows 10 fix
# args.output_filename = recover_space(args.output_filename) -- recover_space removes underline in 'examples/intra_structure' and replaces it with a space 'examples/iintra structure' resulting in bad path 

Next in file retargeting/option_parser.py

Replace this line

  `  os.system('mkdir -p {}'.format(path))`

with this

   os`.makedirs(path)`

Change is located in

def try_mkdir(path):
    import os	    import os
    if not os.path.exists(path):	    if not os.path.exists(path):
        os.system('mkdir -p {}'.format(path))	        # Windows 10 fix
        # os.system('mkdir -p {}'.format(path))  -- does not work in windows 10 fails to make directory
        os.makedirs(path)

from deep-motion-editing.

noshaba avatar noshaba commented on July 23, 2024 1

In addition to what @delebash said, also replace

os.system('cp "{}/{}/0_{}.bvh" "./{}"'.format(model.bvh_path, output_character_name, src_id, output_filename))

with

os.system('copy /Y "{}\\{}\\0_{}.bvh" "{}"'.format(model.bvh_path, output_character_name, src_id, output_filename))

in the file eval_single_pair.py and change the .sh files to .bat, and the project runs on Windows 10 natively without requiring PowerShell or Git Bash.

from deep-motion-editing.

delebash avatar delebash commented on July 23, 2024

My fault. The error was that I had not downloaded and installed the datasets files.

from deep-motion-editing.

gemlongman avatar gemlongman commented on July 23, 2024

I have a similar question :
datasets have been downloaded:

image

cmd : python eval_single_pair.py --input_bvh=./datasets/Mixamo/Aj/Dancing_Running_Man.bvh --target_bvh=./datasets/Mixamo/BigVegas/Dancing_Running_Man.bvh --output_filename=./examples/intra_structure/result.bvh --test_type=intra
loading from ./pretrained/models/topology0
loading from epoch 20000......
load succeed!
loading from ./pretrained/models/topology1
loading from epoch 20000......
load succeed!
Traceback (most recent call last):
File "demo.py", line 47, in
example('Aj', 'BigVegas', 'Dancing Running Man.bvh', 'intra', './examples/intra_structure')
File "demo.py", line 43, in example
height)
File "/data/gemhygao/code/deep-motion-editing/retargeting/models/IK.py", line 57, in fix_foot_contact
anim, name, ftime = BVH.load(input_file)
File "../utils/BVH.py", line 58, in load
f = open(filename, "r")
FileNotFoundError: [Errno 2] No such file or directory: './examples/intra_structure/result.bvh'

from deep-motion-editing.

gemlongman avatar gemlongman commented on July 23, 2024

my problem fixed by
conda install pytorch torchvision cpuonly -c pytorch

from deep-motion-editing.

delebash avatar delebash commented on July 23, 2024

@gemlongman

I had this problem originally and if I remember correctly this was also a path issue. I will look at my project

from deep-motion-editing.

gemlongman avatar gemlongman commented on July 23, 2024

maybe you should run it on a Linux

from deep-motion-editing.

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.