Coder Social home page Coder Social logo

hello,i train your data,but when i want to test the model,AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead. about cascadepsp HOT 10 CLOSED

hkchengrex avatar hkchengrex commented on August 22, 2024
hello,i train your data,but when i want to test the model,AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.

from cascadepsp.

Comments (10)

hkchengrex avatar hkchengrex commented on August 22, 2024

What command did you use?

from cascadepsp.

zhujiesuper avatar zhujiesuper commented on August 22, 2024

python eval.py --dataset CascadePSP-master/testset_directory --CascadePSP-master/weights/3_2020-05-17_12:15:38/model_45705 --output CascadePSP-master/testset_directory --------the model trained by your method completely

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

The "--model" phrase is missing before the model file.

from cascadepsp.

zhujiesuper avatar zhujiesuper commented on August 22, 2024

Thank YOU! I change this,but A new broken,0 images found,,,my code is python eval.py --dataset /home/zj/PycharmProjects/CascadePSP-master/CascadePSP-master/testset_directory --model /home/zj/PycharmProjects/CascadePSP-master/CascadePSP-master/weights/3_2020-05-17_12:15:38/model_45000 --output /home/zj/PycharmProjects/CascadePSP-master/CascadePSP-master/output_directory
and the testset_directory I put xxxx_gt.png,xxxx_im.png,xxx_seg.png which come from the BIG dataset

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

The image files should be in .jpg. If your images are in .png you can modify the dataset class to take png pretty easily.

from cascadepsp.

zhujiesuper avatar zhujiesuper commented on August 22, 2024

ThankYou!I solve this by change --dataset to --dir ,and png is ok ,jpg need modify! see the result,it is an awesome job!

from cascadepsp.

zhujiesuper avatar zhujiesuper commented on August 22, 2024

but why in eval.py i need to put the _gt.png in test,did the _gt.png affect the result?

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

Thanks for pointing that out! We actually had a typo in the document which we will now fix. The _gt files do not affect the results. They are just copied to the output folder for future evaluation.

from cascadepsp.

zhujiesuper avatar zhujiesuper commented on August 22, 2024

Nothing,Nothing,This job is very awesome!

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

Thanks! 😄

from cascadepsp.

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.