-
Notifications
You must be signed in to change notification settings - Fork 16
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
"train_sample_1.pickle" in code #3
Comments
The pickle file we generated contains the images for training and testing. You can generate the dataset in any form as your wish. We will upload the python script for generating pickle file. |
Thanks a lot! |
Hi, I met the same problem and I solved this. You can read all train data and dump it into a pickle file using file get_sample.py inside folder Supervised. |
Hi, I am sorry for our late reply. Actually, the pickle files are
generated from your used datasets. You can use other ways to define your
dataset. The script for generating pickle file will be uploaded soon.
Sincerely.
I-Hope-Peace
…On Sat, Feb 27, 2021 at 3:59 PM Le Minh Khoa ***@***.***> wrote:
Hi, I met the same problem and I'm unable to solve this. Can you please
give me the generating pickle script.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQFWQ7IS3IRFWTOPCYQURPDTBCQ7ZANCNFSM4VDW26HQ>
.
|
def load_test_data(): Try this code...It worked for me. |
Hello! Thank you very much for your sharing!But one of my problems is that I don't know how to save the images in the data set as pickle files.How do you solve this problem?Can you give me some Pointers?Thank you very much!
…------------------ 原始邮件 ------------------
发件人: "I-Hope-Peace/DSMSCN" ***@***.***>;
发送时间: 2021年3月12日(星期五) 上午7:38
***@***.***>;
***@***.******@***.***>;
主题: Re: [I-Hope-Peace/DSMSCN] "train_sample_1.pickle" in code (#3)
def load_test_data():
file = open("data/Szada/test_sample_1.pickle", "rb")
test_X = pickle.load(file)
file.close()
file = open("data/Szada/test_sample_2.pickle", "rb")
test_Y = pickle.load(file)
file.close()
file = open("data/Szada/test_label.pickle", "rb")
test_label = pickle.load(file)
file.close()
return test_X, test_Y, test_label
Try this code...It worked for me.
->Another way to load pickle data
->Once check your pickle format where you write and read pickle data
->It should be .pkl or .pickle but should be same at both places
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
There are two ways to save pickle data =>1st: =>2nd: def read_data(): steps=> Note: Dont forget to import pickle Hope this will solve your issue!!!! |
Hi Authors,
I'm getting the following error when running 'train_my_model' file., 'No such file or directory: 'data/ACD/Szada/train_sample_1.pickle''
I noticed that in your code there is a load_train_data and load_test data function.
Could you please help with that? Thanks a lot.
The text was updated successfully, but these errors were encountered: