Code Monkey home page Code Monkey logo

Comments (6)

SoftwareGift avatar SoftwareGift commented on July 17, 2024

The file list we provided is suitable for Linux system. According to your error message, it's a path format error.

from feathernets_face-anti-spoofing-attack-detection-challenge-cvpr2019.

bingws avatar bingws commented on July 17, 2024

The error also happen on Linux system
image
root@ubt:/home/ubt/app/CVPR2019# python main.py --config="cfgs/fishnet150-32.yaml" --b 32 --lr 0.01 --every-decay 30 --fl-gamma 2 >> fishnet150-train.log /root/anaconda3/lib/python3.7/site-packages/torch/nn/modules/upsampling.py:129: UserWarning: nn.Upsample is deprecated. Use nn.functional.interpolate instead. warnings.warn("nn.{} is deprecated. Use nn.functional.interpolate instead.".format(self.name)) Traceback (most recent call last): File "main.py", line 402, in <module> main() File "main.py", line 198, in main train(train_loader, model, criterion, optimizer, epoch) File "main.py", line 230, in train for i, (input, target) in enumerate(train_loader): File "/root/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 637, in __next__ return self._process_next_batch(batch) File "/root/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 658, in _process_next_batch raise batch.exc_type(batch.exc_msg) FileNotFoundError: Traceback (most recent call last): File "/root/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 138, in _worker_loop samples = collate_fn([dataset[i] for i in batch_indices]) File "/root/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 138, in <listcomp> samples = collate_fn([dataset[i] for i in batch_indices]) File "/home/ubt/app/CVPR2019/read_data.py", line 94, in __getitem__ depth = Image.open(depth_dir[idx]) File "/root/anaconda3/lib/python3.7/site-packages/PIL/Image.py", line 2580, in open fp = builtins.open(filename, "rb") FileNotFoundError: [Errno 2] No such file or directory: '/home/ubt/app/CVPR2019/data/Training/fake_part/CLKJ_BS1010/06_enm_b.rssdk/depth/151.jpg'

@SoftwareGift

from feathernets_face-anti-spoofing-attack-detection-challenge-cvpr2019.

bingws avatar bingws commented on July 17, 2024

我发现有个地方的确有问题。我不知道怎么改?
Training文件夹下还是“151_tr.jpg”,而程序似乎要“151.jpg”。
image
“ir_train.txt”下截图可以看出,运行fileList.py后,它是“151.jpg”,如下。
image
问题应该是这个,我不知道怎么回事。@SoftwareGift

from feathernets_face-anti-spoofing-attack-detection-challenge-cvpr2019.

bingws avatar bingws commented on July 17, 2024

@SoftwareGift 看下我的问题,谢谢了。

from feathernets_face-anti-spoofing-attack-detection-challenge-cvpr2019.

dandanW91 avatar dandanW91 commented on July 17, 2024

我也遇到了同样的问题,希望您解答一下。

from feathernets_face-anti-spoofing-attack-detection-challenge-cvpr2019.

xjhjinhui avatar xjhjinhui commented on July 17, 2024

我发现有个地方的确有问题。我不知道怎么改?
Training文件夹下还是“151_tr.jpg”,而程序似乎要“151.jpg”。
image
“ir_train.txt”下截图可以看出,运行fileList.py后,它是“151.jpg”,如下。
image
问题应该是这个,我不知道怎么回事。@SoftwareGift

我通过rgb.write(pwd + list[0].split('.jpg')[0]+ '_tr' + '.jpg' +'\n')修改了文件名,但是仍然运行不了训练指令,请问您最后是如何解决的呢?

from feathernets_face-anti-spoofing-attack-detection-challenge-cvpr2019.

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.