Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
import os
|
|
|
2 |
os.system("sed -i 's/config.max_workspace_size = self.args.workspace \* 1 << 30/config.set_memory_pool_limit(trt.MemoryPoolType.WORKSPACE, self.args.workspace \* 1 << 30)/' exporter.py")
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
|
|
1 |
+
import os
|
2 |
+
os.system("pip install -q git+https://github.com/THU-MIG/yolov10.git")
|
3 |
os.system("sed -i 's/config.max_workspace_size = self.args.workspace \* 1 << 30/config.set_memory_pool_limit(trt.MemoryPoolType.WORKSPACE, self.args.workspace \* 1 << 30)/' exporter.py")
|
4 |
import gradio as gr
|
5 |
import numpy as np
|