Spaces:
Running
on
Zero
Running
on
Zero
NIRVANALAN
commited on
Commit
•
b84afd6
1
Parent(s):
7b873c3
update
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- app.py +10 -8
- cldm/__pycache__/cldm.cpython-310.pyc +0 -0
- datasets/__pycache__/eg3d_dataset.cpython-310.pyc +0 -0
- datasets/__pycache__/shapenet.cpython-310.pyc +0 -0
- dit/__pycache__/__init__.cpython-310.pyc +0 -0
- dit/__pycache__/dit_i23d.cpython-310.pyc +0 -0
- dit/__pycache__/dit_models.cpython-310.pyc +0 -0
- dit/__pycache__/dit_models_xformers.cpython-310.pyc +0 -0
- dit/__pycache__/dit_trilatent.cpython-310.pyc +0 -0
- dnnlib/__pycache__/__init__.cpython-310.pyc +0 -0
- dnnlib/__pycache__/util.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/__init__.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/continuous_diffusion.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/continuous_diffusion_utils.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/continuous_distributions.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/dist_util.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/fp16_util.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/gaussian_diffusion.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/logger.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/losses.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/nn.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/resample.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/respace.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/script_util.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/train_util.cpython-310.pyc +0 -0
- guided_diffusion/__pycache__/unet.cpython-310.pyc +0 -0
- ldm/__pycache__/__init__.cpython-310.pyc +0 -0
- ldm/__pycache__/util.cpython-310.pyc +0 -0
- ldm/modules/__pycache__/attention.cpython-310.pyc +0 -0
- ldm/modules/__pycache__/attention_compat.cpython-310.pyc +0 -0
- ldm/modules/__pycache__/x_transformer.cpython-310.pyc +0 -0
- ldm/modules/diffusionmodules/__pycache__/__init__.cpython-310.pyc +0 -0
- ldm/modules/diffusionmodules/__pycache__/model.cpython-310.pyc +0 -0
- ldm/modules/diffusionmodules/__pycache__/mv_unet.cpython-310.pyc +0 -0
- ldm/modules/diffusionmodules/__pycache__/util.cpython-310.pyc +0 -0
- ldm/modules/encoders/__pycache__/__init__.cpython-310.pyc +0 -0
- ldm/modules/encoders/__pycache__/modules.cpython-310.pyc +0 -0
- nsr/__pycache__/__init__.cpython-310.pyc +0 -0
- nsr/__pycache__/camera_utils.cpython-310.pyc +0 -0
- nsr/__pycache__/common_blks.cpython-310.pyc +0 -0
- nsr/__pycache__/confnet.cpython-310.pyc +0 -0
- nsr/__pycache__/networks_stylegan2.cpython-310.pyc +0 -0
- nsr/__pycache__/script_util.cpython-310.pyc +0 -0
- nsr/__pycache__/superresolution.cpython-310.pyc +0 -0
- nsr/__pycache__/train_util.cpython-310.pyc +0 -0
- nsr/__pycache__/train_util_cvD.cpython-310.pyc +0 -0
- nsr/__pycache__/train_util_diffusion.cpython-310.pyc +0 -0
- nsr/__pycache__/train_util_with_eg3d.cpython-310.pyc +0 -0
- nsr/__pycache__/triplane.cpython-310.pyc +0 -0
- nsr/cvD/__pycache__/__init__.cpython-310.pyc +0 -0
app.py
CHANGED
@@ -32,18 +32,18 @@ import numpy as np
|
|
32 |
import torch as th
|
33 |
import torch.distributed as dist
|
34 |
|
35 |
-
|
36 |
-
#
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
th.backends.cuda.matmul.allow_tf32 = True
|
43 |
th.backends.cudnn.allow_tf32 = True
|
44 |
th.backends.cudnn.enabled = True
|
45 |
|
46 |
-
|
47 |
|
48 |
from guided_diffusion import dist_util, logger
|
49 |
from guided_diffusion.script_util import (
|
@@ -457,7 +457,8 @@ if __name__ == "__main__":
|
|
457 |
|
458 |
args = create_argparser().parse_args()
|
459 |
|
460 |
-
args.local_rank = int(os.environ["LOCAL_RANK"])
|
|
|
461 |
args.gpus = th.cuda.device_count()
|
462 |
|
463 |
args.rendering_kwargs = rendering_options_defaults(args)
|
@@ -474,3 +475,4 @@ if __name__ == "__main__":
|
|
474 |
return f"Hello {zero + n} Tensor"
|
475 |
|
476 |
demo = gr.Interface(fn=greet, inputs=gr.Number(), outputs=gr.Text())
|
|
|
|
32 |
import torch as th
|
33 |
import torch.distributed as dist
|
34 |
|
35 |
+
def install_dependency():
|
36 |
+
# install apex
|
37 |
+
subprocess.run(
|
38 |
+
f'FORCE_CUDA=1 {sys.executable} -m pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" git+https://github.com/NVIDIA/apex.git@master',
|
39 |
+
shell=True,
|
40 |
+
)
|
41 |
|
42 |
th.backends.cuda.matmul.allow_tf32 = True
|
43 |
th.backends.cudnn.allow_tf32 = True
|
44 |
th.backends.cudnn.enabled = True
|
45 |
|
46 |
+
install_dependency()
|
47 |
|
48 |
from guided_diffusion import dist_util, logger
|
49 |
from guided_diffusion.script_util import (
|
|
|
457 |
|
458 |
args = create_argparser().parse_args()
|
459 |
|
460 |
+
# args.local_rank = int(os.environ["LOCAL_RANK"])
|
461 |
+
args.local_rank = 0
|
462 |
args.gpus = th.cuda.device_count()
|
463 |
|
464 |
args.rendering_kwargs = rendering_options_defaults(args)
|
|
|
475 |
return f"Hello {zero + n} Tensor"
|
476 |
|
477 |
demo = gr.Interface(fn=greet, inputs=gr.Number(), outputs=gr.Text())
|
478 |
+
demo.launch()
|
cldm/__pycache__/cldm.cpython-310.pyc
CHANGED
Binary files a/cldm/__pycache__/cldm.cpython-310.pyc and b/cldm/__pycache__/cldm.cpython-310.pyc differ
|
|
datasets/__pycache__/eg3d_dataset.cpython-310.pyc
CHANGED
Binary files a/datasets/__pycache__/eg3d_dataset.cpython-310.pyc and b/datasets/__pycache__/eg3d_dataset.cpython-310.pyc differ
|
|
datasets/__pycache__/shapenet.cpython-310.pyc
CHANGED
Binary files a/datasets/__pycache__/shapenet.cpython-310.pyc and b/datasets/__pycache__/shapenet.cpython-310.pyc differ
|
|
dit/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/dit/__pycache__/__init__.cpython-310.pyc and b/dit/__pycache__/__init__.cpython-310.pyc differ
|
|
dit/__pycache__/dit_i23d.cpython-310.pyc
CHANGED
Binary files a/dit/__pycache__/dit_i23d.cpython-310.pyc and b/dit/__pycache__/dit_i23d.cpython-310.pyc differ
|
|
dit/__pycache__/dit_models.cpython-310.pyc
CHANGED
Binary files a/dit/__pycache__/dit_models.cpython-310.pyc and b/dit/__pycache__/dit_models.cpython-310.pyc differ
|
|
dit/__pycache__/dit_models_xformers.cpython-310.pyc
CHANGED
Binary files a/dit/__pycache__/dit_models_xformers.cpython-310.pyc and b/dit/__pycache__/dit_models_xformers.cpython-310.pyc differ
|
|
dit/__pycache__/dit_trilatent.cpython-310.pyc
CHANGED
Binary files a/dit/__pycache__/dit_trilatent.cpython-310.pyc and b/dit/__pycache__/dit_trilatent.cpython-310.pyc differ
|
|
dnnlib/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/dnnlib/__pycache__/__init__.cpython-310.pyc and b/dnnlib/__pycache__/__init__.cpython-310.pyc differ
|
|
dnnlib/__pycache__/util.cpython-310.pyc
CHANGED
Binary files a/dnnlib/__pycache__/util.cpython-310.pyc and b/dnnlib/__pycache__/util.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/__init__.cpython-310.pyc and b/guided_diffusion/__pycache__/__init__.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/continuous_diffusion.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/continuous_diffusion.cpython-310.pyc and b/guided_diffusion/__pycache__/continuous_diffusion.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/continuous_diffusion_utils.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/continuous_diffusion_utils.cpython-310.pyc and b/guided_diffusion/__pycache__/continuous_diffusion_utils.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/continuous_distributions.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/continuous_distributions.cpython-310.pyc and b/guided_diffusion/__pycache__/continuous_distributions.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/dist_util.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/dist_util.cpython-310.pyc and b/guided_diffusion/__pycache__/dist_util.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/fp16_util.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/fp16_util.cpython-310.pyc and b/guided_diffusion/__pycache__/fp16_util.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/gaussian_diffusion.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/gaussian_diffusion.cpython-310.pyc and b/guided_diffusion/__pycache__/gaussian_diffusion.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/logger.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/logger.cpython-310.pyc and b/guided_diffusion/__pycache__/logger.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/losses.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/losses.cpython-310.pyc and b/guided_diffusion/__pycache__/losses.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/nn.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/nn.cpython-310.pyc and b/guided_diffusion/__pycache__/nn.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/resample.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/resample.cpython-310.pyc and b/guided_diffusion/__pycache__/resample.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/respace.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/respace.cpython-310.pyc and b/guided_diffusion/__pycache__/respace.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/script_util.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/script_util.cpython-310.pyc and b/guided_diffusion/__pycache__/script_util.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/train_util.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/train_util.cpython-310.pyc and b/guided_diffusion/__pycache__/train_util.cpython-310.pyc differ
|
|
guided_diffusion/__pycache__/unet.cpython-310.pyc
CHANGED
Binary files a/guided_diffusion/__pycache__/unet.cpython-310.pyc and b/guided_diffusion/__pycache__/unet.cpython-310.pyc differ
|
|
ldm/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/ldm/__pycache__/__init__.cpython-310.pyc and b/ldm/__pycache__/__init__.cpython-310.pyc differ
|
|
ldm/__pycache__/util.cpython-310.pyc
CHANGED
Binary files a/ldm/__pycache__/util.cpython-310.pyc and b/ldm/__pycache__/util.cpython-310.pyc differ
|
|
ldm/modules/__pycache__/attention.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/__pycache__/attention.cpython-310.pyc and b/ldm/modules/__pycache__/attention.cpython-310.pyc differ
|
|
ldm/modules/__pycache__/attention_compat.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/__pycache__/attention_compat.cpython-310.pyc and b/ldm/modules/__pycache__/attention_compat.cpython-310.pyc differ
|
|
ldm/modules/__pycache__/x_transformer.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/__pycache__/x_transformer.cpython-310.pyc and b/ldm/modules/__pycache__/x_transformer.cpython-310.pyc differ
|
|
ldm/modules/diffusionmodules/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/diffusionmodules/__pycache__/__init__.cpython-310.pyc and b/ldm/modules/diffusionmodules/__pycache__/__init__.cpython-310.pyc differ
|
|
ldm/modules/diffusionmodules/__pycache__/model.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/diffusionmodules/__pycache__/model.cpython-310.pyc and b/ldm/modules/diffusionmodules/__pycache__/model.cpython-310.pyc differ
|
|
ldm/modules/diffusionmodules/__pycache__/mv_unet.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/diffusionmodules/__pycache__/mv_unet.cpython-310.pyc and b/ldm/modules/diffusionmodules/__pycache__/mv_unet.cpython-310.pyc differ
|
|
ldm/modules/diffusionmodules/__pycache__/util.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/diffusionmodules/__pycache__/util.cpython-310.pyc and b/ldm/modules/diffusionmodules/__pycache__/util.cpython-310.pyc differ
|
|
ldm/modules/encoders/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/encoders/__pycache__/__init__.cpython-310.pyc and b/ldm/modules/encoders/__pycache__/__init__.cpython-310.pyc differ
|
|
ldm/modules/encoders/__pycache__/modules.cpython-310.pyc
CHANGED
Binary files a/ldm/modules/encoders/__pycache__/modules.cpython-310.pyc and b/ldm/modules/encoders/__pycache__/modules.cpython-310.pyc differ
|
|
nsr/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/__init__.cpython-310.pyc and b/nsr/__pycache__/__init__.cpython-310.pyc differ
|
|
nsr/__pycache__/camera_utils.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/camera_utils.cpython-310.pyc and b/nsr/__pycache__/camera_utils.cpython-310.pyc differ
|
|
nsr/__pycache__/common_blks.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/common_blks.cpython-310.pyc and b/nsr/__pycache__/common_blks.cpython-310.pyc differ
|
|
nsr/__pycache__/confnet.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/confnet.cpython-310.pyc and b/nsr/__pycache__/confnet.cpython-310.pyc differ
|
|
nsr/__pycache__/networks_stylegan2.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/networks_stylegan2.cpython-310.pyc and b/nsr/__pycache__/networks_stylegan2.cpython-310.pyc differ
|
|
nsr/__pycache__/script_util.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/script_util.cpython-310.pyc and b/nsr/__pycache__/script_util.cpython-310.pyc differ
|
|
nsr/__pycache__/superresolution.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/superresolution.cpython-310.pyc and b/nsr/__pycache__/superresolution.cpython-310.pyc differ
|
|
nsr/__pycache__/train_util.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/train_util.cpython-310.pyc and b/nsr/__pycache__/train_util.cpython-310.pyc differ
|
|
nsr/__pycache__/train_util_cvD.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/train_util_cvD.cpython-310.pyc and b/nsr/__pycache__/train_util_cvD.cpython-310.pyc differ
|
|
nsr/__pycache__/train_util_diffusion.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/train_util_diffusion.cpython-310.pyc and b/nsr/__pycache__/train_util_diffusion.cpython-310.pyc differ
|
|
nsr/__pycache__/train_util_with_eg3d.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/train_util_with_eg3d.cpython-310.pyc and b/nsr/__pycache__/train_util_with_eg3d.cpython-310.pyc differ
|
|
nsr/__pycache__/triplane.cpython-310.pyc
CHANGED
Binary files a/nsr/__pycache__/triplane.cpython-310.pyc and b/nsr/__pycache__/triplane.cpython-310.pyc differ
|
|
nsr/cvD/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/nsr/cvD/__pycache__/__init__.cpython-310.pyc and b/nsr/cvD/__pycache__/__init__.cpython-310.pyc differ
|
|