GithubHelp home page GithubHelp logo

sparsediff's People

Contributors

cvignac avatar qym7 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

Watchers

 avatar  avatar  avatar

sparsediff's Issues

AttributeError: module 'sparse_diffusion.utils' has no attribute 'densify_noisy_data'

When I run the command ‘python3 main.py general.name=test’, the console displays an error message:

Error executing job with overrides: ['general.name=test']
Traceback (most recent call last):
File "/Users/wzn/code/SparseDiff/sparse_diffusion/main.py", line 121, in main
dataset_infos.compute_input_dims(
File "/Users/wzn/code/SparseDiff/sparse_diffusion/datasets/abstract_dataset.py", line 204, in compute_input_dims
ex_extra_feat = extra_features(example_data)
File "/Users/wzn/code/SparseDiff/sparse_diffusion/diffusion/extra_features.py", line 52, in call
noisy_data = utils.densify_noisy_data(sparse_noisy_data)
AttributeError: module 'sparse_diffusion.utils' has no attribute 'densify_noisy_data'

And I didn't find that method in utils.py.
How should I handle it to ensure that the code can run properly?

Diagonal mask in Laplacian computation

Hi,

Congrats for this nice work and thanks for sharing your code.

I'm a bit confused with something you do in the computation of the of the Laplacian :

L = self.compute_laplacian(A, normalize=False)
mask_diag = 2 * L.shape[-1] * torch.eye(A.shape[-1]).type_as(L).unsqueeze(0)
mask_diag = mask_diag * (~mask.unsqueeze(1)) * (~mask.unsqueeze(2))
L = L * mask.unsqueeze(1) * mask.unsqueeze(2) + mask_diag

Could you explain me why you add this mask to the diagonal of the Laplacian ?

Best,
Antoine

Assistance Required with HTTP Error 403 when Downloading QM9 Dataset in SparseDiff Project

Dear Author,

I hope this message finds you well. I am currently working with your SparseDiff project and have encountered a challenge that I believe requires your expertise. I am experiencing an HTTP 403 Forbidden error when attempting to download the QM9 dataset.

The error trace is as follows:

Error executing job with overrides: ['dataset=qm9']
Traceback (most recent call last):
...
urllib.error.HTTPError: HTTP Error 403: Forbidden
I have verified that the file paths are correct and have followed the code implementation you provided. Specifically, the error occurs when executing the following code snippet:

file_path = download_url(self.raw_url, self.raw_dir)
extract_zip(file_path, self.raw_dir)
os.unlink(file_path)
_ = download_url(self.raw_url2, self.raw_dir)
os.rename(
osp.join(self.raw_dir, "3195404"),
osp.join(self.raw_dir, "uncharacterized.txt"),
)

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.