Coder Social home page Coder Social logo

Comments (5)

udrs avatar udrs commented on September 14, 2024 1

you are so nice @wgcban

from ddpm-cd.

wgcban avatar wgcban commented on September 14, 2024

Hi @wo0423
Yes, you can start with training the diffusion model first if you wish (however, this may take several days to train), or else you can use the pre-trained diffusion model provided (I strongly recommend you to use the pre-trained diffusion model first). Can you pls copy and paste the full error details here?

from ddpm-cd.

wo0423 avatar wo0423 commented on September 14, 2024

firstly,thx for your reply.i set the resume_state in “path”: "E:/I190000_E97_opt.pth" in the cdd.json,but when i run the ddpm_cd file, a similar error occured
E:\anaconda\ana\python.exe E:/ddpm-cd-master/ddpm_cd.py
Traceback (most recent call last):
File "E:/ddpm-cd-master/ddpm_cd.py", line 28, in
opt = Logger.parse(args)
File "E:\ddpm-cd-master\core\logger.py", line 43, in parse
mkdirs(opt['path'][key])
File "E:\ddpm-cd-master\core\logger.py", line 11, in mkdirs
os.makedirs(paths, exist_ok=True)
File "E:\anaconda\ana\lib\os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "E:\anaconda\ana\lib\os.py", line 221, in makedirs
mkdir(name, mode)
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'experiments\ddpm-RS-CDHead-CDD_220819_194305'

from ddpm-cd.

wgcban avatar wgcban commented on September 14, 2024

@wo0423 The code assumes you save your pre-trained diffusion model in the experiments folder, as you can see from the error msg.

  • So, pls create a folder named experiments inside ddpm-cd-master (or any other location you wish to save the results).
  • Then create ddpm-RS-Unet_220426_160536/checkpoint/ inside experiments and place both I190000_E97_opt.pth and I190000_E97_gen.pth in it.
  • In the config file you should mention only the first part of the pre-trained model (omit _opt.pth and/or _gen.pth, the code will automatically take care of it), i.e. experiments/ddpm-RS-Unet_220426_160536/checkpoint/I110000_E88.
  • The results will be saved in experiments.

I hope this will resolve your issue.
Also, I see that you run the code on the windows machine. In windows, we need to specify path using \ whereas in my code running on linux machine uses /. Pls change those also.

from ddpm-cd.

wo0423 avatar wo0423 commented on September 14, 2024

i got it,you are so nice,thx very much

from ddpm-cd.

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.