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 4f3b269 commit a45bc20
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion easyvolcap/dataloaders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/dataloaders/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/models/cameras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/models/networks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/models/networks/embedders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/models/renderers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/models/samplers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/models/supervisors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/runners/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

log(yellow(f'Failed to import {red(basename(filename))}:{red(line_number)}, {red(type(e).__name__)}: {e}'))
log(yellow_slim(f'Failed to import {blue(basename(filename))}:{blue_slim(line_number)}, {red(type(e).__name__)}: {red_slim(e)}'))
2 changes: 1 addition & 1 deletion easyvolcap/runners/evaluators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

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

2 changes: 1 addition & 1 deletion easyvolcap/runners/visualizers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
filename = tb.tb_frame.f_code.co_filename
line_number = tb.tb_lineno

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

0 comments on commit a45bc20

Please sign in to comment.