Skip to content

Commit

Permalink
update ddcolor with new repo structure (#2634)
Browse files Browse the repository at this point in the history
CVS-160262
  • Loading branch information
eaidova authored Jan 8, 2025
1 parent 513d3bc commit ce01b33
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,16 @@
},
"outputs": [],
"source": [
"try:\n",
" from inference.colorization_pipeline_hf import DDColorHF, ImageColorizationPipelineHF\n",
"except Exception:\n",
" from inference.colorization_pipeline_hf import DDColorHF, ImageColorizationPipelineHF"
"if Path(\"DDColor/inference\").exists():\n",
" try:\n",
" from inference.colorization_pipeline_hf import DDColorHF, ImageColorizationPipelineHF\n",
" except Exception:\n",
" from inference.colorization_pipeline_hf import DDColorHF, ImageColorizationPipelineHF\n",
"else:\n",
" try:\n",
" from infer_hf import DDColorHF, ImageColorizationPipelineHF\n",
" except Exception:\n",
" from infer_hf import DDColorHF, ImageColorizationPipelineHF"
]
},
{
Expand Down

0 comments on commit ce01b33

Please sign in to comment.