Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What should I change if I want to generate grayscale image out of grayscale image dataset? #10

Open
devshaww opened this issue Nov 7, 2022 · 4 comments

Comments

@devshaww
Copy link

devshaww commented Nov 7, 2022

No description provided.

@dome272
Copy link
Owner

dome272 commented Nov 15, 2022

Hey,
you would change the in and out channels here:

def __init__(self, c_in=3, c_out=3, time_dim=256, num_classes=None, device="cuda"):

That should be it. And then your DataLoader would need to be adjusted too.

@awais00012
Copy link

awais00012 commented Dec 3, 2023

Hi outlier, i am working on a greyscale ultrasound dataset with having image size is 265*256 consisting of 5 different classes. i modified the image size in class SelfAttention, also i changed the i/p and O/p channels for greyscale images. but when i run the modules.py i face this error. kindly help out.
image

error also, tell me why its samples 10 images every time during training. can we change it?

@dome272
Copy link
Owner

dome272 commented Dec 3, 2023

This is an improved codebase here: https://github.com/tcapelle/Diffusion-Models-pytorch
I think it implementes easy handling of different image resolutions

@awais00012
Copy link

This is an improved codebase here: https://github.com/tcapelle/Diffusion-Models-pytorch I think it implementes easy handling of different image resolutions
image

am still facing this issue. i tried on this repo but still stuck here. i want to work on Greyscale images having a size is 256. kindly let me guide what should i do.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants