Skip to content

Commit

Permalink
easyvolcap: import fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dendenxu committed Apr 6, 2024
1 parent 602431a commit e25d37f
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 23 deletions.
5 changes: 3 additions & 2 deletions easyvolcap/dataloaders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/dataloaders/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/models/cameras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/models/networks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/models/networks/embedders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/models/renderers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/models/samplers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/models/supervisors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
5 changes: 3 additions & 2 deletions easyvolcap/runners/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
4 changes: 3 additions & 1 deletion easyvolcap/runners/evaluators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))

5 changes: 3 additions & 2 deletions easyvolcap/runners/visualizers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import sys
from easyvolcap.utils.console_utils import *

exception_type, exception_object, exception_traceback = sys.exc_info()
tb = sys.exc_info()[-1]
tb = tb.tb_next
filename = exception_traceback.tb_frame.f_code.co_filename
line_number = exception_traceback.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pypiwin32; sys_platform=='win32'
pyperclip
pyntcloud
torchaudio
websockets
torchvision
PyTurboJPEG
tensorboard
Expand Down

0 comments on commit e25d37f

Please sign in to comment.