Skip to content

MISSING_PAGE_EMPTY #259

@bbz525

Description

@bbz525

MISSING_PAGE_EMPTY
what happen
(Nougat) root@ubuntu:/home/ubuntu# nougat ./ori_VSL_SERIALIZED_PARTS_LIST_part.pdf --out ./ --markdown /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:108: UserWarning: Argument(s) 'always_apply' are not valid for transform BasicTransform super().__init__(always_apply=always_apply, p=p) /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:42: UserWarning: Argument(s) 'always_apply' are not valid for transform BasicTransform super().__init__(always_apply=always_apply, p=p) /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:76: UserWarning: Argument(s) 'always_apply' are not valid for transform BasicTransform super().__init__(always_apply=always_apply, p=p) /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:123: UserWarning: Argument(s) 'cval' are not valid for transform Affine alb.Affine(shear={"x": (0, 3), "y": (-3, 0)}, cval=(255, 255, 255), p=0.03), /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/albumentations/core/validation.py:111: UserWarning: ShiftScaleRotate is a special case of Affine transform. Please use Affine transform instead. original_init(self, **validated_kwargs) /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:124: UserWarning: Argument(s) 'value' are not valid for transform ShiftScaleRotate alb.ShiftScaleRotate( /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:134: UserWarning: Argument(s) 'value' are not valid for transform GridDistortion alb.GridDistortion( /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:143: UserWarning: Argument(s) 'always_apply, cval' are not valid for transform Affine alb.Affine( /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:146: UserWarning: Argument(s) 'alpha_affine, value' are not valid for transform ElasticTransform alb.ElasticTransform( /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:158: UserWarning: Argument(s) 'quality' are not valid for transform ImageCompression alb.ImageCompression( compression_type="jpeg",quality=95, p=0.07), /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/transforms.py:159: UserWarning: Argument(s) 'var_limit' are not valid for transform GaussNoise alb.GaussNoise(var_limit=(20, 20), p=0.08), WARNING:root:No GPU found. Conversion on CPU is very slow. You are using a model of type vision-encoder-decoder to instantiate a model of type nougat. This is not supported for all configurations of models and can yield errors. /root/anaconda3/envs/Nougat/lib/python3.10/site-packages/torch/functional.py:554: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /pytorch/aten/src/ATen/native/TensorShape.cpp:4314.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] Some weights of the model checkpoint at /root/.cache/torch/hub/nougat-0.1.0-small were not used when initializing NougatModel: ['encoder.encoder.layers.2.blocks.8.attention.output.dense.weight', ''decoder.model.model.decoder.layers.0.self_attn.out_proj.bias', 'decoder.model.model.decoder.layer_norm.bias', 'encoder.model.layers.3.blocks.1.attn.qkv.bias', 'decoder.model.model.decoder.layers.9.self_attn.v_proj.bias', 'decoder.model.model.decoder.layers.5.final_layer_norm.bias', 'decoder.model.model.decoder.layers.0.self_attn_layer_norm.bias'] You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. 0%| | 0/19 [00:00<?, ?it/s]/root/anaconda3/envs/Nougat/lib/python3.10/site-packages/nougat/model.py:437: UserWarning: var(): degrees of freedom is <= 0. Correction should be strictly less than the reduction factor (input numel divided by output numel). (Triggered internally at /pytorch/aten/src/ATen/native/ReduceOps.cpp:1839.) return torch.var(self.values, 1) / self.values.shape[1] WARNING:root:Found repetitions in sample 0 INFO:root:Processing file ori_VSL_SERIALIZED_PARTS_LIST_part.pdf with 19 pages 5%|████████▉ | 1/19 [00:17<05:13, 17.42s/it]WARNING:root:Found repetitions in sample 0 11%|█████████████████▊ Cannot close object, library is destroyed. This may cause a memory leak!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions