Duplication fails

#1
by johnblues - opened

Hi. I'm trying to duplicate the space but keep getting errors. I tried CPU upgrade and an A10 Space. Both fail while building. Is the free cpu space the only Space I can duplicate to?

Runtime error
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package nvidia-cuda-toolkit
Traceback (most recent call last):
File "/home/user/app/app.py", line 6, in
subprocess.run(["apt-get", "install", "nvidia-cuda-toolkit"], check=True)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['apt-get', 'install', 'nvidia-cuda-toolkit']' returned non-zero exit status 100.
Container logs:

===== Application Startup at 2024-04-02 01:53:44 =====

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package nvidia-cuda-toolkit
Traceback (most recent call last):
File "/home/user/app/app.py", line 6, in
subprocess.run(["apt-get", "install", "nvidia-cuda-toolkit"], check=True)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['apt-get', 'install', 'nvidia-cuda-toolkit']' returned non-zero exit status 100.

Hey sorry for the inconvenience, i changed the code and it should all be fixed, please retry duplicating it, also if you use gpu, after the space starts its better if you check the cuda option in the execution privders. tell me if it works all fine now

Thanks. It seems to be working now. Quick question. Why are there only a few files listed? Are the rest not available for edit?

Owner

You’re welcome! About your question, You mean why there is only the app.py? Basically it clones the official open source facefusion github repo via git clone using os and runs the run.py file, so there isnt the need to upload every single file of the repo manually in the hf space for every update, and this way you can also just factory rebuild the space everytime facefusion updates, the space will update along with the new version. If you wanna modify something of face fusion, you could fork https://github.com/facefusion/facefusion And do the modifications you need, then just change the repo link in the app.py of this hf space.

Thanks!

johnblues changed discussion status to closed
Owner

Yw, btw i changed idea babout the “it will automatically update everytime you factory rebuild it”, sometimes in their updates facefusion changes alot of stuff, like going from venv to conda, or changing argument names, so as i dont want users to go through errors js bc it auto updates, i will personally update this space everytime to make sure everything is fine, sorry this might seem a bit annoying for people who duplicate it with gpu especially but, i think it’s better if it stays one version behind for 1 or 2 days like when im busy than it staying impossible to use just because of the new updates that changes things. if you want once in a while you can check this space and duplicate it again deleting the old one in case theres a new update

Nick088 changed discussion status to open
Nick088 changed discussion status to closed

Sign up or log in to comment