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

Pre-trained model #6

Open
thisisjasleen opened this issue Jun 6, 2019 · 33 comments
Open

Pre-trained model #6

thisisjasleen opened this issue Jun 6, 2019 · 33 comments

Comments

@thisisjasleen
Copy link

Could you please provide a pre-trained model for the same?

@thisisjasleen
Copy link
Author

I'm trying to run the train.py file. However, I'm getting an error in this line:
tqdm.write(f'\nEpoch {epoch_i}')
Kindly help and please reply asap!
Thanks in advance!

@SinDongHwan
Copy link

SinDongHwan commented Jun 7, 2019

@thisisjasleen
Hi, This is pretraind model(checkpoint)

Could you tell me error message?
I want to run your code.
Did you edit self.data_path in config.py?
if not, edit self.data_path='./fcsn_dataset.h5' -> './fcsn_TVSum.h5'

@thisisjasleen
Copy link
Author

@SinDongHwan
Hi, thankyou for replying.
I did edit the self.data_path .
The dataset was downloaded under the name 'fcsn_TVSum.h5' but i changed it to the one already mentioned in the code i.e. 'fcsn_dataset.h5'
The error still exists. A syntax error.

@SinDongHwan
Copy link

@thisisjasleen
If you're okay, Can i see your code??
please send God.DongHwan@gmail.com or upload your repository.

@thisisjasleen
Copy link
Author

@SinDongHwan
I've used the same code as in this repo.
Nothing has been changed.

@thisisjasleen
Copy link
Author

@SinDongHwan
Can you share your code with me? The complete code for the implementation of this paper.
Here is my email: jasleenrissam8@gmail.com

@SinDongHwan
Copy link

@thisisjasleen
Okay^^
I sent codes.

@thisisjasleen
Copy link
Author

@SinDongHwan
Is your code complete? Is there any additional thing that needs to be added or should i directly run it?

@thisisjasleen
Copy link
Author

@SinDongHwan
Also, I'm unable to open your pkl files.

@SinDongHwan
Copy link

@thisisjasleen

I just edited "self.data_path" config.py. and then execute.
python train.py.
i didn't face error.

if you face error, please error message, where line, python version.
I can help exactly, because i don't know your situation detail.

@thisisjasleen
Copy link
Author

@SinDongHwan
Could the error be due to tqdm?
I tried to run train.py in the exact same manner without changing anything in any of the codes bt still faced an error.

@SinDongHwan
Copy link

@thisisjasleen
I think so, if just i see your statement.
i don't know detail error.
could you tell me your error message?

@thisisjasleen
Copy link
Author

File train.py, Line 74
tqdm.write(f'\nEpoch {epoch_i}')
Syntax Error:invalid syntax

@SinDongHwan
Copy link

what is your python version??

@thisisjasleen
Copy link
Author

@SinDongHwan
I've installed tqdm. Don't know why is this error still coming.

@thisisjasleen
Copy link
Author

Python 3.5.2

@SinDongHwan
Copy link

SinDongHwan commented Jun 7, 2019

Can you edit Line 74?
tqdm.write('\nEpoch {}'.format(epoch_i))
please tell me, whether error on not.
if not, edit tqdm.write code like this using .format()

@thisisjasleen
Copy link
Author

Thanks. That issue seems resolved now.
However, now I'm encountering a syntax error in this line:
ckpt_path = self.config.save_dir + f'/epoch-{epoch_i}.pkl'

@SinDongHwan
Copy link

SinDongHwan commented Jun 7, 2019

Good!!
I think that "f" is string format.
this code seems to support python 3.6 over.
python3.6 don't face error.
Please edit f'{epoch_i}' like this '{}'.format(epoch_i)
i will edit code. and then pull requests.

@thisisjasleen
Copy link
Author

Okay. Thankyou for the help.
Also, have you sent me the codes? Are those codes complete or do i have to add things?

@SinDongHwan
Copy link

@thisisjasleen
Yes. But just this repository codes. so you can't.
Do you want executable codes??
I think nothing for train and test. maybe... hah

@thisisjasleen
Copy link
Author

@SinDongHwan
Yes, I need complete executable codes.Preferably the trained models which i can further tune as per my needs. Could you provide them?

@thisisjasleen
Copy link
Author

ckpt_path = self.config.save_dir + f'/epoch-{epoch_i}.pkl'
I tried editing this line like the way you suggested. It's showing some error though.

@SinDongHwan
Copy link

SinDongHwan commented Jun 7, 2019

I just have a model made by this repository.
you can get same model, if you just execute.
f'/epoch-{epoch_i}.pkl' -> '/epoch-{}.pkl'.format(epoch_i)
It's easy^^.

@thisisjasleen
Copy link
Author

Can you send me your model? Is it the one you sent previously? I'm not able to open those pickle files.

@SinDongHwan
Copy link

You means that pickle files crushed?
or can't download?

@thisisjasleen
Copy link
Author

I've downloaded them. They just aren't opening.

@thisisjasleen
Copy link
Author

@SinDongHwan
I'm having a little trouble visualizing what the output of this entire code is>? I mean, what is the end result? Are we getting the summarized versions of the videos or not?

@SinDongHwan
Copy link

@thisisjasleen
I think it's not hard to visualize.
this result is sequence of {0,1}.
if you see, 'score_dir/epoch-{}.json',

key is video number.
value is sequence of {0,1}. 1: keyframe, 0:not

you should post process.
features of dataset pick one frame per 15 frame.
and then this is used to train, evaluate, test.

to get summarize video, read #3 . so you can see evaluate code link.

@thisisjasleen
Copy link
Author

Okay, I'll check the link. Btw, what does this pickle file contain?

@Ai-is-light
Copy link

pretraind model(checkpoint)

would you mind sharing your pre-trained model again? After linking the url "Hi, This is pretraind model(checkpoint)" you supported, I will got the following information
此项可能已被删除或过期,或者你没有查看权限。有关详细信息,请与此项的所有者联系。

@SinDongHwan
Copy link

SinDongHwan commented Oct 16, 2020

hi, @Ai-is-light.
I can't access my server pc.
I will re-upload a pretrained model on next Monday(19th).

if somebody has a pretrained model, please share it.

@tchennwpu
Copy link

hi, @Ai-is-light.
I can't access my server pc.
I will re-upload a pretrained model on next Monday(19th).

if somebody has a pretrained model, please share it.

hi, could you please reshare the pre-trained model again?

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

4 participants