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

Saving model #23

Open
marceloclribeiro opened this issue Feb 12, 2025 · 0 comments
Open

Saving model #23

marceloclribeiro opened this issue Feb 12, 2025 · 0 comments

Comments

@marceloclribeiro
Copy link

Hello Nicholas! First of all thanks for the repo.
After changing the code to fix the previous informed bug of saving the model metioned in the Troubleshooting/Bugfixing section, im having the following problem on saving the model:

self.eval_dataloader=<torch.utils.data.dataloader._SingleProcessDataLoaderIter object at 0x78ebf2971eb0> of type <class 'torch.utils.data.dataloader._SingleProcessDataLoaderIter'> cannot be saved. self.external_config=TrainingConfig(model_type='DDIM', image_size=32, train_batch_size=16, eval_batch_size=2, num_epochs=1000, gradient_accumulation_steps=1, learning_rate=2e-05, lr_warmup_steps=500, save_image_epochs=10, save_model_epochs=10, mixed_precision='fp16', output_dir='ddim-figshare-32-segguided', push_to_hub=False, hub_private_repo=False, overwrite_output_dir=True, seed=0, segmentation_guided=True, segmentation_channel_mode='single', num_segmentation_classes=2, use_ablated_segmentations=False, dataset='figshare', resume_epoch=None, class_conditional=False, cfg_p_uncond=0.2, cfg_weight=0.3, trans_noise_level=0.5, use_cfg_for_eval_conditioning=True, cfg_maskguidance_condmodel_only=True) of type <class 'training.TrainingConfig'> cannot be saved.

Any tips on how to fix it?

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

1 participant