Spaces:
Running
Running
henok3878
commited on
Commit
·
99b28cc
1
Parent(s):
b302051
refactor: change sampling to torch.inference_mode
Browse files
main.py
CHANGED
@@ -202,7 +202,7 @@ def generate_strokes(
|
|
202 |
char_seq_lengths=priming_text_len_tensor)
|
203 |
|
204 |
|
205 |
-
with torch.
|
206 |
try:
|
207 |
stroke_tensors = SCRIPTED_MODEL.sample(
|
208 |
char_seq,
|
|
|
202 |
char_seq_lengths=priming_text_len_tensor)
|
203 |
|
204 |
|
205 |
+
with torch.inference_mode():
|
206 |
try:
|
207 |
stroke_tensors = SCRIPTED_MODEL.sample(
|
208 |
char_seq,
|