sungyubkim / gbml Goto Github PK
View Code? Open in Web Editor NEWA collection of Gradient-Based Meta-Learning Algorithms with pytorch
License: MIT License
A collection of Gradient-Based Meta-Learning Algorithms with pytorch
License: MIT License
Hi Sungyub Kim,
Thanks for the great implementation.
I have a question about your code here:
Lines 69 to 71 in 1577e17
Here, you are first training on all the batches in the meta-train set, then you are doing validation and testing.
However, the original algorithm seems to record the testing accuracy after training on every batch of tasks in the meta-train set. Do you observe the difference? I know it is a matter of implementation, we could have done the testing simultaneously, but as a matter of keeping consistent with the original implementation and the way others report their accuracy, would it make sense to observe the testing accuracy immediately after training on 1 meta-batch?
Thanks
Hi @sungyubkim, thank you for publishing this great repository.
I found that your MAML algorithm on ResNet increases the GPU memory usage every iteration and causes a CUDA out of memory error.
I ran it by python main.py --alg MAML --net ResNet
. I use PyTorch 1.3.1 with CUDA 10.1 and the latest dependencies.
Thank you.
Hello, This seems like an error in my torchmeta setup, but wanted to get your perspective if otherwise. thanks in advance - VV
(dsai20) dg8965@mb-qs-pp-v100:~/GBML$ python3 main.py --alg=Reptile
using gpu: 0
Traceback (most recent call last):
File "main.py", line 225, in
main(args)
File "main.py", line 115, in main
target_transform=Categorical(num_classes=args.num_way)
File "/home/dg8965/.conda/envs/dsai20/lib/python3.6/site-packages/torchmeta/datasets/miniimagenet.py", line 89, in init
download=download)
File "/home/dg8965/.conda/envs/dsai20/lib/python3.6/site-packages/torchmeta/datasets/miniimagenet.py", line 127, in init
raise RuntimeError('MiniImagenet integrity check failed')
RuntimeError: MiniImagenet integrity check failed
When codes to add meta curvature and iMAML are planned. Any updates.
Thanks so much for the great codes!
I was checking the reptile code, and it appears I need to set track_higher_grads=True in the context for this to run.
Is there something I am missing here? Thanks!
Line 41 in 1577e17
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.