You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
I am having issues running this project. I suspect it's an issue with the version of pytorch_lightning.
Here's the output:
> python3 -m run --ginc configs/nerf/blender.gin
Traceback (most recent call last):
File "!/anaconda3/envs/nerf_factory/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "~/anaconda3/envs/nerf_factory/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "~/nerf-factory/run.py", line 23, in <module>
from pytorch_lightning.plugins import DDPPlugin
ImportError: cannot import name 'DDPPlugin' from 'pytorch_lightning.plugins' (~/anaconda3/envs/nerf_factory/lib/python3.8/site-packages/pytorch_lightning/plugins/__init__.py)
System:
I'm running on a Mac studio with MacOS Ventura 13.3.1.
Here are the versions installed by pip -r requirements.txt:
After I change my pytorch_lightning==1.9.5, then 'BatchSampler' error occurs.
Last part of the error message is as follows.
In call to configurable 'run' (<function run at 0x7f7fb3ef59d0>)
dataloader = _update_dataloader(dataloader, sampler, mode=mode)
File "/compuworks/anaconda3/envs/nerf_factory/lib/python3.9/site-packages/pytorch_lightning/utilities/data.py", line 157, in _update_dataloader
dl_args, dl_kwargs = _get_dataloader_init_args_and_kwargs(dataloader, sampler, mode)
File "/compuworks/anaconda3/envs/nerf_factory/lib/python3.9/site-packages/pytorch_lightning/utilities/data.py", line 218, in _get_dataloader_init_args_and_kwargs
dl_kwargs.update(_dataloader_init_kwargs_resolve_sampler(dataloader, sampler, mode, disallow_batch_sampler))
File "/compuworks/anaconda3/envs/nerf_factory/lib/python3.9/site-packages/pytorch_lightning/utilities/data.py", line 342, in _dataloader_init_kwargs_resolve_sampler
raise MisconfigurationException(
lightning_fabric.utilities.exceptions.MisconfigurationException: We tried to re-instantiate your custom batch sampler and failed. To mitigate this, either follow the API of `BatchSampler` or instantiate your custom batch sampler inside `*_dataloader` hooks of your module.
In call to configurable 'run' (<function run at 0x7f66310e29d0>)
Hi,
I am having issues running this project. I suspect it's an issue with the version of pytorch_lightning.
Here's the output:
System:
I'm running on a Mac studio with MacOS Ventura 13.3.1.
Here are the versions installed by pip -r requirements.txt:
Similar problems found in:
Lightning-AI/pytorch-lightning#17191
That hints to this migration guide:
https://lightning.ai/docs/pytorch/stable/upgrade/migration_guide.html
Possible temporary solution
Use
pytorch_lightning==1.9.5
in requirements.txtThe text was updated successfully, but these errors were encountered: