Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

somethng about the dataset #2

Open
haha1958 opened this issue May 18, 2019 · 17 comments
Open

somethng about the dataset #2

haha1958 opened this issue May 18, 2019 · 17 comments

Comments

@haha1958
Copy link

hello, i want to run your code ,but i got a wrong result . i guess it was due to the dataset .Is subfolder meas "profile " in your code ,and the target meas "frontal"?
And ,how could you make the dataset like 001 001.jpg , i can only make it 001 002 .... 001.jpg
will it influence the result?

@opetrova
Copy link
Contributor

Hi,
Yes, each subfolder contains one or more profile images of a person, and the target for them is a frontal image of the same person.

And ,how could you make the dataset like 001 001.jpg , i can only make it 001 002 .... 001.jpg
will it influence the result?

Hmmm I am not sure what you mean.

@haha1958
Copy link
Author

haha1958 commented May 22, 2019 via email

@opetrova
Copy link
Contributor

i guess i should read the code more carefully . i just want to know whether the sequence of files could influence the result or not?

Still not sure what you mean by sequence of files. Do you mean the alphanumerical order of file names and subfolder names?

@haha1958
Copy link
Author

haha1958 commented May 22, 2019 via email

@opetrova
Copy link
Contributor

@haha1958 I think you may have tried to attach some images (?) to your response, but they did not go through.

What I mean is the following: in your dataset folder, you have images and subfolders (which also contain images). Lets say your images are named 001.jpg, 002.jpg and 137.jpg. Your subfolders are named 001, 137 and 49. (I am only using digits inside these names for simplicity, could be letters as well.) Then the correspondence between frontal images and subfolders with profile images will be the following:
001.jpg - 001
002.jpg - 137
137.jpg - 49

Does that clear it up?

@haha1958
Copy link
Author

Thank you very much , I get it !! first image and first subfolder are same people , second image and second subfolder are same people....Is it right? and i show you my result :
2019-05-22_203145

@opetrova
Copy link
Contributor

Thank you very much , I get it !! first image and first subfolder are same people , second image and second subfolder are same people....Is it right?

Exactly :)

and i show you my result

Hmm, this is very strange. Looks like either the images and/or subfolders don't get sorted for some reason, or their ordering ends up being different than what was used on my machine. If you are using the same convention as mine for your training dataset ("first image and first subfolder are same people , second image and second subfolder are same people" etc), I would recommend going inside the ExternalInputIterator class in data.py to make sure that self.frontals, self.frontal_indices and self.profiles contain the filenames and the indices that they should (the meanings of these should be clear enough from the code, if not, don't hesitate to ask questions!)

A quick check: what happens if you turn off the shuffling for the training set? Do inputs and "reals" correspond to the same people?

@LaviLiu
Copy link

LaviLiu commented May 24, 2019

@haha1958 Could you tell me the pytorch version you using in the project?

@haha1958
Copy link
Author

@haha1958 Could you tell me the pytorch version you using in the project?

0.4.1

@mohitgupta07
Copy link

Just a comment, seems like your model doesn't work well for unseen data. Or maybe because of distribution of faces(w.r.t. countries and regions) it can severly impact the performance.

@hangon666
Copy link

@haha1958 @Laviyy
Hello, did you re-train the network or test the given pre-trained model?
My pytorch version is 0.4.1, but I can't load the given model generator_v0.pt

@haha1958
Copy link
Author

@hangon666 I find a picture named test.jpg in my computer , which generated by load re-trained model 'netG_49.pt' . I am not sure which pytorch version i was use, maybe still 0.4.1. but I try load it again use pytorch 1.1.0 today , it caused runtimeerror.

@hangon666
Copy link

@haha1958 ,thanks for your reply, if convinient, could you share the re-trained model?

@haha1958
Copy link
Author

@hangon666 It hadnot get an excellent result, but you can use it just for test https://pan.baidu.com/s/1OKnZKbL8M5uGhj1qe77CyQ

@evelynyhc
Copy link

hello, thanks you for your work. I am working on this project recently, and i want to know if there any other dataset can instand of CMU dataset? Another question is the re-trained model you shared before have been repired, can you please share it again?

@redaghanem
Copy link

redaghanem commented Jan 19, 2020

I get this error

--> 108 self.decode = ops.ImageDecoder(device = 'mixed', output_type = types.RGB)

AttributeError: module 'nvidia.dali.ops' has no attribute 'nvJPEGDecoder'

any help? please

@redaghanem
Copy link

please i need to run this code @haha1958

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants