Wassfast操作流程

Wassfast在Linux下运行过程

  1. 安装conda或者miniconda
  2. 下载Wassfast,安装git
    $ sudo apt-get install git
    $ git clone https://gitlab.com/fibe/wassfast.git
    $ cd wassfast
  3. conda env create -f environment_name
    environment_name 根据安装的环境选择
    如果conda安装失败,选择mamba进行安装
    $ conda install -n base conda-forge::mamba
    $ mamba env create -f environment_name
  4. 如果使用PU模式运行,需要编译C++库
    $ cd wassfast/PointsReducer
    $ mkdir build
    $ cd build
    $ cmake …/
    $ make ; make install
  5. 激活环境
    $ conda activate wassfast_cnn
    $ python -m wassfast ./input /home/tai/desktop/wassfast/data/config256.mat ./config ./settings.cfg RLTB CNN --batchsize 16 -n 49 -r 15.0 -o output.nc
  6. 在wassfast文件夹下下载数据并解压,激活环境后运行
    $./run_wassfast_cnn.sh
    如果报错 only integers, slices (:), ellipsis (...), and 1-d integer or boolean arrays are valid indices
    在终端输入 export PYTHONWARNINGS=‘ignore:semaphore_tracker:UserWarning’
  7. 生成wassfast_output.nc后在数据文件夹下运行
    $./run_wassncplot.sh
    报错
    DirectoryNotACondaEnvironmentError: The target directory exists, but it is not a conda environment.
    Use ‘conda create’ to convert the directory to a conda environment.
    target directory: /home/tai/miniconda3/envs/wassncplot
    不知道什么原因,等解决了再更新。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值