Yu-Wu/One-Example-Person-ReID

How to use run.sh with Pycharm editor?

chenyanqi-C opened this issue · 13 comments

Hello author, I am recreating your paper. I want to ask how to use the Pycharm editor to run the run.sh file. I am a beginner. I want to adjust the parameters in the code because my GPU memory is not enough. What can I do? Thank you very much.

Yu-Wu commented

@chenyanqi-C
Sorry that I haven't try Pycharm before.

Could you revise `run.sh' in Pycharm and then execute the file in the command line?

Thanks for your reply, I have try this way,but it does not matter.
I have another question ,my GPU memory is not enough, which parameters should I adjust.I have try set max_frame smaller, but it seems useless, thank you.

Yu-Wu commented

@chenyanqi-C

What is the exact number of your GPU memory?

My GPU memory is 6G.

Yu-Wu commented

The GPU memory is too small. Did it work well in training?

Yu-Wu commented

Or the process corrupts immediately after it begins?

I ran the run.py program, and he can do it during the training part, but when it comes to "Creat dataloader for Test with batch_size 1", the "out of memory" problem occurs

Yu-Wu commented

Which dataset? MARS?

For MARS, you might set the max_frames to 300 or less.

I use mars.Should I set the batch_size , step_size,etc ,parameters?
And because I don't use run.sh to run, then in which .py file should I modify the max_frame value?

Yu-Wu commented

@chenyanqi-C
You can directly input the command, as it in the file ``run.sh''.

Is the command entered in the run.sh file? What command should I enter and how to run it.Can you tell me the specific operation? Thank you very much

Yu-Wu commented

python3 run.py --dataset $dataset --logs_dir $logs --EF $EF --init $init --loss $loss --fea $fea -m $momentum -e $epochs -s $stepSize -b $batchSize --lamda $lambda

Please see this line.
Use this command, and replace $xx by the expected value.

ok,I will try it again.thanks for your answer.