Coder Social home page Coder Social logo

Comments (8)

alexandre01 avatar alexandre01 commented on May 18, 2024 1

Hi @pwichmann ,

I'm doing a fresh install right now to check if I get the same issue. Otherwise, will try to investigate the error message you are receiving.

from deepsvg.

alexandre01 avatar alexandre01 commented on May 18, 2024 1

Okay, installed everything with the following configuration:

  • Ubuntu 20.04
  • CUDA 11.0
  • GPU GTX 1080

and worked without error... Trying to check your error message now

from deepsvg.

alexandre01 avatar alexandre01 commented on May 18, 2024 1

Hmm.. Yeah, googling didn't help me much neither. I suspect this might be a problem with PyTorch 1.4 not supporting your exact CUDA build. It's tricky to give any advice here cause I always just install CUDA using Ubuntu's Software & Updates (additional drivers) tool. I don't have any RTX card neither..

from deepsvg.

pwichmann avatar pwichmann commented on May 18, 2024 1

I was able to solve the problem. It was NOT caused by your code but - indeed - by the PyTorch version or CUDA version.
A fresh install of PyTorch with the most recent version solved the problem.

pip install torch==1.7.0+cu110 torchvision==0.8.1+cu110 torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

from deepsvg.

pwichmann avatar pwichmann commented on May 18, 2024

The same problem occurs in notebooks/latent_ops.ipynb in the cell "Addition" operation.

z_list = []

for i in range(500):
    tensors, fillings = dataset._load_tensor(dataset.random_id())
    t_sep = tensors[0]
    t_sep_rm, fillings_rm = t_sep[:-1], fillings[:-1]

    if len(t_sep) >= 2:
        z1 = encode(dataset.get_data(t_sep, fillings))
        z2 = encode(dataset.get_data(t_sep_rm, fillings_rm))
        z_list.append(z2 - z1)
z_rmv = torch.cat(z_list).mean(dim=0, keepdims=True)

from deepsvg.

pwichmann avatar pwichmann commented on May 18, 2024

Thanks, @alexandre01

One difference is the CUDA version. But I could not determine if this can be the cause.

from deepsvg.

pwichmann avatar pwichmann commented on May 18, 2024

Thank you, @alexandre01!

from deepsvg.

alexandre01 avatar alexandre01 commented on May 18, 2024

Wow great, I'm glad you managed to have it working!

from deepsvg.

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.