felixcfma commited on
Commit
be73458
·
1 Parent(s): 860dfe5
Files changed (4) hide show
  1. .gitattributes +0 -0
  2. README.md +1 -1
  3. app.py +14 -0
  4. requirements.txt +37 -0
.gitattributes CHANGED
File without changes
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: Hunyuan3D Part
3
- emoji: 📉
4
  colorFrom: red
5
  colorTo: purple
6
  sdk: gradio
 
1
  ---
2
  title: Hunyuan3D Part
3
+ emoji: ☯️
4
  colorFrom: red
5
  colorTo: purple
6
  sdk: gradio
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import spaces
3
+ import torch
4
+
5
+ zero = torch.Tensor([0]).cuda()
6
+ print(zero.device) # <-- 'cpu' 🤔
7
+
8
+ @spaces.GPU
9
+ def greet(n):
10
+ print(zero.device) # <-- 'cuda:0' 🤗
11
+ return f"Hello {zero + n} Tensor"
12
+
13
+ demo = gr.Interface(fn=greet, inputs=gr.Number(), outputs=gr.Text())
14
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Build Tools
2
+ ninja==1.11.1.1
3
+
4
+ # Core ML/Deep Learning
5
+ transformers==4.46.0
6
+ diffusers==0.30.0
7
+ accelerate==1.1.1
8
+ pytorch-lightning==1.9.5
9
+ huggingface-hub==0.30.2
10
+ safetensors==0.4.4
11
+
12
+ # Scientific Computing
13
+ numpy==1.24.4
14
+ scipy==1.14.1
15
+ einops==0.8.0
16
+ pandas==2.2.2
17
+
18
+ # 3D Mesh Processing
19
+ trimesh==4.4.7
20
+
21
+ # Configuration Management
22
+ omegaconf==2.3.0
23
+ pyyaml==6.0.2
24
+ configargparse==1.7
25
+
26
+ # Utilities
27
+ tqdm==4.66.5
28
+
29
+ # GPU Computing (requires CUDA)
30
+ cupy-cuda12x==13.4.1
31
+
32
+ # ONNX Runtime
33
+ onnxruntime==1.16.3
34
+ torchmetrics==1.6.0
35
+
36
+ timm
37
+