Giter Club home page Giter Club logo

Comments (8)

piaozhx avatar piaozhx commented on June 29, 2024 2

remove all files in /home/huangxinkai/env/impersonator/lib/python3.6/site-packages/neural_renderer-1.1.3-py3.6-linux-x86_64.egg and other compiled files in thirdparty/neural_renderer (recommend replacing it with a clean version), then install neural_render again.

from impersonator.

OldChi avatar OldChi commented on June 29, 2024

i run "python demo_imitator.py --gpu_ids 1" on cuda9.0, torch1.1, torchvision0.3 and encountered an error:

import neural_renderer.cuda.load_textures as load_textures_cuda
ImportError: /home/huangxinkai/env/impersonator/lib/python3.6/site-packages/neural_renderer-1.1.3-py3.6-linux-x86_64.egg/neural_renderer/cuda/load_textures.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_29E

could you please give me a hand and solve this?thx!

from impersonator.

taotaoyuhust avatar taotaoyuhust commented on June 29, 2024

i run it on cuda9.2 ,windows 10, torch1.2, torchvision 0.4.1

from impersonator.

piaozhx avatar piaozhx commented on June 29, 2024

@OldChi I think cuda9.0 is ok for this project. You should make sure your pytorch cuda version(usually is selected on the pytorch website when you download pytorch) and local cuda version(could be found in /usr/local/cuda/version.txt) are same.

from impersonator.

OldChi avatar OldChi commented on June 29, 2024

@OldChi I think cuda9.0 is ok for this project. You should make sure your pytorch cuda version(usually is selected on the pytorch website when you download pytorch) and local cuda version(could be found in /usr/local/cuda/version.txt) are same.

thank you! my cuda version is 9.0.176
i downloaded the whl file of torchvision0.3 and torch1.1(cuda 9.0 build) on the pytorch website and installed it, but the same error appeared

from impersonator.

OldChi avatar OldChi commented on June 29, 2024

remove all files in /home/huangxinkai/env/impersonator/lib/python3.6/site-packages/neural_renderer-1.1.3-py3.6-linux-x86_64.egg and other compiled files in thirdparty/neural_renderer (recommend replacing it with a clean version), then install neural_render again.

thank you very much! now i'm running the imitator successfully. you guys have really done a cool job. bravo!!

here's a little question:
i want to run some customs examples using imitator. and i wonder if there are some constraints on my reference pictures, for example, the image size? the character's position in the image? the character's background? how could i modify the reference pictures or the codes so that i could get good results as you guys did?

thanks again

from impersonator.

OldChi avatar OldChi commented on June 29, 2024

remove all files in /home/huangxinkai/env/impersonator/lib/python3.6/site-packages/neural_renderer-1.1.3-py3.6-linux-x86_64.egg and other compiled files in thirdparty/neural_renderer (recommend replacing it with a clean version), then install neural_render again.

excuse me. i've converted my own video file into 5445443 images and i used run_imitator.py to swap the man inside my video. but an error occured. what should i do to run it successfully.

Traceback (most recent call last):
File "run_imitator.py", line 225, in
adaptive_personalize(test_opt, imitator, visualizer)
File "run_imitator.py", line 203, in adaptive_personalize
imitator.personalize(opt.src_path, visualizer=None)
File "/home/huangxinkai/env/impersonator/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 43, in decorate_no_grad
return func(*args, **kwargs)
File "/home/huangxinkai/project/impersonator/models/imitator.py", line 125, in personalize
src_info['bg'] = self.bgnet(img, masks=body_mask, only_x=True)
File "/home/huangxinkai/env/impersonator/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/huangxinkai/project/impersonator/networks/inpaintor.py", line 180, in forward
masked_imgs = imgs * (1 - masks) + masks
RuntimeError: The size of tensor a (256) must match the size of tensor b (257) at non-singleton dimension 3

If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at [email protected]

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True

from impersonator.

AKclown avatar AKclown commented on June 29, 2024

thirdparty/neural_renderer

I did not find the thirdparty/neural_renderer directory, pip uninstall neural_renderer_pytorch and then re-execute pip install neural_renderer_pytorch, sh scripts/run_car.sh and still report errors. What should I do?

from impersonator.

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.