1- import { pipeline , DepthEstimationPipeline , RawImage } from "../../src/transformers.js" ;
1+ import { pipeline , DepthEstimationPipeline } from "../../src/transformers.js" ;
22
33import { MAX_MODEL_LOAD_TIME , MAX_TEST_EXECUTION_TIME , MAX_MODEL_DISPOSE_TIME , DEFAULT_MODEL_OPTIONS } from "../init.js" ;
44import { load_cached_image } from "../asset_cache.js" ;
@@ -25,7 +25,7 @@ export default () => {
2525 "default" ,
2626 async ( ) => {
2727 const output = await pipe ( images [ 0 ] ) ;
28- expect ( output . predicted_depth . dims ) . toEqual ( [ 32 , 32 ] ) ;
28+ expect ( output . predicted_depth . dims ) . toEqual ( [ 224 , 224 ] ) ;
2929 expect ( output . predicted_depth . mean ( ) . item ( ) ) . toBeCloseTo ( 0.000006106501587055391 , 6 ) ;
3030 expect ( output . depth . size ) . toEqual ( images [ 0 ] . size ) ;
3131 } ,
@@ -39,10 +39,10 @@ export default () => {
3939 async ( ) => {
4040 const output = await pipe ( images ) ;
4141 expect ( output ) . toHaveLength ( images . length ) ;
42- expect ( output [ 0 ] . predicted_depth . dims ) . toEqual ( [ 32 , 32 ] ) ;
42+ expect ( output [ 0 ] . predicted_depth . dims ) . toEqual ( [ 224 , 224 ] ) ;
4343 expect ( output [ 0 ] . predicted_depth . mean ( ) . item ( ) ) . toBeCloseTo ( 0.000006106501587055391 , 6 ) ;
4444 expect ( output [ 0 ] . depth . size ) . toEqual ( images [ 0 ] . size ) ;
45- expect ( output [ 1 ] . predicted_depth . dims ) . toEqual ( [ 32 , 32 ] ) ;
45+ expect ( output [ 1 ] . predicted_depth . dims ) . toEqual ( [ 224 , 224 ] ) ;
4646 expect ( output [ 1 ] . predicted_depth . mean ( ) . item ( ) ) . toBeCloseTo ( 0.0000014548650142387487 , 6 ) ;
4747 expect ( output [ 1 ] . depth . size ) . toEqual ( images [ 1 ] . size ) ;
4848 } ,
0 commit comments