Comments (4)
All right, thank you for your help! Have a nice day😊
from learn2learn.
Hello @Jeong-Bin,
Method 3 is correct. Try using maml.clone(first_order=True)
when testing. Or, you can reduce the number of adaptation steps (at the price of performance).
How much GPU memory do you have? If you have more than 1 GPU, you can use model.features = torch.nn.DataParallel(model.features)
to distribute the activations on the GPUs.
from learn2learn.
@seba-1511
Thanks! My GPU is RTX 3090 Ti with 20GB memory.
I'll try your solution.
Additionally, I referred to 'adaptation steps' in MAML paper.
In section A.1. Classification of the paper, authors use 10 gradient steps at test time.
Is the gradient step means adaptation step?
from learn2learn.
Yes, gradient steps are adaptation steps.
from learn2learn.
Related Issues (20)
- Cant recognize PyTorch installed from conda HOT 2
- pip install not working HOT 3
- A bug when creating the mujoco environment HOT 2
- Failed building wheel on Python 3.11 - "longintrepr.h”: No such file or directory HOT 3
- pip install pqth problem HOT 2
- pip problem with qpth HOT 1
- .pyx scripts are in the package but in setup.py exxtension is c HOT 1
- Installation: ERROR: Could not build wheels for learn2learn, which is required to install pyproject.toml-based projects HOT 3
- Distribute wheels on pypi HOT 1
- unable to retrieve input images after sampling a task HOT 3
- Parameters of cloned learner is not updating HOT 1
- Issue with running learn2learn-master\examples\rl\maml_trpo.py
- Unable to Reproduce ANIL Results
- About the adapt function in fast_adapt process in MAML
- Is it possible to use Random Forest with the package
- Developing audio examples
- TypeError: An invalid dataloader was passed to `Trainer.fit(train_dataloaders=...)`. Found <learn2learn.utils.lightning.EpisodicBatcher object at 0x7f3bade9bca0>.
- MAML++ and BiT (fine-tuning whole body) implementations in Learn2Learn?
- AttributeError: 'NoneType' object has no attribute 'data'
- derivative for aten::_scaled_dot_product_efficient_attention_backward is not implemented HOT 2
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 learn2learn.