GithubHelp home page GithubHelp logo

Comments (2)

kinkan59 avatar kinkan59 commented on June 6, 2024

I am on Windows 10 with Anaconda setup.
After that, I recreated the environment referring to #45 (thank you, it's helpful)
Change the description of run.py to

config = yaml.load(f)

config = yaml.load(f, Loader=yaml.SafeLoader)
and YAMLLoadWarning is no longer
but I get other errors
Ignore "UserWarning: torch.meshgrid" for now
Is there a problem with the videos and images I put in the train and test folders?
I can't download it from YouTube, so I want to train with something I prepared myself, but I'm having trouble
help me

is the current error
(T-P-S-M-M) C:\Users\k\Desktop\T-P-S-M-M>python run.py --config config/vox-256.yaml
C:\anaconda3\envs\T-P-S-M-M\lib\site-packages\torch\functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ..\aten\src\ATen\native\TensorShape.cpp:2157.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
None
Use predefined train-test split.
Training...
0%| | 0/100 [00:27<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\k\Desktop\T-P-S-M-M\run.py", line 83, in
train(config, inpainting, kp_detector, bg_predictor, dense_motion_network, opt.checkpoint, log_dir, dataset)
File "C:\Users\k\Desktop\T-P-S-M-M\train.py", line 55, in train
for x in dataloader:
File "C:\anaconda3\envs\T-P-S-M-M\lib\site-packages\torch\utils\data\dataloader.py", line 521, in next
data = self._next_data()
File "C:\anaconda3\envs\T-P-S-M-M\lib\site-packages\torch\utils\data\dataloader.py", line 1203, in _next_data
return self._process_data(data)
File "C:\anaconda3\envs\T-P-S-M-M\lib\site-packages\torch\utils\data\dataloader.py", line 1229, in _process_data
data.reraise()
File "C:\anaconda3\envs\T-P-S-M-M\lib\site-packages\torch_utils.py", line 434, in reraise
raise exception
ValueError: Caught ValueError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "C:\anaconda3\envs\T-P-S-M-M\lib\site-packages\torch\utils\data_utils\worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "C:\anaconda3\envs\T-P-S-M-M\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\anaconda3\envs\T-P-S-M-M\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\k\Desktop\T-P-S-M-M\frames_dataset.py", line 172, in getitem
return self.dataset[idx % self.dataset.len()]
File "C:\Users\k\Desktop\T-P-S-M-M\frames_dataset.py", line 109, in getitem
path = np.random.choice(glob.glob(os.path.join(self.root_dir, name + '*.mp4')))
File "mtrand.pyx", line 909, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken

from thin-plate-spline-motion-model.

kinkan59 avatar kinkan59 commented on June 6, 2024

Windows 10, anaconda environment
The one I'm trying now is the vox type
I can't download from YouTube well, so I'm doing it with the original video
id_sampling of vox-256.yaml was still True, so when I changed it to False, ValueError: 'a' cannot be empty unless no samples are taken no longer appears
Then RuntimeError: imageio.mimread() has read over 256000000B of image data.
Stopped to avoid memory problems. I got an error saying Use imageio.get_reader(), increase threshold, or memtest=False
The error no longer occurs when only videos with a size of 256 * 256 and a number of frames of 1000 or less are placed in the test or train folders.
Then RuntimeError: CUDA out of memory. Tried to allocate 224.00 MiB (GPU 0; 12.00 GiB total capacity; 10.69 GiB already allocated; 0 bytes free; 11.18 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Logs are recorded in the log folder, but there are empty train-vis, log.txt and vox-256.yaml with nothing written
I tried lowering the batch_size from 28 to 24, 20, 16, ... and the error disappeared at 8
I get NameError: name 'circle' is not defined
In the log folder, empty train-vis and vox-256.yaml are the same, but 00000000-checkpoint.pth is created
log.txt says 00000000) perceptual - 210.28008; equivariance_value - 0.65565; warp_loss - 7.71640 but no bg
Only 00000000 and nothing beyond 00000001
I don't know what happened from here
GPU memory is 12GB
Does batch_size: 8 make no sense?
Would increasing the number of something in the vox-256 file instead have the same effect?
I don't know how to solve the error NameError: name 'circle' is not defined
please professor

from thin-plate-spline-motion-model.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.