Giter VIP home page Giter VIP logo

fsl-mate's People

Contributors

ashok-arjun avatar jeremyzhao1998 avatar lieberk avatar quanmingyao avatar tata1661 avatar wj-mcat avatar yez002 avatar zeyuchen avatar zgs0314 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fsl-mate's Issues

[Feature Request] refactor the project

Description

In the suggested structuring python project, there are some conventional structures & files & naming-style to make the project more readable and scalable. And what's more, there are some github Action tools to run CI to lint & test code, run CD to publish the project.

Thought

I also maintain the project: python-wechaty and paddle-prompt. So I'm familiar with the related opensource toolkits in python project. I can create an another pr to complete this If you agree with it ? How do you think about it ? @tata1661

remove .DS_Store file from the project

There are some unused files in the project, eg:.DS_Store file and __pycache__ directory.

You have set the configuration to ignore .DS_Store file, but it only ignore the file under the top directory of project which is disable for another .DS_Store files. So as the __pycache__ directory.

FSL——Mate

【队名】:青葱岁月夏小凡
【序号】:91
【状态】:报名
【链接】:#19

【PaddlePaddle Hackathon 2】92、新增TPE超参数搜索api

(此 ISSUE 为 PaddlePaddle Hackathon 第二期活动的任务 ISSUE,更多详见 【PaddlePaddle Hackathon 第二期】任务总览

【任务说明】任务标题:新增TPE超参数搜索api

  • 模型技术标签:PaddlePaddle, hyperparameter optimization
  • 任务难度:中等
  • 详细描述:树状结构Parzen估计方法(treeparzen estimator method,TPE)是一种常用的基于树状结构 Parzen 密度估计的非标准贝叶斯优化算法,在高维空间表现很好。可参考scikit-optimize或NNI,实现TPE超参数搜索api。

【提交内容】

  • 设计文档,并提 PR 至 PaddlePaddle/community 的 rfcs/FSL-Mate 目录
  • 任务 PR 到 PaddleFSL
  • 任务单测文件
  • 调用路径:paddlefsl.hpo.tpe

【合入标准】

在Omniglot和miniImageNet数据集的5-way 1-shot任务和5-way 5-shot任务进行测试。使MAML, ANIL, ProtoNet and RelationNet使用Bayesian optimization搜索出的超参数能达到比原汇报结果更高的效果。

【技术要求】

熟练掌握 Python,理解贝叶斯优化

【答疑交流】

  • 如果在开发中对于上述任务有任何问题,欢迎在本 ISSUE 下留言交流。
  • 对于开发中的共性问题,在活动过程中,会定期组织答疑,请大家关注官网&QQ群的通知,及时参与。

ModuleNotFoundError: No module named 'pahelix'

Install problem 1.1.0

File "/home/fangsifan/Few_Shot/FSL-Mate/PaddleFSL/paddlefsl/backbones/gin.py", line 17, in
from pahelix.model_zoo.pretrain_gnns_model import PretrainGNNModel

ModuleNotFoundError: No module named 'pahelix'

【PaddlePaddle Hackathon 2】91、新增random search超参数搜索api

(此 ISSUE 为 PaddlePaddle Hackathon 第二期活动的任务 ISSUE,更多详见 【PaddlePaddle Hackathon 第二期】任务总览

【任务说明】

  • 任务标题:新增random search超参数搜索api
  • 模型技术标签:PaddlePaddle,hyperparameter optimization
  • 任务难度:简单
  • 详细描述:随机搜索即在搜索空间随机的搜索超参数。它是一种不需要优化问题梯度的数值优化方法,也是常用的基线超参数搜索算法。可参考NNI或HyperOpt,实现random search的超参数搜索api。

【提交内容】

  • 设计文档,并提 PR 至 PaddlePaddle/community 的 rfcs/FSL-Mate 目录
  • 任务 PR 到 PaddleFSL
  • 任务单测文件
  • 调用路径:paddlefsl.hpo.rand

【合入标准】

在Omniglot和miniImageNet数据集的5-way 1-shot任务和5-way 5-shot任务进行测试。使MAML, ANIL, ProtoNet and RelationNet使用random search 搜索出的超参数能达到比原汇报结果更高的效果。

【技术要求】

熟练掌握 Python

【答疑交流】

  • 如果在开发中对于上述任务有任何问题,欢迎在本 ISSUE 下留言交流。
  • 对于开发中的共性问题,在活动过程中,会定期组织答疑,请大家关注官网&QQ群的通知,及时参与。

安装步骤(dalao勿喷)

conda create -n paddleFSL python=3.7 -y
source activate paddleFSL

安装GPU版的PaddlePaddle:python -m pip install paddlepaddle-gpu==2.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
检查paddle是否安装成功:python -c "import paddle;print(paddle.utils.run_check());print(paddle.version)" 【出现提示信息:PaddlePaddle is installed successfully!】
再次验证:python -c "import paddle;print(paddle.ones([3,3]))" 【如果GPU安装正确,输出就不会是0矩阵】

pip install rdkit-pypi
pip install pgl
pip install paddlehelix【若安装失败,Linux下设置环境变量 export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True(Windows下用set),再次安装】
pip install paddlefsl

pip install scikit-learn
python -m pip install ujson

验证paddlefsl是否安装成功:python -c "import paddlefsl;print(paddlefsl.version)" 【输出:1.1.0】
安装过程结束。

(InvalidArgument) Tensor holds the wrong type, it holds int, but desires to be int64_t.

Run the sample code and report an error. The error information and code information are as follows.

ValueError: (InvalidArgument) Tensor holds the wrong type, it holds int, but desires to be int64_t.
[Hint: Expected valid == true, but received valid:0 != true:1.] (at C:\home\workspace\Paddle_release\paddle/fluid/framework/tensor_impl.h:33)
[operator < softmax_with_cross_entropy > error]

from paddlefsl.datasets import MiniImageNet
import paddle
import paddlefsl
from paddlefsl.model_zoo import maml

TRAIN_DATASET = paddlefsl.datasets.MiniImageNet(mode='train')
VALID_DATASET = paddlefsl.datasets.MiniImageNet(mode='valid')
TEST_DATASET = paddlefsl.datasets.MiniImageNet(mode='test')
MODEL = paddlefsl.backbones.Conv(input_size=(3, 84, 84), output_size=5)

def main():
train_dir = maml.meta_training(train_dataset=TRAIN_DATASET,
valid_dataset=VALID_DATASET,
ways=5,
shots=1,
model=MODEL,
meta_lr=0.002,
inner_lr=0.03,
iterations=10000,
meta_batch_size=32,
inner_adapt_steps=5,
report_iter=10)

if name == 'main':
main()

文件使用路径问题

请教一下该如何修改root路径?也就是怎么使用当前文件夹下的raw_data文件夹?
同时example里面import的文件并不是当前路径下的,是~\anaconda3\envs\paddle_env\Lib\site-packages\paddlefsl-1.1.0-py3.8.egg\paddlefsl里面的文件,请问怎么修改使用当前文件夹下的py文件?

数据集必须放在指定路径吗?

您好,我的问题是:
当我运行examples/image_classification文件夹下的maml_image_classification.py,终端提示说:

RuntimeError: Data files not found. Please download our mini-ImageNet file manually from
https://drive.google.com/file/d/1LLUjwSUpWGSWizl3JZxd08V30_dIaRBx/view
and place the .tar.gz file under 'root' which you can set, or under default root:/root/miniconda3/lib/python3.8/site-packages/paddlefsl-1.1.0-py3.8.egg/raw_data

所以我下载了该文件并放置在/root/FSL-Mate/PaddleFSL/raw_data文件夹下,接下来该怎么运行呢?
(使用python maml_image_classification.py --root='/root/FSL-Mate/PaddleFSL/raw_data'没有起作用;修改源文件autodl-tmp/FSL-Mate/PaddleFSL/paddlefsl/datasets/mini_imagenet.py,将__init__函数中的root=None改为root='/root/FSL-Mate/PaddleFSL/raw_data'也没有起作用:shipit:)

求教个问题

元学习不是说在识别A数据训练,学会识别B数据的能力吗?为什么代码中train、val、test数据用的是相同的数据?在实际测试中,我用猫狗数据集作为task-model的数据集,蜜蜂蚂蚁数据作为learn-model的数据集,效果并没有直接训练效果好。

[Feature Request] Meta Learner Based code

Introduction

After #23 merged, we can convert all of examples, under examples/image_classification, to meta learner based examples.

I have an online meeting with @tata1661 before, and we believe that it will be more concise if the model-zoo examples be replaced with meta learner (optim-based) . Let's get it on the way.

something about SMASH

SMASH is about NAS rather than FSL. "one-shot" in NAS means training only one model. It's nothing about the number of training data.

Exception has occurred: ModuleNotFoundError,No module named 'paddle.nn'

运行gnn的例子时,提示报错Exception has occurred: ModuleNotFoundError,No module named 'paddle.nn'
我的环境是 1080TI Ubuntu20.04
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Fri_Dec_17_18:16:03_PST_2021
Cuda compilation tools, release 11.6, V11.6.55
Build cuda_11.6.r11.6/compiler.30794723_0
NVIDIA-SMI 510.39.01 Driver Version: 510.39.01 CUDA Version: 11.6
在conda中安装了paddlepaddle-gpu版本2.3.1
paddle-bfloat 0.1.7 pypi_0 pypi
paddlehelix 1.0.1 pypi_0 pypi
paddlepaddle-gpu 2.3.1.post116 pypi_0 pypi
pandas 1.3.5 pypi_0 pypi
pgl 2.2.3.post0 pypi_0 pypi

【PaddlePaddle Hackathon 2】FSL-Mate 任务合集

大家好,非常高兴地告诉大家,第二期 PaddlePaddle Hackathon 开始了。PaddlePaddle Hackathon 是面向全球开发者的深度学习领域编程活动,鼓励开发者了解与参与 PaddlePaddle 开源社区。本次共有四大专区:PaddlePaddle、Paddle Family、Paddle Friends、Paddle Eval,共计100+个任务供大家认领。详细信息可以参考 PaddlePaddle Hackathon 说明。大家是否已经迫不及待了呢~

本 ISSUE 是 Paddle Friends 专区 FSL-Mate 方向任务合集。具体任务列表如下:

序号 难度 任务 ISSUE
91 ⭐️ 新增random search超参数搜索api
92 ⭐️⭐️ 新增TPE超参数搜索api
93 ⭐️⭐️⭐️ 在PaddleFSL将模型库中的MAML和ANIL转为优化算法api

若想要认领本次活动任务,请至 PaddlePaddle Hackathon 2 Pinned ISSUE 完成任务 ISSUE 认领。

活动官网:PaddlePaddle Hackathon 2

Paper addition

Hi!

Thanks for creating this awesome repo!

Would this paper by chance fit in this repo:

Multi-level Semantic Feature Augmentation for One-shot Learning [paper] [code]

【PaddlePaddle Hackathon 2】93、在PaddleFSL将模型库中的MAML和ANIL转为优化算法api

(此 ISSUE 为 PaddlePaddle Hackathon 第二期活动的任务 ISSUE,更多详见 【PaddlePaddle Hackathon 第二期】任务总览

【任务说明】

  • 任务标题:在PaddleFSL将模型库中的MAML和ANIL转为优化算法api
  • 模型技术标签:PaddlePaddle, few-shot learning, meta learning
  • 任务难度:困难
  • 详细描述:在PaddleFSL中,小样本学习经典算法MAML和ANIL以模型方式提供。要求将它们转换成任何模型可调用的算法api。需要重新封装MAML和ANIL,设计其使用方式。可以参考learn2learn和higher的设计。

【提交内容】

  • 设计文档,并提 PR 至 PaddlePaddle/community 的 rfcs/FSL-Mate 目录
  • 任务 PR 到 PaddleFSL
  • 任务单测文件
  • 调用路径:paddlefsl.metaopt.maml和paddlefsl.metaopt.anil

【合入标准】

在Omniglot和miniImageNet数据集的5-way 1-shot任务和5-way 5-shot任务进行测试。使用算法api版的MAML, ANIL获得与原汇报结果一致或更高的效果。

【技术要求】

熟练掌握 Python

【答疑交流】

  • 如果在开发中对于上述任务有任何问题,欢迎在本 ISSUE 下留言交流。
  • 对于开发中的共性问题,在活动过程中,会定期组织答疑,请大家关注官网&QQ群的通知,及时参与。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.