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

Linked Colab Demo doesn't work. #6

Closed
jarredou opened this issue May 16, 2023 · 12 comments
Closed

Linked Colab Demo doesn't work. #6

jarredou opened this issue May 16, 2023 · 12 comments

Comments

@jarredou
Copy link

jarredou commented May 16, 2023

This project looks really promising but the given demo doesn't work and make Colab fullcrash. Don't know if Colab has problems now but after trying to run the install of your Colab demo, I can't even disconnect/reconnect after the crash, I can't even delete runtime and must wait hours for a server-side reset of my account... :(

@Ivan29B
Copy link

Ivan29B commented May 16, 2023

Provide detailed information (Console Report) about your problem you encountered. As having the problem itself, with a description here we will help you solve it, and improve the stability of future releases.

@jarredou
Copy link
Author

jarredou commented May 16, 2023

I'm only getting a kind of "Your session crashed, restarting..." notifications during the installation, and then Colab is stucked on "reconnecting", and never reconnects.

@jarredou
Copy link
Author

jarredou commented May 16, 2023

Prepartion/install cell is not working, it throws a
"COLAB" CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.

Not long before the crash it also installs pytorch=1.12.1 but then remove it and install pytorch=2.0.1

@IceClear
Copy link
Owner

Hi~
Thanks for your interest.
Would you mind trying another way to install and activate conda env following this link?
We both use conda env and I guess it may be the problem of using the conda env but I am not very familiar with Colab so I do not have solutions now.
I do not have a pro account and I have run out of my quota today.
Sry that I cannot help now.
I may try to figure out the reason after I have free quota again.

@jarredou
Copy link
Author

I'll try that tomorrow, I should have some free time. Colab is sometimes really stubborn with dependencies version. I know it's not always easy to get things to work there.

Thanks for the answer and the work done with this project !

@francqz31
Copy link

francqz31 commented May 17, 2023

@IceClear Hello I saw the notebook , it had many errors , I fixed the Errors ,except for the Cuda out of memory I think it needs Colab pro + not just pro , I tried it on Kaggle with p100 and it still gave me "Your notebook tried to allocate too much memory and could not be recovered. " anyways here is the fully fixed Remake of the Colab , if you want to save it on your account and change the Colab link in the readme feel free to do so. https://colab.research.google.com/drive/1LcoDjd9pTp3BpS1upPFbmMe4xC0kkzQu?usp=sharing

@IceClear
Copy link
Owner

I'm only getting a kind of "Your session crashed, restarting..." notifications during the installation, and then Colab is stucked on "reconnecting", and never reconnects.

Hi. I now meet the same error as you :(
It seems like the issue of condacolab, see here.
I am still working to figure out the solution.

@IceClear
Copy link
Owner

IceClear commented May 17, 2023

Hi, guys.
Thanks all your kind help, especially thank @francqz31 for devoting time on this.
I have conducted a detailed test and fixed most of the errors.
Colab is a little bit strange since the packages in the env file should be installed after creating the environment, but it seems I have to reinstall again on the colab. I am not familiar with it so I do not know the reason.
Anyway, I think now at least you should be able to run if you have enough RAM, I am stuck on the System RAM since the basic 13G seems not enough for StableSR to run :(

A good news may be I found some unimportant operations in test file and I removed them. Now 16G GPU memory should be enough for most of cases. For tile operation on the colab, just reduce the tile size to about 1024 should work.

@ARTUROSING
Copy link

@IceClear Здравствуйте, я видел блокнот, в нем было много ошибок, я исправил ошибки, за исключением Cuda нехватки памяти, я думаю, что ему нужен Colab pro + не только pro, я попробовал его на Kaggle с p100, и он все равно выдал мне «Ваш ноутбук попробовал выделять слишком много памяти и не может быть восстановлено». В любом случае, вот полностью исправленная версия Colab, если вы хотите сохранить ее в своей учетной записи и изменить ссылку на Colab в файле readme, не стесняйтесь делать это. https://colab.research.google.com/drive/1LcoDjd9pTp3BpS1upPFbmMe4xC0kkzQu?usp=sharing

You reported that you made some fixes to the google colab StableSR laptop, but trying to click on the link you provided requires permission or access to your laptop.

Could you please grant access, for study purposes.
Thank you for your consideration.

@francqz31
Copy link

francqz31 commented May 17, 2023

@ARTUROSING sorry my account got disabled for a bit That's why , use this instead https://colab.research.google.com/drive/11SE2_oDvbYtcuHDbaLAxsKk_o3flsO1T?usp=sharing it is basically the same , the author took from the my modified version and added it there :) . any ways it wont work since it needs big ram unless you have google colab pro + , even on pro + it might not work , it needs like "A100 80gb" I think. you are welcome

@IceClear
Copy link
Owner

@ARTUROSING sorry my account got disabled for a bit That's why , use this instead https://colab.research.google.com/drive/11SE2_oDvbYtcuHDbaLAxsKk_o3flsO1T?usp=sharing it is basically the same , the author took from the my modified version and added it there :) . any ways it wont work since it needs big ram unless you have google colab pro + , even on pro + it might not work , it needs like "A100 80gb" I think. you are welcome

Hi, @francqz31 and @ARTUROSING . May I know what is the problem of the latest colab I published? From my side, it seems like not enough system ram rather than gpu memory. I tested on my local computer and now the gpu requirement should not be that high, i.e., 10G should be enough for testing on 4x SR on 128x128.
Thanks for your help.

@IceClear
Copy link
Owner

IceClear commented May 18, 2023

@ARTUROSING sorry my account got disabled for a bit That's why , use this instead https://colab.research.google.com/drive/11SE2_oDvbYtcuHDbaLAxsKk_o3flsO1T?usp=sharing it is basically the same , the author took from the my modified version and added it there :) . any ways it wont work since it needs big ram unless you have google colab pro + , even on pro + it might not work , it needs like "A100 80gb" I think. you are welcome

Hi, @francqz31 and @ARTUROSING . May I know what is the problem of the latest colab I published? From my side, it seems like not enough system ram rather than gpu memory. I tested on my local computer and now the gpu requirement should not be that high, i.e., 10G should be enough for testing on 4x SR on 128x128. Thanks for your help.

I have successfully run the Colab demo using the Colab Pro I just bought : )
To run the demo you may have to use the High-RAM runtime which is available for Pro and Pro+.
For GPU memory, 16G is enough.
Thank @francqz31 again for providing great help on this demo.
And also thank others for the patience of the demo.

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

5 participants