Giter Site home page Giter Site logo

Comments (6)

pascalxia avatar pascalxia commented on July 17, 2024

from driver_attention_prediction.

gabarlacchi avatar gabarlacchi commented on July 17, 2024

Thanks for the quickly answer!
Unluckily I cannot share the videos for privacy reason, I'll try to find a way in next days if there'll always be need. I hope you understand.

Firstly, the first error message which I receive is the following:
"Lossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning."
This happens at the last line of infer.py

Thus I tried to modify the code through the following line:
"gazemap = gazemap.astype(np.uint8)" and then save the image.
What I obtain is a black image.

The extraction of the frames from the video it seems good. I tried with different videos with no differences.
The format is .mp4 (originally was .MOV), but no luck.

from driver_attention_prediction.

Anguliachao avatar Anguliachao commented on July 17, 2024

Dear Pascalxia @pascalxia ,
I follow the exact instructions written by you in this repo ,but my results turn out to be all black instead of visualization result in your figure(like barloccia's results). Would you mind helping me out ? or maybe reply will it be some other issue in image writing methods. I use imageio instead of scipy(deprecated already), but others remains with the original repo. Many thanks

from driver_attention_prediction.

fahad-lateef avatar fahad-lateef commented on July 17, 2024

Hi Pascalxia,

Really appreciate your work

Same issue with me as @Anguliachao and @barloccia
I have implement your work, followed all the steps mentioned. Everything went good but when run test on my data, I get black images in output.

@pascalxia If you can guide?

from driver_attention_prediction.

fahad-lateef avatar fahad-lateef commented on July 17, 2024

Solved..

from driver_attention_prediction.

MingiJeong avatar MingiJeong commented on July 17, 2024

@fahad-lateef glad to hear that you solved. I've been struggling with addressing that whole black issue. Could you share a method on how you solve please?

from driver_attention_prediction.

Related Issues (8)

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.