Giter Club home page Giter Club logo

avatarjlm's People

Contributors

zxz267 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

Watchers

 avatar  avatar  avatar  avatar  avatar

avatarjlm's Issues

Data visualization code issues

Traceback (most recent call last):
File "/home/yyh_file/AvatarJLM-main/vis.py", line 94, in
main(opt)
File "/home/yyh_file/AvatarJLM-main/vis.py", line 75, in main
avg_error = evaluate(opt, logger, model, test_loader, save_animation=1)
File "/home/yyh_file/AvatarJLM-main/test.py", line 41, in evaluate
vis.save_animation(body_pose=body_parms_gt['body'], savepath=save_video_path_gt, bm = model.bm, fps=60, resolution = (800,800))
File "/home/yyh_file/AvatarJLM-main/utils/utils_visualize.py", line 174, in save_animation
mv = MeshViewer(width=imw, height=imh, use_offscreen=True)
File "/home/yyh_file/AvatarJLM-main/body_visualizer/mesh/mesh_viewer.py", line 59, in init
self.viewer = pyrender.OffscreenRenderer(*self.figsize)
File "/home/.conda/envs/AvatarJLM/lib/python3.9/site-packages/pyrender/offscreen.py", line 31, in init
self._create()
File "/home/.conda/envs/AvatarJLM/lib/python3.9/site-packages/pyrender/offscreen.py", line 137, in _create
egl_device = egl.get_device_by_index(device_id)
File "/home/.conda/envs/AvatarJLM/lib/python3.9/site-packages/pyrender/platforms/egl.py", line 83, in get_device_by_index
raise ValueError('Invalid device ID ({})'.format(device_id, len(devices)))
ValueError: Invalid device ID (0)
Thanks for your work, but sadly there seems to be a problem with the pose visualization code. Have you encountered such a problem? Or how to solve it. thank you for your reply!

GPU traning TypeError: first argument must be callable or None

def model_to_device(self, network):
    """Model to device. It also warps models with DistributedDataParallel
    or DataParallel.
    Args:
        network (nn.Module)
    """
    network = network.to(self.device)
    if self.opt['dist']:
        find_unused_parameters = self.opt['find_unused_parameters']
        network = DistributedDataParallel(network, device_ids=[torch.cuda.current_device()], find_unused_parameters=find_unused_parameters)
    else:
        network = DataParallel(network)
    return network

it will occur this problem:

Traceback (most recent call last):
File "/home/HDD2/yanshiqi/testAJ/train.py", line 113, in
main(opt)
File "/home/HDD2/yanshiqi/testAJ/train.py", line 78, in main
model.optimize_parameters(current_step)
File "/home/HDD2/yanshiqi/testAJ/models/model_jlm.py", line 179, in optimize_parameters
self.netG_forward()
File "/home/HDD2/yanshiqi/testAJ/models/model_jlm.py", line 172, in netG_forward
self.predictions = self.netG(self.input_signal)
File "/home/HDD2/yanshiqi/.conda/envs/avatarjlm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/HDD2/yanshiqi/.conda/envs/avatarjlm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/HDD2/yanshiqi/.conda/envs/avatarjlm/lib/python3.9/site-packages/torch/nn/parallel/data_parallel.py", line 186, in forward
return self.gather(outputs, self.output_device)
File "/home/HDD2/yanshiqi/.conda/envs/avatarjlm/lib/python3.9/site-packages/torch/nn/parallel/data_parallel.py", line 203, in gather
return gather(outputs, output_device, dim=self.dim)
File "/home/HDD2/yanshiqi/.conda/envs/avatarjlm/lib/python3.9/site-packages/torch/nn/parallel/scatter_gather.py", line 105, in gather
res = gather_map(outputs)
File "/home/HDD2/yanshiqi/.conda/envs/avatarjlm/lib/python3.9/site-packages/torch/nn/parallel/scatter_gather.py", line 96, in gather_map
return type(out)((k, gather_map([d[k] for d in outputs]))
TypeError: first argument must be callable or None

When I annotated this line of code:network = DataParallel(network), it will only use gpu 0.

There are 4 GPUs on my server, but I have been using only GPU0 and this issue has occurred:

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 462.00 MiB. GPU 0 has a total capacty of 23.69 GiB of which 117.62 MiB is free. Process 461938 has 11.61 GiB memory in use. Process 467797 has 498.00 MiB memory in use. Including non-PyTorch memory, this process has 11.44 GiB memory in use. Of the allocated memory 10.65 GiB is allocated by PyTorch, and 498.75 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

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.