Git Product home page Git Product logo

Comments (14)

arundasan91 avatar arundasan91 commented on August 18, 2024

Please take a look at these awesome scripts:

  1. https://github.com/rolanvc/cs295-PA1/blob/master/preproc.py
  2. https://github.com/rolanvc/cs295-PA1/blob/master/preproc2.py
  3. https://github.com/rolanvc/cs295-PA1/blob/master/preproc3.py
  4. https://github.com/rolanvc/dexpression/blob/master/utils.py

from dexpression.

arundasan91 avatar arundasan91 commented on August 18, 2024

@fitrialif , Hope these helped. Please reopen if you have any queries.

from dexpression.

fitrialif avatar fitrialif commented on August 18, 2024

hi @arundasan91 ,
Thank you for the code.
I have ran this code until preproc3.py and the resize image was produce but when I try run utils.py code nothing happen. Still cannot convert to numpy format.

from dexpression.

arundasan91 avatar arundasan91 commented on August 18, 2024

Hey @fitrialif , Maybe you're missing something. What you'd want to do is to understand what the function filestoTFdata https://github.com/rolanvc/dexpression/blob/master/utils.py#L4-L33 is doing. You've to call that function with a list of filenames (absolute paths). The function is well documented. Let me know how it goes.

Thanks,
Arun

from dexpression.

fitrialif avatar fitrialif commented on August 18, 2024

from dexpression.

arundasan91 avatar arundasan91 commented on August 18, 2024

@fitrialif ,

What you are doing is to run the utils.py file with an argument /home/fitrialif/resize. This won't work as:

  1. The function is not expecting any arguments.
  2. The function needs a list of filenames (absolute path).

Also, Line 33 should ring some bells. The function is returning the concatenated array.

If you'd want to save the arrays, add a line after Line 38 to save the variables images and labels to disk. You can use numpy.save to do that.

What you need to do is to create a list of filenames say:

filelist = ['/home/fitrialif/resize/001.jpg', '/home/fitrialif/resize/002.jpg', '/home/fitrialif/resize/003.jpg']

You can use os.listdir or something similar for that. Maybe replace the filelist in Line 37 with the one you create.

Finally, run the code using python utils.py

from dexpression.

fitrialif avatar fitrialif commented on August 18, 2024

from dexpression.

arundasan91 avatar arundasan91 commented on August 18, 2024

@fitrialif , I strongly suggest you brush up your Python skills and understand the context in which the code is running. Please refer my previous comment for filelist; it should be a list. If you've a friend who can lend a hand who knows Python, please meet with him/her and discuss this together.

Thanks,
Arun

from dexpression.

NomiMalik0207 avatar NomiMalik0207 commented on August 18, 2024

@fitrialif have you completed this task. I am facing the same problem can you help me??

from dexpression.

christiaan20 avatar christiaan20 commented on August 18, 2024

The links to the files are dead. Can I assume that all 5876 are loaded and resized to 224x224x1 for inputting into the network?

from dexpression.

GaroBozadjian avatar GaroBozadjian commented on August 18, 2024

The links that you uploaded is not working, can you update them so we can use the CKP dataset please

from dexpression.

edgalsanchez avatar edgalsanchez commented on August 18, 2024

The links are dead, can you update them? Please

from dexpression.

arundasan91 avatar arundasan91 commented on August 18, 2024

@edgalsanchez , sorry. I checked for the repo, seems it was removed.

from dexpression.

arundasan91 avatar arundasan91 commented on August 18, 2024

There are many projects which uses CK+ dataset. Unfortunately, since I have used my code in a private project, I cannot share it now. Please search for CK+ dataset in github.

from dexpression.

Related Issues (5)

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.