Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
zaibutcooler
/
headshot
like
0
Running
App
Files
Files
Community
dbdb9fd
headshot
/
training.py
Zai
streamlit working
dbdb9fd
11 months ago
raw
Copy download link
history
blame
No virus
210 Bytes
import
torch
from
headshot
import
Headshot
from
headshot
import
config
num_epochs =
30
out_dir =
'out'
device =
'cuda'
if
torch.cuda.is_available()
else
'cpu'
model = Headshot().to(device)
model.train()