Comments (5)
you are so nice @wgcban
from ddpm-cd.
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.
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.
@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
insideddpm-cd-master
(or any other location you wish to save the results). - Then create
ddpm-RS-Unet_220426_160536/checkpoint/
insideexperiments
and place bothI190000_E97_opt.pth
andI190000_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.
i got it,you are so nice,thx very much
from ddpm-cd.
Related Issues (20)
- About can't load the trained model. HOT 2
- has a wrong answer
- Training diffusion model with remote sensing data HOT 2
- Data for pretraining the diffusion model HOT 1
- question for 'GaussianDiffusion'
- About the expansion of the pre-training dataset HOT 2
- Question for typo in paper HOT 1
- Prediction Images Are All Black HOT 3
- Practicality of the model on 64x64 images HOT 7
- TypeError: unsupported operand type(s) for %: 'int' and 'NoneType' HOT 1
- When loading your pretraining file, errors may occur in the following model file sections due to structural mismatch between your pretraining model directly under the link and the ddpm model under ddpm_cd. HOT 4
- Broken wandb link HOT 1
- Train/Val Reports on wandb can not be opened HOT 4
- how to reproduce Figure3 in paper HOT 2
- dppm
- How to download the unlabel datasets?
- an issue occured when using the pretrained weight
- From the perspective of diffusion model principle, why are the representations generated by DDPM from remote sensing images more robust and distinguishable than those obtained by UNet networks? HOT 2
- RuntimeError: Error(s) in loading state_dict for GaussianDiffusion: HOT 1
- about _opt.pth and _gen.pth
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddpm-cd.