Giter VIP home page Giter VIP logo

Comments (8)

xperzy avatar xperzy commented on May 22, 2024

感谢提issue! 非常有用! .pdparams 的问题确实是readme有问题。 script的问题,我这边没有发现类似的问题, 是因为terminal的版本或者平台不一样的问题吗? 我这边linux shell单引号不会有报错。

from paddlevit.

libertatis avatar libertatis commented on May 22, 2024

感谢提issue! 非常有用! .pdparams 的问题确实是readme有问题。 script的问题,我这边没有发现类似的问题, 是因为terminal的版本或者平台不一样的问题吗? 我这边linux shell单引号不会有报错。

我的操作系统是:Windows 10,版本号为 20H2
命令行终端是:Windows Terminal,版本号为 1.11.2921.0
我没在 Linux 操作系统下测试,不过不带引号的话,在 Linux 系统下应该也不会报错,以前在Linux 终端运行命令的时候,参数也没加过引号。所以建议命令行参数还是统一改成不带引号的会比较好~

from paddlevit.

libertatis avatar libertatis commented on May 22, 2024

噢,我的意思是,直接把命令复制到终端运行,参数加引号的话会报错,不是在终端运行.sh 脚本会报错~

from paddlevit.

skpig avatar skpig commented on May 22, 2024

我尝试了在Pycharm集成终端里运行单GPU训练的命令,但是并没有发生所述情况

CUDA_VISIBLE_DEVICES=0 \
python main_single_gpu.py \
  -cfg='./configs/beit_base_patch16_224.yaml' \
  -dataset='imagenet2012' \
  -batch_size=32 \
  -data_path='./dataset/imagenet' \

但是如果选择使用pycharm配置运行文件,并设置命令行参数为

-cfg='./configs/vit_base_patch16_224_finetune.yaml'
-dataset
imagenet2012
-batch_size=2
-data_path='./dataset/imagenet'

会出现报错FileNotFoundError: [Errno 2] No such file or directory: "'./configs/vit_base_patch16_224_finetune.yaml'"

from paddlevit.

libertatis avatar libertatis commented on May 22, 2024

感谢提issue! 非常有用! .pdparams 的问题确实是readme有问题。 script的问题,我这边没有发现类似的问题, 是因为terminal的版本或者平台不一样的问题吗? 我这边linux shell单引号不会有报错。

我的操作系统是:Windows 10,版本号为 20H2 命令行终端是:Windows Terminal,版本号为 1.11.2921.0 我没在 Linux 操作系统下测试,不过不带引号的话,在 Linux 系统下应该也不会报错,以前在Linux 终端运行命令的时候,参数也没加过引号。所以建议命令行参数还是统一改成不带引号的会比较好~

不好意思,我说错了。我用的是 PyCharm 开发环境,是在 PyCharm 终端运行命令,如果参数值加引号会出现 FileNotFoundError 的异常。其他终端, Windows TerminalGit bash 加引号不会出现这个异常。如果不加引号的话,所有的终端运行都没有问题。非常抱歉~

from paddlevit.

libertatis avatar libertatis commented on May 22, 2024

我使用的 PyCharm 版本是 2020.1.5(Professional Edition) ~

from paddlevit.

skpig avatar skpig commented on May 22, 2024

我用的是Pycharm 2021.2,可能确实是版本的问题

from paddlevit.

SigureMo avatar SigureMo commented on May 22, 2024

这个我昨天使用 win 测试了下,Terminal 本身不会影响的,我同样在 Windows Terminal 进行测试,在选用不同 shell 的情况下结果会有一定差异。我分别测试了 「PowerShell」、「Git Bash」、「cmd」三种 shell,并分别以「不带引号」、「单引号包裹」、「双引号包裹」传参进行测试(3x3=9 种情况),最终结果是只有「以 cmd 为 shell 且传参含单引号」时出现该问题。目测 PyCharm 上的问题也是将 cmd 作为 shell 引起的。

因此删去单引号或者将单引号改为双引号都是一种解决方案(个人倾向于后者),当然还有一种解决方案就是不要用 cmd 作为 shell 啦~๑乛ᆺ乛๑!!! PowerShell 和 Git Bash 不香嘛~~~

from paddlevit.

Related Issues (20)

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.