Comments (16)
I had the same issue, I could circumvent it by using the following versions:
lightning-bolts==0.6.0.post1
lightning-lite==1.8.0
lightning-utilities==0.3.0
pytorch-lightning==1.8.0
from lightning-bolts.
I think it was renamed to Logger
in Lightning 1.9.
from lightning-bolts.
Looks like there's also another breaking change: pytorch_lightning.utilities.apply_func
is now found from lightning_utilities.core.apply_func
.
How to keep this backward compatible? We could do this:
try:
from pytorch_lightning.loggers import Logger
except ImportError:
from pytorch_lightning.loggers import LightningLoggerBase
Logger = LightningLoggerBase
try:
from lightning_utilities.core.apply_func import apply_to_collection
except ImportError:
from pytorch_lightning.utilities.apply_func import apply_to_collection
from lightning-bolts.
Is this problem fixed? I tried it today and still get the same error. My versions are:
lightning-bolts==0.6.0.post1
lightning-utilities==0.6.0.post0
pytorch-lightning==1.9.0
from lightning-bolts.
any update on this?
I found a PR that addresses the import only, but won't fix other imports.
I'm pushing my PR now. Just writing down the description and making sure the motivation is clear. I updated 4 dependencies to reflect latest releases.
from lightning-bolts.
lightning-bolts==0.6.0.post1
Could you please try install from source, it shall be fixed there and we release it soon
from lightning-bolts.
lightning-bolts==0.6.0.post1
Could you please try install from source, it shall be fixed there and we release it soon
Thanks, with:
pytorch-lightning==2.0.2
lightning-bolts==0.6.0.post1
I was able to run my code using bleeding edge with: pip install git+https://github.com/PytorchLightning/lightning-bolts.git@master --upgrade
from lightning-bolts.
it seems to be deprecated/removed from PL, would you be interested in sending fix 🐰
from lightning-bolts.
Hello there @Borda, I have a few questions if you don't mind:
- Do you know which specific release combination of pytorch-lightning / lightning_bolts is causing this issue?
- Could there be a way to avoid these kind of incompatibilities between the two libraries from happening in the future? For example, do you have an idea of how
torch
/torchvision
/torchaudio
/ etc do it? (in my experience, those seem to be pretty well synchronized, and I've never had any issue of this kind with them)
from lightning-bolts.
lightning-bolts==0.6.0.post1
lightning-utilities==0.5.0
pytorch-lightning==1.9.0
from lightning-bolts.
I need PL >=1.9.0 and can't get it work with LB 0.6.0.post1. Is anyone looking into this?
from lightning-bolts.
I'm working on this one. PR will follow soon.
from lightning-bolts.
any update on this?
from lightning-bolts.
Thanks!
from lightning-bolts.
I'm getting this error today. @Borda , what version do I need to be on for the error to go away? I upgraded to 2.0.2 but the error remains.
from lightning-bolts.
Also getting this error today:
pytorch-lightning==2.0.2
lightning-bolts==0.6.0.post1
from lightning-bolts.
Related Issues (20)
- Wrong case of class variable inside `TinyCIFAR10DataModule`
- Asynchronous Dataloader: RecursionError: maximum recursion depth exceeded while calling a Python object HOT 2
- Add VICReg in SSL models
- BYOL loss function HOT 1
- MoCo momentum update doesn't update head parameters HOT 1
- VisionDataModule set/get transform doesn't change datset transform
- support lightning 2.* and pytorch 2.* HOT 1
- Issue with Pytorch Lightning and PL_Bolts versions, error import pl_bolts HOT 2
- BatchGradientVerificationCallback mix
- Parametrize input channels in Resnet encoder/decorder architecture
- When the input_height is set to 128 or 256, the images reconstructed by the VAE are very blurry.
- Unable to install Bolts from a local directory with packaging==23.0 HOT 1
- dcgan_module HOT 2
- pytorch_lightning.loggers import LightningLoggerBase HOT 3
- Adding swin to the self-supervised swav HOT 2
- Wrong import statement affecting `LinearWarmupCosineAnnealingLR` (and probably more code) HOT 4
- Fix CI HOT 1
- lightning-bolts is referring to LightningLoggerBase which has been removed from pytorch-lightning HOT 1
- Integration with TorchRL HOT 3
- No module named 'torch._six' HOT 8
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 lightning-bolts.