Spaces:
Sleeping
Sleeping
dependencies
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ from PIL import Image
|
|
3 |
import gradio as gr
|
4 |
import open3d as o3d
|
5 |
import trimesh
|
6 |
-
from tqdm import tqdm
|
7 |
from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline, EulerAncestralDiscreteScheduler
|
8 |
import torch
|
9 |
from collections import Counter
|
@@ -37,7 +36,7 @@ def create_point_cloud(img1, img2):
|
|
37 |
h, w, _ = img1.shape
|
38 |
points = []
|
39 |
colors = []
|
40 |
-
for y in
|
41 |
for x in range(w):
|
42 |
# ピクセル位置 (x, y) のRGBをXYZとして取得
|
43 |
r, g, b = img1[y, x]
|
|
|
3 |
import gradio as gr
|
4 |
import open3d as o3d
|
5 |
import trimesh
|
|
|
6 |
from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline, EulerAncestralDiscreteScheduler
|
7 |
import torch
|
8 |
from collections import Counter
|
|
|
36 |
h, w, _ = img1.shape
|
37 |
points = []
|
38 |
colors = []
|
39 |
+
for y in range(h):
|
40 |
for x in range(w):
|
41 |
# ピクセル位置 (x, y) のRGBをXYZとして取得
|
42 |
r, g, b = img1[y, x]
|