You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is aimed at resolving the problems for me exporting them to %temp% as gradio normally does.
So I have notice that F5 is exporting everything to %temp% on windows and I would rather make it run everything from within the local directory to make users systems cleaner.
Already it calls to users/user/.cache when an updated gradio.py could solve this problem.
Originally with infer_gradio.py I added
[Add this next part as the first import.]
import os
[Add this next part above vocoder = load_vocoder()] around line 40
app_root = os.path.dirname(os.path.abspath(file))
temp_dir = os.path.join(app_root, 'temp')
os.makedirs(temp_dir, exist_ok=True)
tempfile.tempdir = temp_dir
This makes generations appear in F5-TTS\src\f5_tts\infer\temp which can be cleaner.
I don't know much about python so I can't make it better, but including something like this will be a step towards making f5 more 'portable' which should be the end goal.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is aimed at resolving the problems for me exporting them to %temp% as gradio normally does.
So I have notice that F5 is exporting everything to %temp% on windows and I would rather make it run everything from within the local directory to make users systems cleaner.
Already it calls to users/user/.cache when an updated gradio.py could solve this problem.
Originally with infer_gradio.py I added
[Add this next part as the first import.]
import os
[Add this next part above vocoder = load_vocoder()] around line 40
app_root = os.path.dirname(os.path.abspath(file))
temp_dir = os.path.join(app_root, 'temp')
os.makedirs(temp_dir, exist_ok=True)
tempfile.tempdir = temp_dir
This makes generations appear in F5-TTS\src\f5_tts\infer\temp which can be cleaner.
I don't know much about python so I can't make it better, but including something like this will be a step towards making f5 more 'portable' which should be the end goal.
I love the project by the way!
Beta Was this translation helpful? Give feedback.
All reactions