Comments (14)
Please take a look at these awesome scripts:
- https://github.com/rolanvc/cs295-PA1/blob/master/preproc.py
- https://github.com/rolanvc/cs295-PA1/blob/master/preproc2.py
- https://github.com/rolanvc/cs295-PA1/blob/master/preproc3.py
- https://github.com/rolanvc/dexpression/blob/master/utils.py
from dexpression.
@fitrialif , Hope these helped. Please reopen if you have any queries.
from dexpression.
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.
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.
from dexpression.
What you are doing is to run the utils.py
file with an argument /home/fitrialif/resize
. This won't work as:
- The function is not expecting any arguments.
- 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.
from dexpression.
@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.
@fitrialif have you completed this task. I am facing the same problem can you help me??
from dexpression.
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.
The links that you uploaded is not working, can you update them so we can use the CKP dataset please
from dexpression.
The links are dead, can you update them? Please
from dexpression.
@edgalsanchez , sorry. I checked for the repo, seems it was removed.
from dexpression.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dexpression.