thatdev6

Results 16 comments of thatdev6

I need a version of mmcv less than 1.7.0 to import mmseg and also a full version of it to run training. But I cannott find any way to install...

Hello, I made all the relevant changes mentioned in the readme and in this thread but after my images are loaded I get an AttributeError. ![image](https://github.com/explainingai-code/DDPM-Pytorch/assets/128231244/04b3ee93-339a-4546-8bb7-51dc31715f95)

> Hello @thatdev6 , this code expects the path to have png files. But seems like thats not the case for the path you have provided. Is it npy file?...

> Are you using the same code or have you made some modifications ? Your list at the end of dataset initialization is a list of numpy.ndarray objects(according to the...

> Before converting to tensor by any chance did you forget to convert the numpy arrays from HxWx3 to 3xWxH ? How would i fix that?

I also modified the sample function for rectangular images ![image](https://github.com/explainingai-code/DDPM-Pytorch/assets/128231244/096a880d-5f85-42e5-a3e0-7d276d02caab)

> I dont think the 3xwxh is an issue because the error says that your image shapes are 3xWxh so thats fine. But I think your path does not have...

> Yes center square crop of (2448x2448) and then resize to 64x64. How many images are there in your dataset? Around 600 images

These are changes i made to the loader and getitem function, I assume there is no problem here but for some reason the training gets interrupted (^C) ![image](https://github.com/explainingai-code/DDPM-Pytorch/assets/128231244/3470ed88-da78-40ff-9c44-4c22f488ebcf) ![image](https://github.com/explainingai-code/DDPM-Pytorch/assets/128231244/e61740e0-1b30-485b-9292-497db1fc7536) ![image](https://github.com/explainingai-code/DDPM-Pytorch/assets/128231244/703ebb1e-8fa1-4cb3-b362-062ee3c3b12d)

> Couple of things. Move the image reading to the data loader get_item method just like the code in repo. Simply collect the filenames from load_images method and nothing else....