Open adeerkhan opened 7 months ago
Hello! I encountered the same problem. Have you solved this problem? @adeerkhan @aminshabani
@LiSSww @adeerkhan Did you try to filter data according to https://github.com/aminshabani/house_diffusion/issues/5 ?
@NguyenVanThanhHust Yes, I'm pass that stage, I have two questions:
1- When does the training stop? There is no parameter that defines the no. of steps it will run, and up to which checkpoint number does the training go?
2- I am having this new error on the sampling stage: Command: _house_diffusion/scripts python image_sample.py --dataset rplan --batch_size 2 --set_name eval --target_set 8 --model_path ckpts/exp/model1470000.pt --num_samples 64_
Warning: batch size is bigger than the data size. Setting batch size to data size
Traceback (most recent call last):
File "/home/adeer/Github/house_diffusion/scripts/image_sample.py", line 378, in <module>
main()
File "/home/adeer/Github/house_diffusion/scripts/image_sample.py", line 352, in main
fid_score = calculate_fid_given_paths(['outputs/gt', 'outputs/pred'], 64, 'cuda', 2048)
File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/pytorch_fid/fid_score.py", line 259, in calculate_fid_given_paths
m1, s1 = compute_statistics_of_path(paths[0], model, batch_size,
File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/pytorch_fid/fid_score.py", line 243, in compute_statistics_of_path
m, s = calculate_activation_statistics(files, model, batch_size,
File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/pytorch_fid/fid_score.py", line 228, in calculate_activation_statistics
act = get_activations(files, model, batch_size, dims, device, num_workers)
File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/pytorch_fid/fid_score.py", line 122, in get_activations
dataloader = torch.utils.data.DataLoader(dataset,
File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 357, in _init_
batch_sampler = BatchSampler(sampler, batch_size, drop_last)
File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/torch/utils/data/sampler.py", line 232, in _init_
raise ValueError("batch_size should be a positive integer value, "
ValueError: batch_size should be a positive integer value, but got batch_size=0
PS: My Fork, where I've fixed the index out of bounds error: https://github.com/adeerkhan/house_diffusion
@NguyenVanThanhHust是的,我已经过了那个阶段,我有两个问题:
1- 训练何时停止?没有参数定义它将运行的步骤数,以及训练将进行到哪个检查点号?
2-我在采样阶段遇到这个新错误: 命令:_house_diffusion/scripts python image_sample.py --dataset rplan --batch_size 2 --set_name eval --target_set 8 --model_path ckpts/exp/model1470000.pt --num_samples 64_
Warning: batch size is bigger than the data size. Setting batch size to data size Traceback (most recent call last): File "/home/adeer/Github/house_diffusion/scripts/image_sample.py", line 378, in <module> main() File "/home/adeer/Github/house_diffusion/scripts/image_sample.py", line 352, in main fid_score = calculate_fid_given_paths(['outputs/gt', 'outputs/pred'], 64, 'cuda', 2048) File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/pytorch_fid/fid_score.py", line 259, in calculate_fid_given_paths m1, s1 = compute_statistics_of_path(paths[0], model, batch_size, File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/pytorch_fid/fid_score.py", line 243, in compute_statistics_of_path m, s = calculate_activation_statistics(files, model, batch_size, File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/pytorch_fid/fid_score.py", line 228, in calculate_activation_statistics act = get_activations(files, model, batch_size, dims, device, num_workers) File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/pytorch_fid/fid_score.py", line 122, in get_activations dataloader = torch.utils.data.DataLoader(dataset, File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 357, in _init_ batch_sampler = BatchSampler(sampler, batch_size, drop_last) File "/home/adeer/Github/house_diffusion/venv/lib/python3.9/site-packages/torch/utils/data/sampler.py", line 232, in _init_ raise ValueError("batch_size should be a positive integer value, " ValueError: batch_size should be a positive integer value, but got batch_size=0
PS:我的 Fork,我已修复索引超出范围的错误:https://github.com/adeerkhan/house_diffusion Hi, can I ask about this project, have you run it in its entirety? So far I'm only running into an issue where when I run the code, it neither runs nor reports an error. I read in other Issue that it can be solved by upgrading python to 3.9, but after I upgraded to 3.9.19, again, no problem solved. So I would like to ask you if you have ever encountered the same problem. my email is mengshisen88@gmail.com
What might be this error?