xrg
commited on
Commit
·
3e5da9a
1
Parent(s):
bbc5a9b
add dubeg info
Browse files- app.py +2 -1
- core/models.py +3 -2
app.py
CHANGED
@@ -35,7 +35,8 @@ GRADIO_OBJ_SHADING_PATH = 'gradio_output_shading.obj'
|
|
35 |
#opt = tyro.cli(AllConfigs)
|
36 |
#torch._dynamo.config.verbose=True
|
37 |
|
38 |
-
ckpt_path = hf_hub_download(repo_id="rgxie/LDM", filename="LDM6v01.ckpt")
|
|
|
39 |
|
40 |
opt = Options(
|
41 |
input_size=512,
|
|
|
35 |
#opt = tyro.cli(AllConfigs)
|
36 |
#torch._dynamo.config.verbose=True
|
37 |
|
38 |
+
#ckpt_path = hf_hub_download(repo_id="rgxie/LDM", filename="LDM6v01.ckpt")
|
39 |
+
ckpt_path='/ssd3/xrg/tensor23d/pretrained/last_6view_0610_14.ckpt'
|
40 |
|
41 |
opt = Options(
|
42 |
input_size=512,
|
core/models.py
CHANGED
@@ -122,8 +122,9 @@ class LTRFM_NeRF(nn.Module):
|
|
122 |
xyz_samples=xyz_samples.permute(0,2,3,4,1)
|
123 |
xyz_samples=xyz_samples.view(1,-1,1,3)
|
124 |
|
125 |
-
print("
|
126 |
-
print(
|
|
|
127 |
|
128 |
grid_out = self.tensorRF.predict_sdf(planes,xyz_samples)
|
129 |
grid_out['sigma']=grid_out['sigma'].view(grid_size,grid_size,grid_size).float()
|
|
|
122 |
xyz_samples=xyz_samples.permute(0,2,3,4,1)
|
123 |
xyz_samples=xyz_samples.view(1,-1,1,3)
|
124 |
|
125 |
+
print("app and xyz")
|
126 |
+
print(planes['app_planes'].device)
|
127 |
+
print(xyz_samples.device)
|
128 |
|
129 |
grid_out = self.tensorRF.predict_sdf(planes,xyz_samples)
|
130 |
grid_out['sigma']=grid_out['sigma'].view(grid_size,grid_size,grid_size).float()
|